Difference between revisions of "Read all sar collected files"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
− | Print lines where <code>%idle</code> was under 10%: | + | Print lines where <code>[[%idle]]</code> was under 10%: |
for SA_FILE in $(ls -1 /var/log/sysstat/sa??); do sar -f $SA_FILE | [[awk]] '$NF<10 {print}'; done | for SA_FILE in $(ls -1 /var/log/sysstat/sa??); do sar -f $SA_FILE | [[awk]] '$NF<10 {print}'; done | ||
Revision as of 05:45, 9 June 2024
for SA_FILE in $(ls -1 /var/log/sysstat/sa??); do sar -f $SA_FILE; done
Print lines where %idle
was under 10%:
for SA_FILE in $(ls -1 /var/log/sysstat/sa??); do sar -f $SA_FILE | awk '$NF<10 {print}'; done
00:00:01 CPU %user %nice %system %iowait %steal %idle
sar
, installation, sar -A, sar -F, sar -d
, sar -I ALL
, sar -n NFS
, sar -r
, sar -S
, sar -W
, sar -n ALL
, Installing sysstat using Ansible, /etc/sysstat/sysstat
, /etc/cron.d/sysstat
, sar --help
, Sysstat changelog, /var/log/sysstat/
, cpu time steal
, sargraph, isag, Telegraf
Advertising: