mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dbginfo.sh: (re)group commands by long output
This change will group the commands with long output into two sections with a comment. By grouping, we intend to enhance the handling in our runtime.out file and help to understand the purpose of command groups. We did get feedback for moveing some independent long output files to the end for speed up the scrolling in the upper parts. Files which already have a separate output file are bundled in a separate group at the end. Signed-off-by: Joern Siglen <siglen@de.ibm.com> Reviewed-by: Sa Liu <saliu@de.ibm.com> Reviewed-by: Mario Held <mario.held@de.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
81920f7cfd
commit
a0d6edf03c
@@ -418,7 +418,6 @@ CMDS="uname -a\
|
||||
:env\
|
||||
:df -h\
|
||||
:df -i\
|
||||
:dmesg -s 1048576\
|
||||
:dmsetup ls\
|
||||
:dmsetup ls --tree\
|
||||
:dmsetup table\
|
||||
@@ -461,22 +460,13 @@ CMDS="uname -a\
|
||||
:multipath -d\
|
||||
:multipath -t\
|
||||
:pkcsconf -mlist\
|
||||
:ps -emo pid,tid,nlwp,policy,user,tname,ni,pri,psr,sgi_p,stat,wchan,start_time,time,pcpu,pmem,vsize,size,rss,share,command\
|
||||
:ps -eHo pid,tid,nlwp,policy,user,tname,ni,pri,psr,sgi_p,stat,wchan,start_time,time,pcpu,pmem,vsize,size,rss,share,command\
|
||||
:ps axX\
|
||||
:pvpath -qa\
|
||||
:SPident # SLES service package\
|
||||
:cat /var/lib/opencryptoki/pk_config_data\
|
||||
:ls -al /usr/lib64/opencryptoki/stdll\
|
||||
:rpm -qa | sort >> '${OUTPUT_FILE_ISW}'\
|
||||
:apt list >> '${OUTPUT_FILE_ISW}'\
|
||||
:lsof >> '${OUTPUT_FILE_LSOF}'\
|
||||
:find /boot -print0 | sort -z | xargs -0 -n 10 ls -ld\
|
||||
:find /dev -print0 | sort -z | xargs -0 -n 10 ls -ld\
|
||||
:find /var/crash -print0 | sort -z | xargs -0 -n 10 ls -ld\
|
||||
:cat /root/.bash_history\
|
||||
:journalctl --all --no-pager --lines=100000 --output=short-precise\
|
||||
>> '${OUTPUT_FILE_JOURNALCTL}'\
|
||||
:smc_dbg\
|
||||
:sysctl -a\
|
||||
:systemctl --all --no-pager show\
|
||||
@@ -484,10 +474,28 @@ CMDS="uname -a\
|
||||
:systemctl --all --no-pager list-unit-files\
|
||||
:systemd-delta\
|
||||
:lvdisplay\
|
||||
:coredumpctl && coredumpctl info -o ${OUTPUT_FILE_COREDUMPCTL}\
|
||||
:ziorep_config -ADM\
|
||||
"
|
||||
|
||||
# commands with long output at the end
|
||||
CMDS="${CMDS}\
|
||||
:cat /root/.bash_history\
|
||||
:dmesg -s 1048576\
|
||||
:ps -emo pid,tid,nlwp,policy,user,tname,ni,pri,psr,sgi_p,stat,wchan,start_time,time,pcpu,pmem,vsize,size,rss,share,command\
|
||||
:ps -eHo pid,tid,nlwp,policy,user,tname,ni,pri,psr,sgi_p,stat,wchan,start_time,time,pcpu,pmem,vsize,size,rss,share,command\
|
||||
:ps axX\
|
||||
"
|
||||
|
||||
# commands with separate output file
|
||||
CMDS="${CMDS}\
|
||||
:apt list >> '${OUTPUT_FILE_ISW}'\
|
||||
:coredumpctl && coredumpctl info -o ${OUTPUT_FILE_COREDUMPCTL}\
|
||||
:journalctl --all --no-pager --lines=100000 --output=short-precise\
|
||||
>> '${OUTPUT_FILE_JOURNALCTL}'\
|
||||
:lsof >> '${OUTPUT_FILE_LSOF}'\
|
||||
:rpm -qa | sort >> '${OUTPUT_FILE_ISW}'\
|
||||
"
|
||||
|
||||
########################################
|
||||
# network comamnds for separate output file with ip -br a as header command
|
||||
NETWORK_CMDS="ip -br a\
|
||||
|
||||
Reference in New Issue
Block a user