1829590 Members
7346 Online
109992 Solutions
New Discussion

About sar

 
juno2
Super Advisor

About sar

When I run "sar -A" , it pop up the message "Cannot open /var/log/sa/sa27: No such file or directory" , the below are the files under the path "/var/log/sa" , what is the problem in our system ? thx.



-rw-r--r-- 1 root root 4152 Aug 15 16:56 sa15
-rw-r--r-- 1 root root 0 Aug 18 18:38 sa18
-rw-r--r-- 1 root root 493 Aug 19 14:05 sa19
-rw-r--r-- 1 root root 3837 Aug 21 13:42 sa21
-rw-r--r-- 1 root root 146 Aug 21 13:42 sar21
6 REPLIES 6
Zigor Buruaga
Esteemed Contributor

Re: About sar

Hi,

Try using a interval:
# sar -A 3

Kind regards,
Zigor
U.SivaKumar_2
Honored Contributor

Re: About sar

Hi ,

sa27 is the binary file for date 27. Check your system date whether is proper.

It seems thats you dont have today's file in that directory. So check the system's date , it is 28. Then do this,

#cd /var/log/sa/
#sar 1 10 -o sa28
wait few secs and press control+c .

Now give.

#sar -A

Now the command should work. Give the command after 30 min and 1 hour to see the cummulative reports.

regards,

U.SivaKumar


Innovations are made when conventions are broken
Steven E. Protter
Exalted Contributor

Re: About sar

I'm attaching some adaptable sar scripts that might collect some data for you.

You will need to fix some hp-ux related errors, but its not so bad.

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
Huc_1
Honored Contributor

Re: About sar

Have a look at this link

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=236211

SEP you are very consistent ... so is juno2 (just pulling your legs ...)

J-P
Smile I will feel the difference
Neel Arurkar
New Member

Re: About sar

First of all check the sysstat in /etc/cron.d/
Your /etc/cron.d/sysstat should read this

*/1 * * * * root /usr/lib/sa/sa1 1 1

53 23 * * * root /usr/lib/sa/sa2 -A

If it does already, then I am sure you dont have /usr/lib/sa. Create sa in /usr/lib/ and wait for a few minutes. Sar will dance to your tunes.
--Neel Arurkar
Deoncia Grayson_1
Honored Contributor

Re: About sar

try running the sar -A with an interval of your choosing and you will get the out put you are searching,just using it alone will give you the error that you received.


I tried it to and got the same error mesg with sar -A but using sar -A 4 gave me an output.

If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon