HP StorageWorks XPath OS 7.4.X Command Reference Guide (AA-RVHCC-TE, September 2005)
210 XPath OS CLI commands
If the ps command cannot extract process information directly from the kernel (for example, due to an
incorrect -N option or kvm-based reasons), it currently uses an experimental fallback method to gather as
much information as possible through the limited interface if the /proc file system is mounted. (See
mount_procfs for more details.) The ps command verifies that /proc is a procfs file system before
proceeding. The -K option disables this fallback /proc-based lookup.
The following is a complete list of available keywords:
-O fmt Adds the information associated with the space- or comma-separated list
of keywords specified after the process ID in the default information
display. Keywords might be appended with an equal sign (=) and a
string, causing the printed header to use the specified string instead of
the standard header.
-o fmt Displays information associated with the space- or comma-separated list
of keywords specified. Keywords might be appended with an equal sign
(=) and a string, causing the printed header to use the specified string
instead of the standard header.
-p pid Displays information associated with the specified process ID.
-r Sorts by current CPU usage instead of by process ID.
-S Changes the way the process time is calculated by summing all exited
children to their parent process.
-T Displays information about processes attached to the device associated
with the standard input.
-t tty Displays information about processes attached to the specified terminal
device. Use a question mark (?) for processes not attached to a terminal
device and a minus sign (–) for processes that have been revoked from
their terminal device.
-U username Displays processes belonging to the user whose user name or UID has
been given to the -U switch.
-u Displays information associated with the following keywords: user, pid,
%cpu, %mem, vsz, rss, tt, state, start, time, and command. The
-u option implies the -r option.
-v Displays information associated with the following keywords: pid,
state, time, sl, re, pagein, vsz, rss, lim, tsiz, %cpu, %mem,
and command. The -v option implies the -m option.
-W swap Extracts swap information from the specified file instead of from the
default /dev/drum file.
-w Uses 132 columns to display information instead of the default, which is
your window size. If the -w option is specified more than once, ps uses
as many columns as necessary, without regard for your window size.
-x Displays information about processes without controlling terminals.
%CPU The CPU utilization of the process; this is a decaying average over up to a
minute of previous (real) time. Because the time base over which this is
computed varies (since processes might be extremely recent), it is possible for
the sum of all %CPU fields to exceed 100 percent.
%mem The percentage of real memory used by this process.
flags The flags (in hexadecimal) associated with the process, as in the include file
sys/proc.h: l -column P_NOCLDSTOP P_NOCLDSTOP.
P_ADVLOCK 0x0000001 Process may hold a POSIX advisory
lock.
P_CONTROLT 0x0000002 Process has a controlling terminal.
P_INMEM 0x0000004 Process is loaded into memory.