Installation guide

Command Description
runacct
This shell script creates the daily and summary files in the
/var/adm/acct/nite and /var/adm/acct/sum directories.
acctmerg
This command merges total accounting record files and
allows you to combine process connect time, fee, disk usage,
and print queue accounting records into files whose format
you specify. The output can be in either the default binary
format or ASCII format and can include up to 18 columns of
accounting information.
prtacct
This shell script formats and displays accounting files that
have the /usr/include/sys/acct.h header file structure.
Each record includes information about the user
identification number, connect time, process time, disk usage,
and printer usage.
prdaily
This shell script creates an ASCII file that contains the
accounting data from the previous day. When this script is
invoked from the runacct script, it creates the
/var/adm/acct/sum/rprt
mmdd
file.
monacct
This shell script creates cumulative process and total
accounting files in the /var/adm/acct/fiscal directory.
The following sections describe the shell scripts and the command in detail.
12.9.1 The runacct Shell Script
The runacct shell script uses accounting shell scripts and commands to
process the connect time, fee, disk usage, queue, and process accounting
database files to create the daily and summary files in the
/var/adm/acct/nite and /var/adm/acct/sum directories.
The /var/adm/acct/nite directory contains files that are reused daily by
the runacct script. Some of these files have binary counterparts in the
/var/adm/acct/sum directory, which contains the cumulative summary
files that are updated by the runacct shell script and used by the
monacct shell script to produce monthly reports.
You can set up the cron daemon to invoke the runacct shell script each
day, or you can invoke the runacct shell script manually. You may have to
invoke the command manually if the runacct shell script does not
complete or if a file created by the script becomes corrupted or lost.
_______________________ Note _______________________
When you invoke the runacct shell script it creates the
/var/adm/acct/nite/lock temporary file. If the
Administering the System Accounting Services 12–35