csackpacct(1M) csackpacct(1M) NAME csackpacct - checks the size of the process accounting file SYNOPSIS /usr/lib/acct/csackpacct [blocks] DESCRIPTION The csackpacct script checks the size of the CSA process accounting file /var/adm/acct/day/pacct and checks the amount of free space on the filesystem containing the /var/adm/acct directory. If the size of the pacct file exceeds 4000 blocks (default) or exceeds the specified number of blocks, csackpacct starts a new accounting file by invoking the csaswitch(1M) command. When accounting is enabled, the csaswitch command is called with the -c on option by default. You can modify the behavior of the csaswitch command to enable additional daemon or continuation record types and set threshold values by setting the applicable values in the /etc/csa.conf file. For additional information, see the csaswitch(1M) man page. ACCT_FS is a parameter which defines the filesystem on which /var/adm/acct resides and is defined in the accounting configuration file /etc/csa.conf. The MIN_BLKS parameter also is defined there. csackpacct also ensures that the ACCT_FS filesystem contains at least MIN_BLKS free blocks. If there is not this much free space, csackpacct turns off CSA accounting by invoking csaswitch(1M) with the halt operand. csackpacct calls csaswitch(1M) with the on operand to re-enable process accounting when at least MIN_BLKS free blocks are available. This feature is sensitive to the frequency at which csackpacct is executed. You should run csackpacct periodically using the cron(1M) command. The csackpacct script accepts the following operand: blocks Specifies the maximum size (in blocks) to which the CSA process accounting file can grow before it is switched. The default is 4000 blocks. In the released template of the accounting configuration file, /etc/csa.conf, ACCT_FS is set to /usr. If this is not correct for your system, you must define ACCT_FS properly in /etc/csa.conf. EXAMPLES The following example is a suggested entry for the /usr/spool/cron/crontabs/root file so that cron(1M) automatically runs csackpacct on the hour: 5 * * * 1-6 if /etc/chkconfig csaacct; then /usr/lib/acct/csackpacct; fi FILES /etc/csa.conf CSA configuration file /var/adm/acct/day/pacct* CSA process accounting files /usr/spool/cron/crontabs/root root crontab(1) file SEE ALSO cron(1M), crontab(1), csaswitch(1M). Page 2