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.

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 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

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