Assumes IBM System P POWER4/POWER5/5+/POWER6 and AIX 5L or AIX6 Earl Jew/IBM FTSS Storage&SystemP SoCalif earlj@us.ibm.com directcell(310)251-2907 Version: April 29,2009 1) Collect an hourly execution of "uptime ; vmstat -sv" to a monthly textfile. Cron this hourly collection of "vmstat -sv" to an ever-growing textfile with something not unlike: "uptime >> /tmp/vmstatSV.`hostname` ; vmstat -sv >> /tmp/vmstatSV.`hostname`" Any 14Day collection of the above will be less than 80kbytes. 2) Mundane Performance Data Collection: NOTE: There is a subsection of rootuser commands in the below script. Please execute&collect and share it to me at earlj@us.ibm.com, and I will review and offer my findings by concall. Please execute this at any time with-or-without an active workload. Either way, useful historical data is collected. The script below collects 4mb-20mb of text per run. #!/bin/ksh -x #assuming POWER4/POWER5/5+/POWER6 and AIX 5L or AIX6 #Earl Jew/IBM FTSS-Storage&SystemP SoCalif #earlj@us.ibm.com directcell(310)251-2907 #Version: April 29,2009 date uname -a id oslevel -s lparstat -i prtconf uptime vmstat -sv vmstat -Iwt 2 40 ps -ekf | grep -v egrep | egrep "syncd|lrud|nfsd|biod|wait|getty|xmwlm" mount ipcs -bm df -k lsps -a lsps -s ps -el | wc ps -elmo THREAD | wc ps -kl | wc ps -klmo THREAD | wc nfsstat ##### BEGIN rootuser-privileges section vmo -L # requires root-user to execute; makes no changes ioo -L # requires root-user to execute; makes no changes no -L # requires root-user to execute; makes no changes nfso -L # requires root-user to execute; makes no changes schedo -L # requires root-user to execute; makes no changes raso -L # requires root-user to execute; makes no changes for VG in `lsvg` do lvmo -a -v $VG # requires root-user to execute; makes no changes echo done uptime sar -a 2 40 # requires root-user to execute; makes no changes sar -b 2 40 # requires root-user to execute; makes no changes sar -c 2 40 # requires root-user to execute; makes no changes sar -k 2 40 # requires root-user to execute; makes no changes sar -d 2 40 # requires root-user to execute; makes no changes ##### END rootuser-privileges section aioo -a lsdev lscfg lsconf uptime iostat -aT 2 40 | grep -v "0.0 0.0 0.0 0 0" uptime vmstat -Iwt 2 40 uptime mpstat -w 2 40 uptime mpstat -dw 2 40 uptime mpstat -i 2 40 vmstat -f vmstat -i nfso -a lspv for VG in `lsvg` do lsvg $VG ; echo lsvg -p $VG ; echo ; echo ; echo done ps -ef ps -kf ps -el ps -kl ps -elmo THREAD ps -klmo THREAD ps guww ps gvww cat /etc/xtab showmount cat /etc/filesystems ifconfig -a netstat -ss netstat -in netstat -rn netstat -m netstat -v netstat -c netstat -C netstat -D netstat -s netstat -M netstat -A iostat -a iostat -s iostat -aT 2 40 | grep -v "0.0 0.0 0.0 0 0" iostat -mT 2 40 | grep -v "0.0 0.0 0.0 0 0" iostat -AQ 2 40 | grep -v " 0 " iostat -DT 80 4 uptime vmstat -sv vmstat -Iwt 2 40 date id uname -a