Installation guide

Table 12–1: Accounting Commands and Shell Scripts (cont.)
Name Type Description
nulladm
Script Creates files that are owned by the adm user and
group and that have 664 permission.
pac
Command Displays printer accounting records.
prctmp
Script Displays the /var/adm/acct/nite/ctmp connect
session record file.
prdaily
Script Collects and displays daily accounting records from
various files.
printpw
Command Displays the contents of the /etc/passwd file.
prtacct
Script Formats in ASCII and displays a tacct daily
accounting file.
remove
Script Removes any /var/adm/acct/sum/wtmp*,
/var/adm/acct/sum/pacct*, and
/var/adm/acct/nite/lock* files.
runacct
Script Invokes the daily accounting processes. This
command periodically calls various accounting
commands and shell scripts to write information to
various accounting files.
sa
Command Displays a summary of accounting records.
shutacct
Script Turns off accounting.
startup
Script Enables accounting processes.
turnacct
Script Controls the creation of process accounting files.
wtmpfix
Command Corrects date and time stamp inconsistencies in
the /var/adm/wtmp file.
12.1.2 Accounting Files
Many binary and ASCII files are created and maintained by the kernel or
by the accounting commands and shell scripts.
You should ensure that the accounting files, particularly those in binary
format, do not become too large. Some extraneous files are produced by the
accounting commands and shell scripts, but in general these files are
temporary and exist only while the process is running. Under some
circumstances (if a process terminates prematurely, for example), one or
more temporary files can appear in one of the /var/adm subdirectories.
You should check these subdirectories periodically and remove the
unnecessary files.
12–4 Administering the System Accounting Services