HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Sar not working...!!

 
Amitav
Frequent Advisor

Sar not working...!!

Hi,
While executing sar, i'm getting the following error....

#sar -d
sar: Can't open /var/adm/sa/sa05

I checked and found that the file sa05 doen not exist, even i tried to do a touch and again tried to execute, but no result...Kindly help me out on this...!!
1 REPLY
Pete Randall
Outstanding Contributor

Re: Sar not working...!!

Have you tried reading the man page?

"In the second form, with no sampling interval specified, sar extracts data from a previously recorded file, either the one specified by -f option or, by default, the standard system ctivity daily data file /var/adm/sa/sadd for the current day dd."

it's looking for the sa05 file because today is 05 March. You would create the file by running sar with the -o option:

"If the -o option is specified, it saves the samples in file in binary format."

The man pages are your friend!


Pete

Pete