ckpacct Command

Purpose

Checks data file size for process accounting.

Syntax

/usr/sbin/acct/ckpacctBlockSize ]

Description

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.

Security

Access Control: This command should grant execute (x) access only to members of the adm group.

Examples

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.

Files

Item Description
/usr/sbin/acct The path to the accounting commands
/var/adm/pacct Current file for process accounting.