From bbd88f26c98c9be7e82c7a7e745d8d07b0be0e5b Mon Sep 17 00:00:00 2001 From: Sa Liu Date: Mon, 11 Feb 2019 13:57:44 +0100 Subject: [PATCH] dbginfo: Redirect output of lsof to a separate file open_files.out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The output of lsof command is sometimes too long and makes it difficult to search in runtime.out. Move the output to a separate file. Signed-off-by: Sa Liu Signed-off-by: Jan Höppner --- scripts/dbginfo.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index e93593c8..bac62f0a 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -167,6 +167,9 @@ readonly OUTPUT_FILE_VMCMD="${WORKPATH}zvm_runtime.out" # File that includes content of files from sysfs readonly OUTPUT_FILE_SYSFS="${WORKPATH}sysfsfiles.out" +# File that includes the output of lsof +readonly OUTPUT_FILE_LSOF="${WORKPATH}open_files.out" + # File that includes content of OSA OAT readonly OUTPUT_FILE_OSAOAT="${WORKPATH}osa_oat" @@ -442,7 +445,8 @@ CMDS="uname -a\ :SPident\ :rpm -qa | sort\ :sysctl -a\ - :lsof\ + :lsof \ + > '${OUTPUT_FILE_LSOF}'\ :mount\ :df -h\ :df -i\