wracct man page on SunOS

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
SunOS logo
[printable version]

wracct(1M)		System Administration Commands		    wracct(1M)

NAME
       wracct  -  write	 extended  accounting records for active processes and
       tasks

SYNOPSIS
       /usr/sbin/wracct -i id_list [-t record_type] {process | task}

DESCRIPTION
       The wracct utility allows the  administrator  to	 invoke	 the  extended
       accounting  system, if active, to write intermediate records represent‐
       ing the resource usage of a selected set of  processes  or  tasks.  For
       tasks, a record_type option is also supported, allowing the administra‐
       tor to request the writing of:

	 ·  an interval record, which reflects task  usage  since  a  previous
	    interval  record  (or  since task creation if there is no interval
	    record), or

	 ·  a partial record, which reflects usage since task creation.

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-sepa‐
		       rated 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 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.

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 attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Availability		     │SUNWcsu			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       acctadm(1M), attributes(5)

SunOS 5.10			 13 July 2005			    wracct(1M)
[top]

List of man pages available for SunOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net