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.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

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

Item Description
/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.