Showing the CPU accounting usage for each user

You can display a formatted report about the CPU usage by user with a combination of the acctprc1 and prtacct commands.

The acctprc1, acctprc2, or accton Command command requires input in the total accounting record form (acct file format). This implies that you have process accounting turned on or that you have run process accounting in the past.
To show the CPU usage for each user, perform the following steps:
  1. Produce an output file of CPU usage by process by typing:
    acctprc1 </var/adm/pacct >out.file
    The /var/adm/pacct file is the default output for process accounting records. You might want to specify an archive pacct file instead.
  2. Produce a binary total accounting record file from the output of the previous step by typing:
    acctprc2 <out.file >/var/adm/acct/nite/daytacct
    Note: The daytacct file is merged with other total accounting records by the acctmerg command to produce the daily summary record, /var/adm/acct/sum(x)/tacct.
  3. Use the Showing the CPU accounting usage for each user command to display a formatted report of CPU usage summarized by the user by typing:
    prtacct </var/adm/acct/nite/daytacct