AIX lparstat Recipe
- Run lparstat in the background with a 5 second interval:
nohup lparstat -t 5 > diag_lparstat_$(hostname)_$(date +%Y%m%d_%H%M%S).txt & - Reproduce the problem.
- To stop collection, kill the lparstat process. For example:
ps -ef | grep "lparstat -t" | grep -v grep | awk '{print $2}' | xargs kill - Upload
diag_lparstat_*
For background, see AIX lparstat.