Re: sar for the hour (35 Views)
Regular Advisor
Posts: 181
Registered: ‎02-21-2001
Message 1 of 4 (35 Views)
Accepted Solution

sar for the hour


Would like to use sar to look at an hour of time, is there a difference of using
Sar -d 3600 1 as suppose to using a sar 60 60? I am not sure if my thinking is correct on if I run
A sar 3600 1, I will get a shot of the full hour, and totals for the hour, where using the 60 60 I get pretty much the same results, but its broken to by the minutes.

thank you in advance for the advice.

Acclaimed Contributor
Posts: 21,184
Registered: ‎07-06-2000
Message 2 of 4 (35 Views)

Re: sar for the hour

Hi Scott:

Yes, the overall value reported at the end of the hour will be much the same either way, but why, for the sake of 60 data-points compromise the granularity of the measurement? That is, with the measurements reported every minute you can see the relative hot-spots...


Honored Contributor
Posts: 1,361
Registered: ‎05-29-1998
Message 3 of 4 (35 Views)

Re: sar for the hour

Set up sar in your crontab file as follows:
0 * * * * /usr/lbin/sa/sa1 1200 3
0 0 * * * /usr/lbin/sa/sa2 -s 00:00 -e 23:45 -1 3600 -A

You can then run sar anytime with the different options (see sar online manual) to get your statistics
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Regular Advisor
Posts: 181
Registered: ‎02-21-2001
Message 4 of 4 (35 Views)

Re: sar for the hour

Thank you for the info, will give the ideas a try.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.