Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ acctcms(1M) — A/UX 0.7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acctcom(1)

acct(1M)

acctcon(1M)

acctmerg(1M)

acctprc(1M)

acctsh(1M)

fwtmp(1M)

runacct(1M)

acct(2)

acct(4)

utmp(4)



     acctcms(1M)                                           acctcms(1M)



     NAME
          acctcms - command summary from per-process accounting
          records

     SYNOPSIS
          /usr/lib/acct/acctcms [-a[-o] [-p]] [-c] [-j] [-n] [-s] [-t]
          files

     DESCRIPTION
          acctcms reads one or more files, normally in the form
          described in acct(4).  It adds records for processes that
          executed identically-named commands, sorts them, and writes
          them to the standard output, normally using an internal
          summary format.  The flag options are:

          -a   Print output in ASCII rather than in the internal
               summary format.  The output includes command name,
               number of times executed, total kcore-minutes, total
               CPU minutes, total real minutes, mean size (in K), mean
               CPU minutes per invocation, ``hog factor,'' characters
               transferred, and blocks read and written, as in
               acctcom(1).  Normally, output is sorted by total
               kcore-minutes.
               You can use the following options only with the -a
               option.

               -p   Output a prime-time-only command summary.

               -o   Output a non-prime (offshift) time-only command
                    summary.
          Using -p and -o together produces a combination prime and
          non-prime-time report.  The output summaries are total
          usage, except number of times executed, CPU minutes, and
          real minutes-these are split into prime and non-prime.

          -c   Sort by total CPU time, rather than total kcore-
               minutes.

          -j   Combine commands invoked only once under ``***other''.

          -n   Sort by number of command invocations.

          -s   File names encountered hereafter are in internal
               summary format.

          -t   Process all records as total accounting records.  The
               default internal summary format splits each field into
               prime and non-prime-time parts.  This option combines
               the prime and non-prime-time parts into a single field
               that totals both, and is compatible with System V style
               acctcms internal summary format records.




     Page 1                                        (last mod. 1/15/87)





     acctcms(1M)                                           acctcms(1M)



     EXAMPLE
          A typical sequence for daily command accounting and
          maintaining a running total is:

               acctcms file ... > today
               cp total previoustotal
               acctcms -s today previoustotal > total
               acctcms -a -s today

     FILES
          /usr/lib/acct/acctcms

     SEE ALSO
          acctcom(1), acct(1M), acctcon(1M), acctmerg(1M),
          acctprc(1M), acctsh(1M), fwtmp(1M), runacct(1M), acct(2),
          acct(4), utmp(4).

     BUGS
          You get unpredictable output if you use -t on new style
          internal summary format files, or if you don't use it with
          old style internal summary format files.


































     Page 2                                        (last mod. 1/15/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026