1SA(1M) SA(1M)
2
3
4
6 sa, accton - system accounting
7
9 sa [ -abcjlnrstuv ] [ file ]
10
11 /etc/accton [ file ]
12
14 With an argument naming an existing file, accton causes system account‐
15 ing information for every process executed to be placed at the end of
16 the file. If no arguemnt is given, accounting is turned off.
17
18 Sa reports on, cleans up, and generally maintains accounting files.
19
20 Sa is able to condense the information in /usr/adm/acct into a summary
21 file /usr/adm/savacct which contains a count of the number of times
22 each command was called and the time resources consumed. This conden‐
23 sation is desirable because on a large system acct can grow by 100
24 blocks per day. The summary file is read before the accounting file,
25 so the reports include all available information.
26
27 If a file name is given as the last argument, that file will be treated
28 as the accounting file; sha is the default. There are zillions of
29 options:
30
31 a Place all command names containing unprintable characters and
32 those used only once under the name `***other.'
33
34 b Sort output by sum of user and system time divided by number of
35 calls. Default sort is by sum of user and system times.
36
37 c Besides total user, system, and real time for each command print
38 percentage of total time over all commands.
39
40 j Instead of total minutes time for each category, give seconds
41 per call.
42
43 l Separate system and user time; normally they are combined.
44
45 m Print number of processes and number of CPU minutes for each
46 user.
47
48 n Sort by number of calls.
49
50 r Reverse order of sort.
51
52 s Merge accounting file into summary file /usr/adm/savacct when
53 done.
54
55 t For each command report ratio of real time to the sum of user
56 and system times.
57
58 u Superseding all other flags, print for each command in the
59 accounting file the user ID and command name.
60
61 v If the next character is a digit n, then type the name of each
62 command used n times or fewer. Await a reply from the type‐
63 writer; if it begins with `y', add the command to the category
64 `**junk**.' This is used to strip out garbage.
65
67 /usr/adm/acct raw accounting
68 /usr/adm/savacct summary
69 /usr/adm/usracct per-user summary
70
72 ac(1), acct(2)
73
74
75
76 SA(1M)