Re: [Users] vzlist command to show the second IP address of venet0:1?
On Fri, Nov 16, 2012 at 12:12 PM, Dragomir Zhelev dr...@delta.bg wrote: vzlist -o ip vzlist -o ctid,hostname,ip -a You will see both IPs if ip is the last argument of the options field. -- Benjamin Henrion bhenrion at ffii.org FFII Brussels - +32-484-566109 - +32-2-3500762 In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators. ___ Users mailing list Users@openvz.org http://lists.openvz.org/mailman/listinfo/users
[Users] vzlist command to show the second IP address of venet0:1?
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? Best, -- Benjamin Henrion bhenrion at ffii.org FFII Brussels - +32-484-566109 - +32-2-3500762 In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators. ___ Users mailing list Users@openvz.org http://lists.openvz.org/mailman/listinfo/users
Re: [Users] vzlist command to show the second IP address of venet0:1?
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 Users@openvz.org http://lists.openvz.org/mailman/listinfo/users