Installation guide
ERROR: invalid state, check /usr/var/adm/nite/active
During processing, the runacct shell script may have detected a
corrupted active file. Check the /var/adm/acct/nite/active*
and statefile files.
12.9.2 The acctmerg Command
The acctmerg command combines process, connect time, fee, disk-usage,
and queue total accounting record files with the tacct file format. For
example, you can merge the total accounting records for a particular login
name and user identification number to provide a single group of records
for that login name and user identification number. File records are usually
merged according to the user identification number or the user login name.
The default command output is in binary format, but you can also produce
ASCII output. The default acctmerg command output has the
/usr/include/sys/acct.h header file structure and includes up to 18
columns of accounting information. Records with the
/usr/include/sys/acct.h header file structure that include data types
specified as an array of two double elements can have both prime time and
nonprime time values.
The runacct shell script invokes the acctmerg command. You can also
invoke the command manually to produce reports. The acctmerg
command has the following syntax:
/usr/sbin/acct/acctmerg
[-ahiptuv][#][ file...]
You can specify up to nine total accounting record files. If you do not specify
a file, records are read from standard input.
Refer to the acctmerg
(8) reference page for information on command
options.
The following example reads the UID, LOGNAME, DSK_BLOCKS, and
DSAMPS column entries from the /var/adm/acct/nite/dacct ASCII
disk accounting file. It then merges them into binary records in the
/var/adm/acct/sum/tacct total accounting file.
# acctmerg -i1-2, 13, 18 < nite/dacct | sum/tacct
You can use the acctmerg command to correct errors in the
/var/adm/sum/tacct file. Errors that can occur in the file include
negative numbers and duplicate user identification numbers.
To correct errors in the current /var/adm/sum/tacct file:
1. Change your directory to /var/adm/sum.
Administering the System Accounting Services 12–39