Installation guide

3. Edit the /usr/sbin/acct/holidays file to specify prime time,
nonprime time, and holidays.
4. To enable automatic accounting, modify the files in the
/usr/spool/cron/crontabs directory to invoke accounting shell
scripts and commands.
Resource accounting is discussed separately from printer accounting
because the print driver software uses different servers, daemons, and
routines. Setting up printer accounting is described in Chapter 10.
12.2.1 Enabling Accounting in the rc.config File
To enable accounting, you must add the following line to the
/etc/rc.config file:
ACCOUNTING="YES"
You can use the rcmgr command to set the variable, as follows:
# rcmgr set ACCOUNTING YES
You can start accounting without rebooting your system by using the
startup command. Refer to Section 12.3 for more information.
12.2.2 Creating qacct and pacct Files
You must create the /var/adm/qacct queueing accounting file and the
/var/adm/pacct process accounting database file. Use the nulladm
command to create the files.
12.2.3 Editing the holidays File
The /usr/sbin/acct/holidays file uses 24-hour time to specify prime
time and nonprime time. The file also specifies holidays, which are included
in nonprime time. Only the days Monday through Friday are included in
prime time. You can assess system use during nonprime time at a lower
rate than during prime time. If you enable automatic accounting, you
should specify that the commands be executed during nonprime time.
If the /usr/sbin/acct/holidays file does not exist, you must create it.
If the file exists, you must edit it to reflect your accounting needs.
You can set the NHOLIDAYS environment variable to specify the
maximum number of holidays that you can include in the holidays file.
12–10 Administering the System Accounting Services