Merge "Replace top with vmstat"

This commit is contained in:
Zuul 2020-09-24 18:32:27 +00:00 committed by Gerrit Code Review
commit f2ad9641bf
2 changed files with 6 additions and 3 deletions

View File

@ -197,8 +197,10 @@ artcl_commands:
swaps:
cmd: cat /proc/swaps
capture_file: /var/log/extra/swaps.txt
top:
cmd: top -b -n 1
vmstat:
cmd: vmstat -s
ps:
cmd: ps axfo %mem,size,rss,vsz,pid,args
rpm-list:
cmd: rpm -qa | sort -f
package-list-installed:

View File

@ -63,7 +63,8 @@ for cont in $(${engine} ps | awk {'print $NF'} | grep -v NAMES); do
elif [ ${engine} = 'podman' ]; then
${engine} top $cont;
fi
${engine} exec $cont top -bwn1;
${engine} exec $cont vmstat -s
${engine} exec $cont ps axfo %mem,size,rss,vsz,pid,args
${engine} exec $cont bash -c "\$(command -v dnf || command -v yum) list installed";
) &>> $INFO_DIR/${engine}_info.log;