linux - Can sar display date and time? -
on centos, can sar command display both date , time? found sar can display time :
17:42:40 cpu %user %nice %system %iowait %steal %idle 17:42:42 0.31 0.00 0.69 0.06 0.00 98.93
i expect this:
2017-03-28 17:42:40 cpu %user %nice %system %iowait %steal %idle
anyone knows how format?
in sar output first displays date below
===============
linux 2.6.32-642.12.1.e16.x86_64 (ap.pm.pk) 2017-05-03 . _x86_64 . (24 cpu)
12:00:01 cpu %usr %nice %sys %iowait %steal %irq %soft %guest %idle
12:10:01 30.70 0.00 2.2 2.95 0.00 0.00 0.21 0.00 63.88
===============
to check older/previous date sar report need run sar command on var/log/sysstat/sa* file
sar -f /var/log/sysstat/sa13
here 13 date
Comments
Post a Comment