Installation guide

2. Enter the prtacct command to display the
/var/adm/sum/tacctprev file. If the file is correct, then the problem
probably is located in the /var/adm/sum/tacct
mmdd
file. This
example assumes that the /var/adm/sum/tacct
mmdd
file needs to be
fixed.
3. To obtain an ASCII version of the /var/adm/sum/tacct
mmdd
file,
enter:
# acctmerg v < tacct.0617 > tacct_temp
4. Edit the temporary file and correct the records as necessary.
5. To re-create the /var/adm/sum/tacct
mmdd
file, enter:
# acctmerg i < tacct_temp > tacct.0617
6. To re-create the /var/adm/sum/tacct file, enter:
# acctmerg tacctprev < tacct.0617 > tacct
12.9.3 The prtacct Shell Script
The prtacct shell script displays a binary total accounting file with the
tacct file format in ASCII format. The script allows you to produce a
connect time, process time, disk usage, or printer usage report file.
The monacct and prdaily shell scripts invoke the prtacct shell script.
The runacct shell script invokes the prdaily shell script during its
CLEANUP state. The prtacct shell script has the following syntax:
/usr/sbin/acct/prtacct
[f column][v] file
Refer to the prtacct
(8) reference page for information on the command
options.
12.9.4 The prdaily Shell Script
The prdaily shell script creates an ASCII report of the accounting data
from the previous day. The runacct shell script invokes the prdaily shell
script during its CLEANUP state to create the
/var/adm/acct/sum/rprt
mmdd
file. You can invoke the command
manually to produce a report.
The prdaily script combines information from the following six accounting
files:
/var/adm/acct/nite/reboots
/var/adm/acct/nite/lineuse
/var/adm/acct/sum/tacct
mmdd
12–40 Administering the System Accounting Services