1833515 Members
3013 Online
110061 Solutions
New Discussion

sar

 
Gus Fernandez
Occasional Advisor

sar

I have added the "sa" entry in the cron tab file, files are also got generated in the /var/adm/sa. but I am not able to read that files. getting this error. How we can read that file.

Error:-
sadc: Can't create/open data file: Not a directory

Thanks
2 REPLIES 2
BrianDoyle
Trusted Contributor

Re: sar

Hi Kevin,

What crontab entry did you enter?

Should be something like this
0,30 * * * * /usr/lbin/sa/sa1 300 1

The only issue I ever had with this was at the start when there was no sa directory. The files in sa should be readable with strings cmd

Rgds,
Brian
mobidyc
Trusted Contributor

Re: sar

Hello,

first, create the directory '/var/adm/sa'

in your crontab, you'd have somethink like:
0,20,40 * * * 0-6 /usr/lib/sa/sa1

this command (sa1) will create /var/adm/saXX file where XX is the day of hte month.

for read this file you can do:
sar -a -f /var/adm/sa/saXX

if you need more informations please read the following man pages:
sar(1m) - system activity reporter
sa1(1m), sa2(1m), sadc(1m) - system activity report package

Regards,
Cedrick Gaillard
Best regards, Cedrick Gaillard