how can we get month usage of CPU & MEM using SAR command?

sreddy

New Member
Joined
Aug 25, 2021
Messages
1
Reaction score
0
Credits
12
Hello folks,

Does any have idea about SAR command. Like I am trying to get the month usage of CPU & MEM . but i am able to get day wise report Instead I need month wise report.
Can you please help me with this?

Thanks,
SReddy
 


Does this help?


1629935070703.png


EDIT: I think I read your message to quick, I assume you already know about this part.

You're looking to see if you can have way of running the entire month instead of the individual day. I could not find much on this yet.
 
Last edited:
Yes, sar records data in files by the day. If you want to see a previous day, you need to execute the command to access the previous day's dataset.

So, if you want to see a month's worth a data, you would execute the sar command for each day and concatenate the results or maintain their results individually.
 
You're looking to see if you can have way of running the entire month instead of the individual day. I could not find much on this yet.
You could probably make a bash for loop to display all the datasets.
 

Staff online


Top