Collects and stores binary data in the /var/adm/sa/sadd file.
/usr/lib/sa/sa1 [ Interval Number ]
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.
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 &
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. |