1acctcms(1M) System Administration Commands acctcms(1M)
2
3
4
6 acctcms - command summary from process accounting records
7
9 /usr/lib/acct/acctcms [-a [-o] [-p]] [-c] [-j] [-n] [-s]
10 [-t] filename...
11
12
14 acctcms reads one or more filenames, normally in the form described in
15 acct.h(3HEAD). It adds all records for processes that executed identi‐
16 cally named commands, sorts them, and writes them to the standard out‐
17 put, normally using an internal summary format.
18
20 -a Print output in ASCII rather than in the internal summary format.
21 The output includes command name, number of times executed, total
22 kcore-minutes, total CPU minutes, total real minutes, mean size
23 (in K), mean CPU minutes per invocation, "hog factor," characters
24 transferred, and blocks read and written, as in acctcom(1). Out‐
25 put is normally sorted by total kcore-minutes.
26
27 Use the following options only with the -a option:
28
29 -o Output a (non-prime) offshift-time-only command summary.
30
31
32 -p Output a prime-time-only command summary.
33
34 When -o and -p are used together, a combination prime-time and
35 non-prime-time report is produced. All the output summaries are
36 total usage except number of times executed, CPU minutes, and
37 real minutes, which are split into prime and non-prime.
38
39
40 -c Sort by total CPU time, rather than total kcore-minutes.
41
42
43 -j Combine all commands invoked only once under "***other".
44
45
46 -n Sort by number of command invocations.
47
48
49 -s Any file names encountered hereafter are already in internal sum‐
50 mary format.
51
52
53 -t Process all records as total accounting records. The default
54 internal summary format splits each field into prime and non-
55 prime-time parts. This option combines the prime and non-prime
56 time parts into a single field that is the total of both, and
57 provides upward compatibility with old style acctcms internal
58 summary format records.
59
60
62 Example 1 Using the acctcms command.
63
64
65 A typical sequence for performing daily command accounting and for
66 maintaining a running total is:
67
68
69 example% acctcms filename ... > today
70 example% cp total previoustotal
71 example% acctcms -s today previoustotal > total
72 example% acctcms -a -s today
73
74
75
77 See attributes(5) for descriptions of the following attributes:
78
79
80
81
82 ┌─────────────────────────────┬─────────────────────────────┐
83 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
84 ├─────────────────────────────┼─────────────────────────────┤
85 │Availability │SUNWaccu │
86 └─────────────────────────────┴─────────────────────────────┘
87
89 acctcom(1), acct(1M), acctcon(1M), acctmerg(1M), acctprc(1M),
90 acctsh(1M), fwtmp(1M), runacct(1M), acct(2), acct.h(3HEAD), utmpx(4),
91 attributes(5)
92
94 Unpredictable output results if -t is used on new style internal sum‐
95 mary format files, or if it is not used with old style internal summary
96 format files.
97
98
99
100SunOS 5.11 22 Feb 1999 acctcms(1M)