Read all sar collected files
Jump to navigation
Jump to search
for SA_FILE in $(ls -1 /var/log/sysstat/sa??); do sar -f $SA_FILE; done
CPU, 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
Memory, kbavail
:
for SA_FILE in $(ls -1 /var/log/sysstat/sa??); do sar -r -f $SA_FILE | awk '$3<1000 {print}'; done
00:00:01 CPU %user %nice %system %iowait %steal %idle
See also[edit]
Advertising: