Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Getting sar report for past one month


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Getting sar report for past one month

Please help with the command to generate SAR report (CPU and memory) for the past 30 days (in one command).
Is it possible?
Instead of using one line by one line like this :

Code:
sar -r -f /var/adm/sa/sa14


Last edited by vbe; 06-13-2019 at 06:55 AM..
# 2  
I do not think you can do it in one command. Try something like:

Code:
ls -tr /var/adm/sa/sa[0-9][0-9] | 
while read safile
do
  sar -r -f "$safile"
done > reportfile

Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
SAR Report on Cores/ Threads Per Zone
dshakey
I am trying to understand the CPU utilization on my server. its running Solaris 10 in an container (zone) the physical server has 1 cpu, 4 cores and 2 threads per core. the zone has been configured to use only 6 threads (3 cores) So when i run sar -u reports against the zone, i am seeing...... Solaris
1
Solaris
How to calculate total CPU usage from SAR report?
rohitmd
Hi, I want to calculate the total cpu usage from the sar report. Say for example, Linux 2.6.24-21-generic (blade10) 09/10/2012 04:54:36 PM CPU %user %nice %system %iowait %steal %idle 04:54:37 PM all 0.00 0.00 0.00 0.00 ...... Linux
1
Linux
sar report to xml converter
gogogo
I use sar reports for getting the statistic. It is better for me to get these reports converted to xml. I use some scripts to convert them but it takes a long time. Do you know any public scripts to convert sar report to xml in 1 -2 kicks.... Shell Programming and Scripting
0
Shell Programming and Scripting
setting up cron job for month end week report
Bhups
Hi all, Needs your help in scheduling a cron job for the below mentioned requirement. Just let me know if anybody has a similar job running as mentioned below: Month end reports - Report of all items created in a parent table that were created during the week. Presently this report runs...... UNIX for Dummies Questions & Answers
3
UNIX for Dummies Questions & Answers

Featured Tech Videos