1846551 Members
2748 Online
110256 Solutions
New Discussion

Sar Problem

 
Filosofo
Regular Advisor

Sar Problem

I have a problem with Sar.
I try to execute sar but I recived this message:

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

I try create this file but when execute the command I see the prompt and when I see into file but is empty.

Can somebody help me?

Filo
Sistem engeneer expert
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Sar Problem

Try "man sar"


Pete

Pete
U.SivaKumar_2
Honored Contributor

Re: Sar Problem

Hi,

#touch /var/adm/sa/sa15

restart the server.

regards,

U.SivaKumar
Innovations are made when conventions are broken
T G Manikandan
Honored Contributor

Re: Sar Problem

Do a
#sar -d 5 5

check for the options and their usage.

check
man sar


Thanks
Domenico_5
Respected Contributor

Re: Sar Problem


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.
Bill Hassell
Honored Contributor

Re: Sar Problem

To see immediate measurements, sar requires as a minimum, the length of time. The sar program is not interactive so the minimum needed to get a measurement is an option (or options) and the number of seconds as in:

sar -v 1
sar -a 1

Without the time interval, sar goes into data logging mode.


Bill Hassell, sysadmin