vzlist(8) | Containers | vzlist(8) |
vzlist - show various information about containers
vzlist |
[-a | -S] [-n] [-H] [-t] [-j] [-o name[,name...] | -1] [-s [-]name] [-h pattern] [-N pattern] [-d pattern] [CTID [CTID ...]] |
vzlist |
-L | --list |
vzlist |
--help |
This utility is used for listing containers and their parameters. By default only running containers are listed. If one or more CTIDs are specified, only specified containers are displayed.
For some fields that can have long values (e.g. ip, hostname, description or features), the value string is trimmed to some predefined width (in order not to break the columned layout), unless this field is the last one. So, in order to get the full non-trimmed value for such a field, put the field name last in the list of fields for -o option. If using vzlist from a script, add -t to disable trimming.
List of CTs can be further filtered using the following options. For patterns one can use the same wildcards as in shell (i.e. *, ?, and []). Note: to avoid expansion of wildcards by the shell, one have to escape the pattern by either putting it into single quotes (like 'a*a') or by adding a backslash before the wildcard character (like a\*a).
For the user beancounter fields, if suffix is not specified, current usage (a.k.a. "held") value is show. One can also use the following suffixes:
For the disk quota fields, if suffix is not specified, current usage is shown. One can also use the following suffixes:
Note that for JSON output suffixes are not allowed.
Returns 0 upon success.
Copyright (C) 2000-2011, Parallels, Inc. Licensed under GNU GPL.
13 Jun 2012 | OpenVZ |