sar command to generate only CPU utilization and network statistics in Linux

Posted by Vijay Shankar Kalyanaraman on Server Fault See other posts from Server Fault or by Vijay Shankar Kalyanaraman
Published on 2012-03-20T21:33:51Z Indexed on 2012/03/20 23:32 UTC
Read the original article Hit count: 360

Filed under:
|

I want to be able to generate the system activity report every 30 seconds or every minute and store in a file and use it for diagnostic purposes on my VM. So I give an output file for the sar command and read it using the "-f" option. But I only use the CPU utilization and network utilization part of the report and so rest is all that I don't want to save (waste the space in the disk to store these reports). Also the sar files that are generated are all binary. Is there a way to collect these stats for the CPU and network utilization alone? and so save almost 2/3rds the space on the disk?

© Server Fault or respective owner

Related posts about linux

Related posts about sar