acctcom.1m (2010 09)

a
acctcom(1M) acctcom(1M)
NAME
acctcom - search and print process accounting files
SYNOPSIS
/usr/sbin/acct/acctcom
[[option ]... [file] ] ...
DESCRIPTION
The
acctcom command reads file, standard input, or
/var/adm/pacct, in the form described in
acct (4) and writes selected records to standard output. Each record represents the execution of one pro-
cess. The output has the following column titles:
COMMAND NAME
USER
TTYNAME
START TIME
END TIME
REAL (SECS)
CPU (SECS)
MEAN SIZE(K)
Optionally, the following can be displayed:
F fork()/exec() flag: 1 for fork() without exec()
STAT System exit status
HOG FACTOR
KCORE MIN
CPU FACTOR
CHARS TRNSFD
BLOCKS READ Total blocks read and written
PRMID PRM process resource group ID
The command name is preceded by a
# if a privileged user is required to execute the command.
For example, if a user is logged in as
root, and executes the date
command to check the time, this does
not require a privileged user, and will be shown by
acctcom without the # character on the line. If the
user executes the command date 0731180092 to set the time, this requires a privileged user, and so
will be marked with a # by acctcom.
If a process is not associated with a known terminal, a
? is printed in the
TTYNAME field.
The system exit status
STAT is 0 if the process terminated by calling exit. If it is not
0, it is the signal
number that caused the process to terminate. If a core file image was produced as a result of the signal
(see signal (5)), the value is the signal number plus
0200.
If no files are specified, and if standard input is associated with a terminal or
/dev/null (as is the case
when using
& in a shell), acctcom reads /var/adm/pacct
. Otherwise, it reads standard input.
If any file arguments are given, they are read in their respective order. Each file is normally read for-
ward, that is, in chronological order by process-completion time. The file
/var/adm/pacct is usually
the current file to be examined. A busy system may need several such files of which all but the current
file are found in
/var/adm/pacct[1-9].
Refer to usergroupname(5) to understand the functionality changes with the Numeric User Group Name
feature.
Options
acctcom recognizes the following values for the option argument. Listing options together has the effect
of a logical AND.
-a Show some average statistics about the processes selected. Statistics are printed
after the output records.
-b Read backwards, showing latest commands first. This option has no effect when
standard input is read.
-f Print in octal the F flag and system exit status columns in the output.
-h Instead of mean memory size, MEAN SIZE(K), show the fraction of total available
CPU time consumed by the process during its execution. This HOG FACTOR is
computed as:
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)