Checks data file size for process accounting.
/usr/sbin/acct/ckpacct [ BlockSize ]
The ckpacct command checks the size of the active data file, /var/adm/pacct. Normally, the cron daemon runs this command. If the size of the active data file exceeds the number of blocks specified by the BlockSize parameter, the ckpacct command invokes the turnacct switch command to turn off process accounting. The default value for the BlockSize parameter is 1000.
If the number of free disk blocks in the /var file system falls below 500, the ckpacct command automatically turns off process accounting by invoking the turnacct off command. When 500 blocks are again available, accounting is reactivated. This feature is sensitive to how frequently the ckpacct command is run.
When the MAILCOM environment variable is set to mail root adm, a mail message is sent both to the root and adm groups if an error occurs.
Access Control: This command should grant execute (x) access only to members of the adm group.
To automatically check the size of the /var/adm/pacct data file, add the following to the /var/spool/cron/crontabs/root file:
5 * * * * /usr/sbin/acct/ckpacct
This example shows the instructions the cron daemon reads and acts upon. The ckpacct command runs at 5 minutes past every hour (5 *) every day. This command is only one of the accounting instructions normally given to the cron daemon. See "Setting Up an Accounting System" in AIX 5L Version 5.2 System Management Guide: Operating System and Devices for more information on typical cron accounting entries.
/usr/sbin/acct | The path to the accounting commands |
/var/adm/pacct | Current file for process accounting. |
The acctcom command, acctprc1, acctprc2, or accton command, turnacct command.
The cron daemon.
The acct subroutine.
For more information about the accounting system, the preparation of daily and monthly reports, and the accounting files, see the Accounting Overview in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.
Setting Up an Accounting System in AIX 5L Version 5.2 System Management Guide: Operating System and Devices explains the steps you must take to establish an accounting system.