1825662 Members
3483 Online
109686 Solutions
New Discussion

sar

 
R_77
Occasional Contributor

sar

Trying to run sar -M

Getting the following error:

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

How to fix?

Thanks
10 REPLIES 10
Tomek Gryszkiewicz
Trusted Contributor

Re: sar

Run it sar -M X Y, where X is number of seconds beetwen samples, Y is the number of samples.

Anyway, read the manual: man sar
Robert-Jan Goossens
Honored Contributor

Re: sar

Hi R,

Check the directory /var/adm/sa

# ls
sa01 sa04 sa07 sa10 sa13 sa16 sa19 sa22 sa25 sa28 sa31
sa02 sa05 sa08 sa11 sa14 sa17 sa20 sa23 sa26 sa29
sa03 sa06 sa09 sa12 sa15 sa18 sa21 sa24 sa27 sa30

check the sys crontab
# crontab -l sys
#
# -- SAR History Information
#
0,5,10,15,20,25,30,35,40,45,50,55 * * * 0-6 /usr/lib/sa/sa1

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor

Re: sar

Hi:

See the manpages for 'sar". You don't have a daily activity file for today ("sa07").

If you want to look at CPU queues in real time, and examine the per-processor statistics, then you could do:

# sar -Mq 3 10

...which would report CPU queues for every processor every 3-seonds for 10-iterations.

Regards!

...JRF...

Geoff Wild
Honored Contributor

Re: sar

Setup sar:

In root's cron, setup something like:

# SAR0 * * * * /usr/lib/sa/sa1
10,20,30,40,50 5-19 * * * /usr/lib/sa/sa1
# reduce the sar data
5 19 * * * /usr/lib/sa/sa2 -s 5:00 -e 19:01 -i 600 -A

Make sure the directory /var/adm/sa exists

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Arunvijai_4
Honored Contributor

Re: sar

Hello,

This document may help you,

http://docs.hp.com/en/B2355-60127/sar.1M.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
cariteyp
Occasional Advisor

Re: sar

To find a good exploit of sar files :
Go to http://www.sarcheck.com
Sivakumar TS
Honored Contributor

Re: sar

Hi,

As the sar is not setup/configured, you may run

#sar -u

ie,

#sar -u 1 5

to get the CPU utilization.

similarly you can use the other options to get the activity of different resources.

With Regards,

Siva.
Nothing is Impossible !
Yogeeraj_1
Honored Contributor

Re: sar

hi,

you may also look into measureware for more monitoring options

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
singvey
Frequent Advisor

Re: sar

mkdir /var/adm/sa
mkdir /var/adm/sa/sa07
Muthukumar_5
Honored Contributor

Re: sar

You have to interval and count to run sar with our having directory called /var/adm/sa/.

Like this,

# sar -M 5 5

--
Muthu
Easy to suggest when don't know about the problem!