
Operations on Virtual Private Servers
39
Listing Virtual Private Servers
Very often you may want to get an overview of the Virtual Private Servers existing on the given
Hardware Node and to get additional information about them - their IP addresses, hostnames,
current resource consumption, etc. In the most general case, you may get a list of all VPSs by
issuing the following command:
# vzlist -a
VPSID NPROC STATUS IP_ADDR HOSTNAME
101 8 running 10.101.66.1 vps101.my.org
102 7 running 10.101.66.159 vps102.my.org
103 - stopped 10.101.66.103 vps103.my.org
The
-a
switch tells the
vzlist
utility to output both running and stopped VPSs. By default,
only running VPSs are shown. The default columns inform you of the VPS IDs, the number of
running processes inside VPSs, their status, IP addresses, and hostnames. This output may be
customized as desired by using
vzlist
command line switches. For example:
# vzlist -o veid,diskinodes.s -s diskinodes.s
VPSID DQINODES.S
1 400000
101 200000
102 200000
This shows only running VPSs with the information about their IDs and soft limit on disk
inodes (see the
Managing Resources
chapter for more information), with the list sorted by this
soft limit. The full list of the
vzlist
command line switches and output and sorting options is
available in the
vzlist
subsection of the
Reference
chapter.