If you are using the accounting system to charge user for system resources, the integrity of the /var/adm/acct/sum/tacct file is quite important. Occasionally, mysterious tacct records appear that contain negative numbers, duplicate user numbers, or a user number of 65,535.
You must have root user or adm group authority.
cd /var/adm/acct/sum
prtacct tacctprev
The prtacct command formats and displays the tacctprev file so that you can check connect time, process time, disk usage, and printer usage.
acctmerg -v < tacct.mmdd > tacct.new
Note: The acctmerg command with the -a flag also produces ASCII output. The -v flag produces more precise notation for floating-point numbers.
The acctmerg command is used to merge the intermediate accounting record reports into a cumulative total report (tacct). This cumulative total is the source from which the monacct command produces the ASCII monthly summary report. Since the monacct command procedure removes all the tacct.mmdd files, you recreate the tacct file by merging these files.
acctmerg -i < tacct.new > tacct.mmdd
acctmerg tacctprev < tacct.mmdd > tacct