Re: [PVE-User] fast way to get all vm names via pvesh?

2016-12-15 Thread David Lawley
no more often than I need it, this works well for me. thanks for sharing On 12/15/2016 5:35 AM, IMMO WETZEL wrote: #!/usr/bin/env bash nodes=$(pvesh get /nodes/ 2>/dev/null | sed -n -E '/\"id\"/ s/.*:\s\"(.*)\".*/\1/p' | sed -n -E 's/node/nodes/p' ) vms=$(for i in $nodes ; do vms=$(pvesh get

Re: [PVE-User] fast way to get all vm names via pvesh?

2016-12-15 Thread Thomas Lamprecht
On 12/15/2016 11:35 AM, IMMO WETZEL wrote: Hi Thats my current script to get all vm names from the cluster. Afterwards I check the new name against the list to prevent errors. #!/usr/bin/env bash nodes=$(pvesh get /nodes/ 2>/dev/null | sed -n -E '/\"id\"/ s/.*:\s\"(.*)\".*/\1/p' | sed -n

Re: [PVE-User] fast way to get all vm names via pvesh?

2016-12-15 Thread Mark Schouten
an.com> Aan: "pve-user@pve.proxmox.com" <pve-user@pve.proxmox.com> Verzonden: 15-12-2016 11:35 Onderwerp: [PVE-User] fast way to get all vm names via pvesh? Hi Thats my current script to get all vm names from the cluster. Afterwards I check the new name against t