systat

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat systat
# 1  
Old 01-05-2012
systat

what does the fields in /etc/cron.d/systat mean?
my systat file contains
Code:
# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib/sa/sa1 -S DISK 1 1
# 0 * * * * root /usr/lib/sa/sa1 -S DISK 600 6 &
# Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib/sa/sa2 -A

Thanx in advance.Smilie

Moderator's Comments:
Mod Comment Please use code tags!

Last edited by zaxxon; 01-05-2012 at 07:23 AM.. Reason: code tags, see PM
# 2  
Old 01-05-2012
Hi,
refer crontab explanation

min hour dayofmonth monthofyear dayofweek command
0 12 14 2 * mailx john%Happy Birthday!%Time for lunch.

Lines that can be in the crontab file.

minute (0-59),
hour (0-23),
day of the month (1-31),
month of the year (1-12),
day of the week (0-6 with 0=Sunday).
# 3  
Old 01-05-2012
what does this line mean?
/usr/lib/sa/sa1 -S DISK 1 1
# 4  
Old 01-05-2012
These are crons to accumulate system performance statistics into sadd files (sa1) and summarises system performance statistics into sardd files (sa2). The output files are usually in /usr/adm/sa or /var/adm/sa (depends on the system).
The crons are explained at length in "man sa1" .

Code:
The day files are readable with the "sar" command. See "man sar" for your system.
e.g.
# Today's CPU stats so far
sar
# CPU stats from the 2nd of the month
sar -f /usr/adm/sa/sa02
# Today's disc stats
sar -d


(cross post)
I don't have "-S DISK1" parameter on my system. See "man sa1" for your system.
# 5  
Old 01-05-2012
SA1(8) Linux Userâs Manual SA1(8)

NAME
sa1 - Collect and store binary data in the system activity daily data file.

SYNOPSIS
/usr/lib/sa/sa1 [ interval count ]

DESCRIPTION
The sa1 command is a shell procedure variant of the sadc command and handles all of the flags and parameters of that command. The sa1
command collects and store binary data in the /var/log/sa/sadd file, where the dd parameter indicates the current day. The interval
and count parameters specify that the record should be written count times at interval seconds. If you do not specify these parame-
ters, a single record is written.

The sa1 command is designed to be started automatically by the cron command.
# 6  
Old 01-05-2012
venkatareddy, methyl thanx...
but i need to know about the options with sa1 command i.e, -S DISK...what does these two options signifies?
# 7  
Old 01-05-2012
Please browse for sloaris sa1 ,sa2 manuals
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question