Installation guide

than 80 characters, and the entire width of 8.5 x 11-inch paper
could be used if the 10-character per inch constant-width font is
specified. If part of a record exceeds the column width, it is
moved to the next line.
The following example produces ASCII output that includes the statistics
for commands that were invoked only once in a row specifying ***other in
the COMMAND NAME column:
# acctcms -a -j /var/adm/pacct1
TOTAL COMMAND SUMMARY
COMMAND NUMBER TOTAL TOTAL TOTAL MEAN MEAN HOG CHARS BLOCKS
NAME CMDS KCOREMIN CPUMIN REALMIN SIZEK CPUMIN FACTOR TRNSFD READ
TOTALS 9377 0.00 0.36 26632.67 0.00 0.00 0.00 17768213 100529
chmod 34 0.00 0.00 .15 0.00 0.00 0.07 5785856 64
ln 4 0.00 0.00 0.01 0.00 0.00 0.78 422016 16
xterm 9 0.00 0.03 537.41 0.00 0.00 0.00 22948288 536
getcons 8 0.00 0.00 0.14 0.00 0.00 0.07 26636992 102
cfe2.20 4 0.00 0.00 0.09 0.00 0.00 0.12 182464 155
dump 22 0.00 0.00 14.91 0.00 0.00 0.00 69402112 128
whoami 4 0.00 0.00 0.03 0.00 0.00 0.36 7405952 27
restore 40 0.00 0.00 49.16 0.00 0.00 0.00 34247488 1316
***other 25 0.00 0.00 3546.88 0.00 0.00 0.00 35904984 737
hostname 2 0.00 0.00 0.01 0.00 0.01 0.94 223104 14
The hog factor is the total CPU time divided by the total real time.
12.5.7 The acctprc1 Command
The acctprc1 command reads process accounting records from files with
the /usr/include/sys/acct.h header file structure, adds the login
names that correspond to the user identification numbers, and displays the
records in ASCII format. Login session records are sorted according to user
identification number and login name.
If your system has users with the same user identification number, you
should use a process accounting file in the /var/adm/acct/nite directory
instead of the /var/adm/pacct file.
The runacct shell script invokes the acctprc1 command during its
PROCESS state. You can also invoke the command manually. The
acctprc1 command has the following syntax:
/usr/sbin/acct/acctprc1
[ filename]
The
filename
variable specifies a file that contains a list of login sessions
in a format defined by the /usr/include/utmp.h header file structure. If
the
filename
variable is not specified, login names are obtained from the
/etc/passwd file.
12–28 Administering the System Accounting Services