Writes a daily report in the /var/adm/sa/sardd file.
/usr/lib/sa/sa2
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.
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.
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. |