This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

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

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



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

NAME
     sa2 -- Generate a system activity daily report file.

SYNOPSIS
     /usr/lib/sa/sa2 [-dgpu] [-n mode] [-e time] [-f filename] [-i seconds] [-s time]

DESCRIPTION
     The sa2 command is a shell script used to invoke the system activity reporter sar for purposes of gen-erating generating
     erating the standard default daily report file.  The report file generated is, /var/log/sa/sardd where
     the dd represents the current day of the month.  The sa2 options are the same as those documented in
     sar(1).

     When sa2 runs, it will also remove data and report files, found in /var/log/sa, that are more than one
     week old.

     The sa2 command 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/sardd  Default daily report file.
     /var/log/sa/sadd   Default daily data file.

                        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),
     sa1(8), sadc(8)

Mac OS X                                         Jul 25 2003                                        Mac OS X

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...