1acctprc(1M)             System Administration Commands             acctprc(1M)
2
3
4

NAME

6       acctprc, acctprc1, acctprc2 - process accounting
7

SYNOPSIS

9       /usr/lib/acct/acctprc
10
11
12       /usr/lib/acct/acctprc1 [ctmp]
13
14
15       /usr/lib/acct/acctprc2
16
17

DESCRIPTION

19       acctprc  reads  the  standard input and converts it to total accounting
20       records (see the tacct record in acct.h(3HEAD)).  acctprc  divides  CPU
21       time into prime time and non-prime time and determines mean memory size
22       (in memory segment units). acctprc then summarizes the  tacct  records,
23       according  to  user IDs, and adds login names corresponding to the user
24       IDs. The summarized records are then written to  the  standard  output.
25       acctprc1 reads input in the form described by acct.h(3HEAD), adds login
26       names corresponding to user IDs, then writes for each process an  ASCII
27       line  giving  user ID, login name, prime CPU time (tics), non-prime CPU
28       time (tics), and mean memory size (in memory segment units). If ctmp is
29       given, it should contain a list of login sessions sorted by user ID and
30       login name. If this file is not supplied, it obtains login  names  from
31       the  password file, just as acctprc does. The information in ctmp helps
32       it distinguish between different login names that share the  same  user
33       ID.
34
35
36       From  the standard input, acctprc2 reads records in the form written by
37       acctprc1, summarizes them according to user ID and  name,  then  writes
38       the  sorted  summaries  to  the  standard  output  as  total accounting
39       records.
40

EXAMPLES

42       Example 1 Examples of acctprc.
43
44
45       The acctprc command is typically used as shown below:
46
47
48         example% acctprc < /var/adm/pacct > ptacct
49
50
51
52
53       The acctprc1 and acctprc2s commands are typically used as shown below:
54
55
56         example% acctprc1 ctmp </var/adm/pacct
57         example% acctprc2 > ptacct
58
59
60

FILES

62       /etc/passwd    system password file
63
64

ATTRIBUTES

66       See attributes(5) for descriptions of the following attributes:
67
68
69
70
71       ┌─────────────────────────────┬─────────────────────────────┐
72       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
73       ├─────────────────────────────┼─────────────────────────────┤
74       │Availability                 │SUNWaccu                     │
75       └─────────────────────────────┴─────────────────────────────┘
76

SEE ALSO

78       acctcom(1),   acct(1M),   acctcms(1M),    acctcon(1M),    acctmerg(1M),
79       acctsh(1M),  cron(1M),  fwtmp(1M), runacct(1M), acct(2), acct.h(3HEAD),
80       utmpx(4), attributes(5)
81

NOTES

83       Although it is possible for acctprc1 to distinguish among  login  names
84       that  share user IDs for commands run from a command line, it is diffi‐
85       cult for acctprc1 to make this  distinction  for  commands  invoked  in
86       other ways. A command run from cron(1M) is an example of where acctprc1
87       might have difficulty. A more precise conversion can be done using  the
88       acctwtmp  program  in  acct(1M).  acctprc  does not distinguish between
89       users with identical user IDs.
90
91
92       A memory segment of the mean memory size is a unit of measure  for  the
93       number of bytes in a logical memory segment on a particular processor.
94
95
96       During a single invocation of any given command, the acctprc, acctprc1,
97       and acctprc2 commands can process a maximum of
98
99           o      6000 distinct sessions
100
101           o      1000 distinct terminal lines
102
103           o      2000 distinct login names
104
105
106       If at some point the actual number of any one of  these  items  exceeds
107       the maximum, the command will not succeed.
108
109
110
111SunOS 5.11                       15 July 2004                      acctprc(1M)
Impressum