epcim
10/20/2015 - 1:35 PM

ibm-pmr-collect.howto.md

ibm-pmr-collect.howto.md

What to collect for PMR

collecting data

http://www-01.ibm.com/support/docview.wss?uid=swg21396341

AIX

javacore
snap
heapdump
oslevel -r > /tmp/tsm_oslevel.out
bootinfo -r > /tmp/tsm_bootinfo.out
lsattr -El sys0 > /tmp/tsm_sys0.out
lslpp -L > /tmp/tsm_lslpp.out
lslpp -L tivoli.tsm.* > /tmp/tsm_lslpp2.out                                            
lsdev -C > /tmp/tsm_lsdev.out
lsdev -r name | xargs -i{} lsattr -El {} > /tmp/tsm_lsattr.out
lsdev -r name | xargs -i{} lscfg -vp -l {} > /tmp/tsm_lscfg.out
ps -ef > /tmp/tsm_ps.out
ps auxwww > /tmp/tsm_ps2.out
df -m > /tmp/tsm_df.out
lsvg | xargs -i lsvg -l {} > /tmp/tsm_vglv.out
lsfs > /tmp/tsm_lsfs.out
lspv > /tmp/tsm_lspv.out
mount > /tmp/tsm_mount.out
errpt -a > /tmp/tsm_errpt.out

LINUX

TMPDIR=/tmp/logs_`hostname`_`date "+%Y%m%d_%s"`

## Env
mkdir $TMPDIR
echo "File ENVIRONMENT_Data.txt contains output for these commands:" >> $TMPDIR/ENVIRONMENT_Desc.txt
while read line
do      
        echo "Executing::$line" >> $TMPDIR/ENVIRONMENT_Desc.txt
        echo "Executing::$line" >> $TMPDIR/ENVIRONMENT_Data.txt
        eval "$line 2>&1"       >> $TMPDIR/ENVIRONMENT_Data.txt
done << EOF
 date
 lsb_release -a
 uname -a
 lspci
 dmesg  
 ls -lRa /
EOF