Installation guide

12.2.4 Modifying crontab Files
To enable automatic accounting, you must use the crontab command to
modify the files in the /usr/spool/cron/crontabs directory. The files in
the /usr/spool/cron/crontabs directory contain commands that the
cron daemon runs at specified times under a specific authority. For
example, the commands in the /usr/spool/cron/crontabs/root file
are run under root authority, and the commands in the
/usr/spool/cron/crontabs/adm file are run under adm authority.
You can include the following commands and shell scripts in the
/usr/spool/cron/crontabs/adm file:
ckpacct
This shell script checks the size of the
/var/adm/pacct process accounting database file
and ensures that it does not become too large.
runacct
This shell script includes other accounting shell
scripts and commands and creates daily and
monthly accounting files. You can modify the
runacct shell script to remove the commands for
the accounting features that you do not want.
monacct
This shell script creates monthly summary
accounting files. You can modify the monacct shell
script to remove the commands for the accounting
features that you do not want.
ac
This command displays connect-time records. You
can direct the output to a file. You can also add this
command to the runacct shell script.
pac
This command displays printer accounting records.
You can direct the output to a file. To enable printer
accounting, refer to Section 12.8.
You can include the dodisk shell script in the
/usr/spool/cron/crontabs/root file. The dodisk shell script creates
disk usage accounting records and should be run once during nonprime
time each week.
Refer to Chapter 4 and to the crontab
(1) reference page for more
information on submitting commands with the crontab command.
Administering the System Accounting Services 12–11