1845979 Members
2821 Online
110251 Solutions
New Discussion

HP-UX - sar

 
LudekC
Advisor

HP-UX - sar

Hello,
hp-ux B.11.11
sar -q
display:
sar: Can't open /var/adm/sa/sa01

Thank You Ludek
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: HP-UX - sar

Shalom,

Check the permissions on the file and if it exists. What user are you running sar as?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: HP-UX - sar

Read the man page:

"sar extracts data from a previously recorded file, either the one specified by -f option or, by default, the standard system activity daily data file /var/adm/sa/sadd for the current day dd."


Pete

Pete
Sunny Jaisinghani
Trusted Contributor

Re: HP-UX - sar

Hi,

the file /var/adm/sa/sa01 may not be existing

sunny
LudekC
Advisor

Re: HP-UX - sar

Hello,
/var/adm/sa directory and /var/adm/sa/sa01 file does not exist
I run sar as root

I create directory /var/adm/sa , file /var/adm/sa/sa01
sar -q
sar not display Can't open /var/adm/sa/sa01 but dislay nothing

Thank You Ludek
Pete Randall
Outstanding Contributor

Re: HP-UX - sar

Of course they don't exist. Read the man page.


Pete

Pete
LudekC
Advisor

Re: HP-UX - sar

Hello,
now I understand sar
Thank all Ludek
LudekC
Advisor

Re: HP-UX - sar

Thank
Bill Hassell
Honored Contributor

Re: HP-UX - sar

sar always tries to log details into files UNLESS you specify at least a time period:

sar -q 1

You can also tell sar to repeat several times:

sar -q 1 5

Without any numbers trailing the options, sar will try to use files.


Bill Hassell, sysadmin