Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sar command error

Status
Not open for further replies.

kvashisht

IS-IT--Management
Sep 18, 2003
43
IN
hello members,

I want to see the my system resources usage using sar command.
but when i run sar command it gives error.
roo@stagingserver#sar
sar: can't open /var/adm/sa/sa23
No such file or directory

pls tell me to solve this problem.

Regds,
Kaushal Vashisht
 
I always run sar -[Whatever I want to monitor] -o outfile 10 60 (numbers are number iof samples and time period).


So to monitor disks

sar -d 10 10

Gives me 10 samples over 10 seconds


Don't worry about the /var/adm/sa/sa23 bit.


 
# su - sys
vi /var/spool/cron/crontabs/sys

and commentout these following three line


#0 * * * 0-6 /usr/lib/sa/sa1
#20,40 8-17 * * 1-5 /usr/lib/sa/sa1
#5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A




. Unless you have uncommented lines in the crontab file for the user sys and in the perf startup script
(/etc/init.d/perf), sar isn't running. Though you can, of course, issue sar commands to examine
or









.

Farah Regal
good luck
"think twice and hit enter once"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top