On 11/16/2012 02:54 PM, Benjamin Henrion wrote:
Hi,
I am running an openvz container with venet0 and venet0:1 interfaces,
is there a way in vzlist to display the second IP address?
Please RTFM.
(1) If you have older vzctl, vzlist(8) says:
For the fields that can have many values (e.g. ip), all the
values are displayed only for the last (i.e. leftmost) column;
otherwise, only the first value
is shown.
(2) If you have vzctl 3.2 or newer, it says more:
For some fields that can have long values (e.g. ip, hostname,
descripâ
tion 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.
(3) vzlist also have JSON output, check out vzlist --json
_______________________________________________
Users mailing list
[email protected]
http://lists.openvz.org/mailman/listinfo/users