<p dir="ltr">There are a number of command line tools for just that; Lindsay appears to be using jq.</p>
<br><div class="gmail_quote">On Thu, Jan 15, 2015, 01:50 Dietmar Maurer <<a href="mailto:dietmar@proxmox.com">dietmar@proxmox.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># pvesh get /cluster/resources -type vm<br>
<br>
But I have no idea how to extract the result inside a shell script?<br>
<br>
> I'm adapting spice-example.sh to just require a VMID, so we can launch a<br>
> spice client from the cmd line without needing to know which node it is on.<br>
><br>
> Is there an API call for finding a VM's node from its id? or an alternative<br>
> way of handling this?<br>
><br>
> Thanks,<br>
><br>
> --<br>
> Lindsay<br>
> ______________________________<u></u>_________________<br>
> pve-devel mailing list<br>
> <a href="mailto:pve-devel@pve.proxmox.com" target="_blank">pve-devel@pve.proxmox.com</a><br>
> <a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel" target="_blank">http://pve.proxmox.com/cgi-<u></u>bin/mailman/listinfo/pve-devel</a><br>
<br>
______________________________<u></u>_________________<br>
pve-devel mailing list<br>
<a href="mailto:pve-devel@pve.proxmox.com" target="_blank">pve-devel@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel" target="_blank">http://pve.proxmox.com/cgi-<u></u>bin/mailman/listinfo/pve-devel</a><br>
</blockquote></div>