Operating System - HP-UX
1832695 Members
2793 Online
110043 Solutions
New Discussion

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

 
SOLVED
Go to solution
Ceesjan van Hattum
Esteemed Contributor

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

sar -u or -y and others learn me that /var/adm/sa does not exist..
'sar 1 5' works normal.
No sar in crontab for collecting data...
What do i have to do to make it work complete?
6 REPLIES 6
Rusty Sapper
Frequent Advisor
Solution

Re: sar: Can't open /var/adm/sa/sa29

You still need to use time interval and number of times.

try sar -u 5 5


HTH

-Rusty
Ceesjan van Hattum
Esteemed Contributor

Re: sar: Can't open /var/adm/sa/sa29

Auggghhh.. i'm stupid.. or just tired... thanks; i'm glad it's almost weekend..
Greetings,
Ceesjan
Darrell Allen
Honored Contributor

Re: sar: Can't open /var/adm/sa/sa29

Look at this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x43791cc6003bd6118fff0090279cd0f9,00.html

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 sa1 for more info. It will provide example crontab entries for collecting sar data.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Steve Steel
Honored Contributor

Re: sar: Can't open /var/adm/sa/sa29

Hi


mkdir /var/adm/sa
chmod 777 /var/adm/sa


Then it should work


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ceesjan van Hattum
Esteemed Contributor

Re: sar: Can't open /var/adm/sa/sa29

Thanks: the solution was really a combination of all:

sar commandline usage:
sar -u 5 5 (not using collection files)

for using sar -u, i did:

mkdir /var/adm/sa
chmod 777 /var/adm/sa
/usr/lbin/sa/sa1

Darrel, you completed the input of Steve, but by accident i only gave you 1 point... sorry, if you give one more reply i will add some extra points.

Case closed.
Ceesjan van Hattum
Esteemed Contributor

Re: sar: Can't open /var/adm/sa/sa29

I really need a weekend:
Steve completed Darrel, giving lousy 2 points. Sorry again.