1827614 Members
3276 Online
109966 Solutions
New Discussion

sar

 
SOLVED
Go to solution
Jonathan Caplette
Regular Advisor

sar

Hi guys!!

I'm trying to do a "sar -u" and it give me this error:

sar: Can't open /var/adm/sa/sa21

What is that file?? Cause it doesn't exist on my machine!!

Any idea???

Regards
Jonathan
6 REPLIES 6
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: sar

Hi Jonathan


Use sar -u 2 10 or some argument which specifies that you ahve to run thsi command for ten times every 2 seconds .


Manoj Srivastava
Helen French
Honored Contributor

Re: sar

Hi Jonathan:

This will give you the answer:

# man sar

This has two forms of operation. If no intervals specified, then it checks the directory /var/adm/sa/saDD (DD is the date) for previous outputs.

HTH,
Shiju
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: sar

It is "the standard system
activity daily data file /var/adm/sa/sadd for the current day dd." Since the directory /var/adm/sa probably doesn't exist, it can't create the file. Make the directory and then try it.

Good luck,
Pete

Pete
Darrell Allen
Honored Contributor

Re: sar

Hi Jonathan,

sar with a time interval goes against current, realtime system. sar without a time interval goes against the collection files in /var/adm/sa. To create those files run:
/usr/lbin/sa/sa1

man sar and sa1 for more info. It will provide example crontab entries for collecting sar data.

Also, use the ITRC search (upper left sidebar). You'll get many hits on "+sar +adm". One is:
http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xd09d8cc5e03fd6118fff0090279cd0f9,00.html

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Jonathan Caplette
Regular Advisor

Re: sar

Ok I see...
I forgot to put some arguments like sar -u 2 10... then it worked fine... and I created the file with the command /usr/lbin/sa/sa1 and now everything work fine...

Thanks for the help!! :)
ciao!
Vogra
Regular Advisor

Re: sar

Jonathan,
see at http://www.sarcheck.com/schp.htm

Can help you.
Lima.
We are spirits in the material world