ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



sa1(8)                    BSD System Manager's Manual                   sa1(8)

NAME
     sa1 -- Generate a system activity daily data file.

SYNOPSIS
     /usr/lib/sa/sa1 [t n]

DESCRIPTION
     The sa1 command is a shell script used to invoke the system activity data collector, sadc.  The binary
     sample data is collected at intervals t seconds apart, in a loop n times.  The binary sample data is
     written to the standard daily data file, /var/log/sa/sadd where the dd represents the current day of
     the month.

     sa1 is intended to be started by cron.

EXAMPLE CRON ENTRY
     # Starting at 8am collect system activity records
     # every 20 minutes for 12 hours
     # 20 minutes = 1200 seconds
     # 12 hours with 3 samples each hour = 36 loops

     0 8 * * 1-5 /usr/lib/sa/sa1 1200 36


     # After the 12 hour period,
     # collect a system activity report

     30 20 * * 1-5 /usr/lib/sa/sa2 -A


FILES
     /var/log/sa/sadd  Default daily activity file that holds the binary sampling data.  dd are digits that
                       represent the day of the month.

SEE ALSO
     crontab(1), fs_usage(1), netstat(1), sar(1), sc_usage(1), top(1), vm_stat(1), crontab(5), iostat(8),
     sa2(8), sadc(8)

Mac OS X                          Jul 25 2003                         Mac OS X

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.