Technical article 127951

acctcom man page is missing options

OpenServer Definitive 2018

Written · Last revised

Problem

acctcom man page is missing many options.

Solution

This issue has been reported to Xinuos Engineering.

Here is a list of the options as reported by acctcom -X:

acctcom [-abcfhikmqrRtvwWXy8] [-[uU]<user>|#|?] [-[gG]<group>]
	[-[lL]<line>|.|?] [-[nN]<command-pat>] [-I<chars>] [-B<blocks>]
        [-[sSeE]<time>] [-[OCZ]<cpu-time>] [-A<real-time>] [-H<hog-factor>]
	[-M<mean-memory-size>] [-K<kcore-minutes>]
	[-o<out-file>|-] [-T<time-format>]
General options:
-X             Print this help
-b             Read backwards through file
-c             Continuously read new records as they are appended to file
-o[<file>|-]   Do not print, put selected pacct records into <file> or stdout
Display options:
-w             Always print header telling when records are from
-W             Never print header telling when records are from
-v             Don't print column headings or time-restriction messages
-T<format>     Set the format of the START and END times.  The time format
               is specified as for date(C), but without the leading +
-8             Print times in ISO 8601 format; equivalent to -T"%Y-%m-%d %T"
-a             Print average statistics of selected commands
-q             Print average statistics only
Field selection options:
-f             Print the fork/exec flag and exit status
-h             Print hog factor (total-CPU-time/elapsed-time)
-i             Print I/O counts
-k             Print total Kcore minutes instead of memory size
-m             Print mean memory size
-r             Print CPU factor (user-time/(sys-time + user-time))
-R             Print group ownership
-t             Print separate system and user CPU times
Record selection options:
-y             Print records if any selectors match, instead of if all match
-l/-L<line>    Select/exclude processes run on terminal /dev/<line>
-l?/-L?        Select/exclude processes not run on a terminal
-l./-L.        Select/exclude processes run on an unknown terminal
-u/-U<user>    Select/exclude processes belonging to user name or user ID
-u?/-U?        Select/exclude processes executed by unknown UIDs
-u#/-U#        Select/exclude processes executed with super-user privilege
-g/-G<group>   Select/exclude processes belonging to group name or group ID
-s<time>       Select processes ending after <time> (hh[:mm[:ss]])
-e<time>       Select processes starting before <time>
-S<time>       Select processes starting after <time>
-E<time>       Select processes ending before <time>
-n/-N<pat>     Select command names matching/not-matching extended regexp <pat>
See the man page for an explanation of the values that the following take:
-H<factor>     Select processes that match the given hog factor range(s)
-O<sec>        Select processes that match the given CPU system time range(s)
-Z<sec>        Select processes that match the given CPU user time range(s)
-C<sec>        Select processes that match the given total CPU time range(s)
-A<sec>        Select processes that match the given real time range(s)
-M<size>       Select processes that match the given mean memory size range(s)
-K<K-min>      Select processes that match the given kcore-minutes range(s)
-I<chars>      Select processes that match the given transfer count range(s)
-B<blocks>     Select processes that match the given block R/W count range(s)

From the Xinuos technical article database, record 127951. Reproduced with permission. The original is at www.sco.com/ta/127951, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.