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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sar can't open?!

Status
Not open for further replies.

eepico

MIS
Jan 6, 2002
60
HK
Dear friends,

I have a SCO OpenServer 5.0.5 in a DELL box. It was not installed by me so I don't know why I can't get sar work... When I run, eg., "sar -u", it prompted me "sar: Can't open /usr/adm/sa/sa21"! Any hints?

Jack
 
From the man page for sar:

Enabling and disabling system activity recording
++++++++++++++++++++++++++++++++++++++++++++++++

Use the sar_enable(ADM) command to enable or disable system activity recording.

If system activity recording is enabled, the following entries in /usr/spool/cron/crontabs/sys (see crontab(C)) produce records every 20 minutes during working hours and hourly otherwise:

0 * * * 0-6 /usr/lib/sa/sa1
20,40 8-17 * * 1-5 /usr/lib/sa/sa1

The following /usr/spool/cron/crontabs/root entry produces a readable report of all activities every 20 minutes during the working day:

5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

The result of running the sa1 or sa2 scripts is to make a record of the system's daily activity for the previous month in the directory /usr/adm/sa as binary files (sadd), or ASCII reports (sardd).

Hope this helps.
 
Specifically it's

/usr/lib/sar_enable -y

Ignore the warning about needing to reboot; you do not.

Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
go to /usr/lib and run ./sa1 and ./sa2
this will solve this problem .

sar_enable -y can be used to enable data collection in crontab .


Anup

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top