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

sar for the hour

Hello:

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.

scott
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 2 of 4 (9 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...

Regards!

...JRF...
Please use plain text.
Honored Contributor
CHRIS ANORUO
Posts: 1,361
Registered: ‎05-29-1998
Message 3 of 4 (9 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.
Please use plain text.
Regular Advisor
Scott_14
Posts: 181
Registered: ‎02-21-2001
Message 4 of 4 (9 Views)

Re: sar for the hour

Thank you for the info, will give the ideas a try.
Please use plain text.
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