1833437 Members
2968 Online
110052 Solutions
New Discussion

sar

 
xcvzxvzxdv
Advisor

sar

HI, when I am using the command sar -d 5 5 it is throwing an error

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

could anyone tellhow can I get rid of this
4 REPLIES 4
Frank de Vries
Respected Contributor

Re: sar

Very odddd
try sar -d 5 55
and what about sar -u 5 55.

It looks as if your sample interval was not accepted (maybe a bad character got caught, I don't know)

But it is not normal it wants to open up
an historical file , because that you
do with sar -d 5 55 -f /var/adm/sa/sa25
(But you don't appear to keep historical
sar stats and you don't have too)

Look before you leap
Wayne Fontaine
Advisor

Re: sar

Create the directory "var/adm/sa/sa25"
and it should work.

The "25" portion of sar25 is a reference to the date of the run i.e. Apr 25.
Ajitkumar Rane
Trusted Contributor

Re: sar

By default sar looks for previously recorded data in:

/var/adm/sa/sa`date +\%d


so you could create a file if it does not exist and sar should start working for u.

try the comman wihtout any flags just sar 5 5


it should not return error.

Rgds,

ajit
Amidsts difficulties lie opportunities
Ajitkumar Rane
Trusted Contributor

Re: sar

it would be nice if u assign points to the colleagues who answered your problem.


Rgds
Amidsts difficulties lie opportunities