|
|
1.1 root 1:
2:
3: sa Command sa
4:
5:
6:
7:
8: Process accounting
9:
10: ssaa [-aabbccjjllmmnnrrssttuu][-vv _N][_f_i_l_e]
11:
12: One of the accounting mechanisms available on the COHERENT system
13: is process accounting (also called shell accounting), which
14: records the commands executed by each user. The command accton
15: enables or disables shell accounting.
16:
17: The command sa scans the accounting information in file and
18: prints a summary. If file is omitted, it reads the file
19: /usr/adm/acct by default. For each command executed, sa prints
20: the number of calls made, the total CPU time (user and system),
21: and the total real time. The output is ordered by decreasing CPU
22: time.
23:
24: sa recognizes the following options:
25:
26: aa Place commands executed only once and command names with un-
27: printable characters in the category ``***other''.
28:
29: bb Sort by average CPU time per call.
30:
31: cc Also print CPU time as a percentage of all CPU time used.
32:
33: jj Print average times per call rather than totals.
34:
35: ll Separate user and system time.
36:
37: mm Accumulate information for each user rather for each command.
38:
39: nn Sort by number of calls.
40:
41: rr Reverse the order of the sort.
42:
43: ss After scanning, condense the accounting file and merge it
44: into the summary files.
45:
46: tt Also print the CPU time as a percentage of real time.
47:
48: uu Print the user and command for each accounting record; this
49: option overrides all others.
50:
51: vv _N For commands called no more than N times, where N is a digit,
52: sa asks whether to place the command in the category
53: ``**junk**''.
54:
55: sa uses the summary files /usr/adm/savacct and /usr/adm/usracct
56: to lessen disk usage.
57:
58: ***** Files *****
59:
60: /uussrr/aaddmm/aacccctt -- Default account data
61: /uussrr/aaddmm/ssaavvaacccctt -- Summary
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
67:
68:
69: sa Command sa
70:
71:
72:
73: /uussrr/aaddmm/uussrraacccctt -- Summary
74:
75: ***** See Also *****
76:
77: ac, acct(), acct.h, accton, commands
78:
79: ***** Notes *****
80:
81: The file /usr/adm/acct can become very large; therefore, you
82: should truncate it periodically. Special care should be taken if
83: process accounting is enabled on a COHERENT system with limited
84: disk space.
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130: COHERENT Lexicon Page 2
131:
132:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.