Operating System - HP-UX
1833788 Members
2352 Online
110063 Solutions
New Discussion

Can't open /var/adm/sa/sa04 , Whats missing ?

 

Can't open /var/adm/sa/sa04 , Whats missing ?

Hello ...
I am working my way through migrating some of my Tru64 knowledge to HP-UX..
On this IPF rx2600, I am trying to use sar.

What do I need to do to move on from this error message ?? :

root@hybris:/# sar -u
sar: Can't open /var/adm/sa/sa04

Here is an output rom swlist. Regards MArtin R. Andersen

swlist
# Initializing...
# Contacting target "hybris.demo.datavisual.dk"...
#
# Target: hybris.demo.datavisual.dk:/
#

#
# Bundle(s):
#

B6960MA A.05.10 HP OpenView Storage Data Protector (Check
support status in Product Description)
B9415AA 1.3.26.00.08 HP Apache-based Web Server with Strong (1
28bit) Encryption
B9789AA 1.3.1.04.01 Java2 1.3 RTE for HP-UX
Base-VXVM B.03.10.15 Base VERITAS Volume Manager 3.1 for HP-UX

CDE-ChineseS B.11.22 Simplified Chinese CDE Environment
CDE-ChineseT B.11.22 Traditional Chinese CDE Environment
CDE-English B.11.22 English CDE Environment
CDE-French B.11.22 French CDE Environment
CDE-German B.11.22 German CDE Environment
CDE-Italian B.11.22 Italian CDE Environment
CDE-Japanese B.11.22 Japanese CDE Environment
CDE-Korean B.11.22 Korean CDE Environment
CDE-Spanish B.11.22 Spanish CDE Environment
CDE-Swedish B.11.22 Swedish CDE Environment
FibrChanl-00 B.11.22.01 PCI FibreChannel;Supptd HW=A6795A
GigEther-00 B.11.22.00 PCI GigEther;Supptd HW=A4926A/A4929A;SW=J
1642AA
GigEther-01 B.11.22.06 PCI GigEther;Supptd HW=A6825A, A6794A, A6
847A, A8685A
HPUX11i-TCOE B.11.22 HP-UX Technical Computing OE Component
HPUXBaseAux B.11.22 HP-UX Base OS Auxiliary
HPUXBaseOS B.11.22 HP-UX Base OS
OnlineDiag B.11.22.01.23 HPUX 11.22 Support Tools Bundle, Jun 2002

perl B.5.6.1.D Perl Programming Language
scsiU320-00 B.11.22.02 PCI SCSI U320; Supptd HW=CoreIO
6 REPLIES 6
BFA6
Respected Contributor

Re: Can't open /var/adm/sa/sa04 , Whats missing ?

Hi,

Using sar -u will try to access data already recorded, in the file mentioned. To get information straight away, you need to give a time interval & number of repetitions

sar -u 2 2

See man page for sar

Regards,

Hilary
MANOJ SRIVASTAVA
Honored Contributor

Re: Can't open /var/adm/sa/sa04 , Whats missing ?

Martin


you need to specify a argument with the sar command , sar 2 2 would display the genral system activity report every 2 seconds for 2 times , do a man for sar to know mroe options , if you run sar w/o any options then it will give you that error.


Manoj Srivastava
MANOJ SRIVASTAVA
Honored Contributor

Re: Can't open /var/adm/sa/sa04 , Whats missing ?

Martin


you need to specify a argument with the sar command , sar 2 2 would display the genral system activity report every 2 seconds for 2 times , do a man for sar to know mroe options , if you run sar w/o any options then it will give you that error.


Manoj Srivastava
Elmar P. Kolkman
Honored Contributor

Re: Can't open /var/adm/sa/sa04 , Whats missing ?

/var/adm/sa/sa?? are files containing recorded (historical) performance data. To create these files, run your sar data collector at a regular bases. Normally this is done through cron. For instance by the following line:
0 * * * * /usr/lbin/sa1 300 12

will gather every hour 12 samples with an interval of 300 seconds.
Don't lower the interval too much if your /var filesystem is a bit small or full.
Every problem has at least one solution. Only some solutions are harder to find.

Re: Can't open /var/adm/sa/sa04 , Whats missing ?

Thanks everyone ...

I was stupid enough to start without reading the sar and sa1 man pages, having the tru64 "collect" command in mind.

I have now the cron command with 300 12 in place and will checkout the sa2 example as well to get daily summary.

Right now I am concerned to make a visible load, to be able to mingle around with (read get used to) the performance data output from sar.

regards MArtin