[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 5

sa1 Command

Purpose

Collects and stores binary data in the /var/adm/sa/sadd file.

Syntax

/usr/lib/sa/sa1Interval Number ]

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 stores binary data in the /var/adm/sa/sadd file, where dd is the day of the month. The Interval and Number parameters specify that the record should be written Number times at Interval seconds. If you do not specify these parameters, a single record is written. You must have permission to write in the /var/adm/sa directory to use this command.

The sa1 command is designed to be started automatically by the cron command. If the sa1 command is not run daily from the cron command, the sar command displays a message about the nonexistence of the /usr/lib/sa/sa1 data file.

Examples

To create a daily record of sar activities, place the following entry in your adm crontab file:

0 8-17 * * 1-5 /usr/lib/sa/sa1 1200 3 &

Files

/var/adm/sa Specifies the directory containing the daily data files.
/var/adm/sa/sadd Contains the daily data file, where the dd parameter is a number representing the day of the month.
/usr/lib/sa/sa1 Contains the sa1 command.

Related Information

The sadc command, sar command, sa2 command.

The cron daemon.

For more information about the Accounting System, the preparation of daily and monthly reports, and the accounting files, see the Accounting Overview in the AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.

Setting Up an Accounting System in the AIX 5L Version 5.2 System Management Guide: Operating System and Devices describes the steps you must take to establish an accounting system.

See the Accounting Commands in the AIX 5L Version 5.2 System Management Concepts: Operating System and Devices for a list of accounting commands that can be run automatically or entered from the keyboard.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]