UPD: touch up

This commit is contained in:
xpk 2020-04-20 11:28:35 +08:00
parent 482f1a0f99
commit 4250378ec5
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
for f in $(ls /var/log/sysstat/sa[0123]*); do
stat $f | grep Modify | awk '{print $2}'
sar -f $f | tail -1 | awk '{print "Idle: "$NF}'
echo -n "Date: "; stat $f | grep Modify | awk '{print $2}'
sar -f $f | tail -1 | awk '{print "CPU Used: ", 100-$NF}'
sar -r -f $f | tail -1 | awk '{print "Memused: "$5}'
sar -f $f | tail -1 | awk '{print "iowait: "$6}'
echo "- - -"