manpages.info - online man pages   

SunOS man pages : wracct (1)

Maintenance Commands                                   wracct(1M)

NAME

wracct - write extended accounting records for active processes and tasks

SYNOPSIS

/usr/sbin/wracct [ -trecord_type ] i id_list {task | pro- cess}

DESCRIPTION

The wracct utility allows the administrator to invoke the extended accounting system, if active, to write intermediate records representing the resource usage of a selected set of processes or tasks. For tasks, a record_type option is also supported, allowing the administrator to request the writing of a partial record, which leaves the current task usage unchanged, or an interval record, which resets the task usage to zero for that system task, with respect to the extended accounting subsystem. If interval records are used, the total task usage is the sum of all interval records and the final record written at the task's comple- tion. If partial records are used, the completion record reflects the total resource usage.

OPTIONS

The following options are supported: -i id_list Select the IDs of the tasks or processes to write records for. Specify id_list as a comma- or space- separated list of IDs, presented as a single argument. For some shells, this requires appropriate quoting of the argument. -t record_type Select type of record to write for the selected task or process. For tasks, record_type can be partial or interval. partial is the the default type, and the only type available for process records.

OPERANDS

The following operands are supported: process Treat the given ID as a process ID for the purposes of constructing and writing an extended accounting record. task Treat the given ID as a task ID for the purposes of constructing and writing an extended accounting record. SunOS 5.8 Last change: 24 Jan 2000 1 Maintenance Commands wracct(1M)

EXAMPLES

Example 1: Writing a partial record Write a partial record for all active sendmail processes. # /usr/sbin/wracct -i "`pgrep sendmail`" process Example 2: Writing an interval record Write an interval record for the task with ID 182. # /usr/sbin/wracct -t interval -i 182 task

EXIT STATUS

The following exit values are returned: 0 Successful completion. 1 An error occurred. 2 Invalid command line options were specified. 3 Pertinent components of extended accounting facility are not active.

FILES

/var/adm/exacct/task /var/adm/exacct/proc Extended accounting data files.

ATTRIBUTES

See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWcsu | |_____________________________|_____________________________|

SEE ALSO

attributes(5) SunOS 5.8 Last change: 24 Jan 2000 2