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