1wracct(1M) System Administration Commands wracct(1M)
2
3
4
6 wracct - write extended accounting records for active processes and
7 tasks
8
10 /usr/sbin/wracct -i id_list [-t record_type]
11 {process | task}
12
13
15 The wracct utility allows the administrator to invoke the extended
16 accounting system, if active, to write intermediate records represent‐
17 ing the resource usage of a selected set of processes or tasks. For
18 tasks, a record_type option is also supported, allowing the administra‐
19 tor to request the writing of:
20
21 o an interval record, which reflects task usage since a previ‐
22 ous interval record (or since task creation if there is no
23 interval record), or
24
25 o a partial record, which reflects usage since task creation.
26
28 The following options are supported:
29
30 -i id_list Select the IDs of the tasks or processes to write
31 records for. Specify id_list as a comma- or space-
32 separated list of IDs, presented as a single argu‐
33 ment. For some shells, this requires appropriate
34 quoting of the argument.
35
36
37 -t record_type Select type of record to write for the selected task
38 or process. For tasks, record_type can be partial or
39 interval. partial is the default type, and the only
40 type available for process records.
41
42
44 The following operands are supported:
45
46 process Treat the given ID as a process ID for the purposes of con‐
47 structing and writing an extended accounting record.
48
49
50 task Treat the given ID as a task ID for the purposes of con‐
51 structing and writing an extended accounting record.
52
53
55 Example 1 Writing a Partial Record
56
57
58 Write a partial record for all active sendmail processes.
59
60
61 # /usr/sbin/wracct -i "`pgrep sendmail`" process
62
63
64
65 Example 2 Writing an Interval Record
66
67
68 Write an interval record for the task with ID 182.
69
70
71 # /usr/sbin/wracct -t interval -i 182 task
72
73
74
76 The following exit values are returned:
77
78 0 Successful completion.
79
80
81 1 An error occurred.
82
83
84 2 Invalid command line options were specified.
85
86
87 3 Pertinent components of extended accounting facility are not
88 active.
89
90
92 /var/adm/exacct/task
93
94
95 /var/adm/exacct/proc Extended accounting data files.
96
97
99 See attributes(5) for descriptions of the following attributes:
100
101
102
103
104 ┌─────────────────────────────┬─────────────────────────────┐
105 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
106 ├─────────────────────────────┼─────────────────────────────┤
107 │Availability │SUNWcsu │
108 └─────────────────────────────┴─────────────────────────────┘
109
111 acctadm(1M), attributes(5)
112
113
114
115SunOS 5.11 13 July 2005 wracct(1M)