[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 5

sa2 Command

Purpose

Writes a daily report in the /var/adm/sa/sardd file.

Syntax

/usr/lib/sa/sa2

Description

The sa2 command is a variant shell procedure of the sar command, which writes a daily report in the /var/adm/sa/sardd file, where dd is the day of the month. The sa2 command handles all of the flags and parameters of the sar command.

The sa2 command is designed to be run automatically by the cron command and run concurrently with the sa1 command.

Examples

To run the sa2 command daily, place the following entry in the root crontab file:

5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 3600 -ubcwyaqvm &

This will generate a daily report called /var/adm/sa/sardd. It will also remove a report more than one week old.

Files

/var/adm/sa Specifies the directory containing the daily data files.
/var/adm/sa/sardd Contains daily data file, where the dd parameter is a number representing the day of the month.
/usr/lib/sa/sa2 The path to the shell script of the sa2 command.

Related Information

The sa1 command, sadc command, sar command.

The cron daemon.

Accounting Overview, Setting Up an Accounting System in AIX Version 4.3 System Management Guide: Operating System and Devices.

Accounting Commands in AIX Version 4.3 System Management Guide: Operating System and Devices lists accounting commands that can be run automatically or entered from the keyboard.


[ Previous | Next | Contents | Glossary | Home | Search ]