User`s guide

Managing Services and Processes 130
You will notice a question mark in most of the TTY fields in the vzps aux output. This is
because most of these programs were started at boot time and/or by initialization scripts. The
controlling terminal does not exist for these processes; thus, the question mark. On the other
hand, the bash command has a TTY value of pts/4. This is a command being run from a remote
connection and has a terminal associated with it. This information is helpful for you when you
have more than one connection open to the machine and want to determine which window a
command is running in.
STAT shows the current status of a process. In our example, many are sleeping, indicated by an
S in the STAT field. This simply means that they are waiting for something. It could be user
input or the availability of system resources. The other most common status is R, meaning that it
is currently running.
Note: For detailed information on all vzps parameters, output fields, states of processes, etc.,
please consult the vzps manual pages.
You can also use the vzps command to view the processes inside any running Container. The
example below shows you how to display all active processes inside Container 101:
# vzps -E 101
CTID PID TTY TIME CMD
101 27173 ? 00:00:01 init
101 27545 ? 00:00:00 syslogd
101 27555 ? 00:00:00 sshd
101 27565 ? 00:00:00 xinetd
101 27576 ? 00:00:03 httpd
101 27583 ? 00:00:00 httpd
101 27584 ? 00:00:00 httpd
101 27587 ? 00:00:00 crond
101 27596 ? 00:00:00 saslauthd