Replies: 1 comment
-
% govc vm.info -json $vm | jq -r .virtualMachines[].network[].value | xargs -n1 govc ls -L
/folder-WCP_DC/WCP_DC/network/VM Network
/folder-WCP_DC/WCP_DC/network/vlan101portgroup
% govc vm.info -json $vm | jq -r .virtualMachines[].network[].value | xargs -n1 -I% govc collect -s % name
VM Network
vlan101portgroup |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
why does the command
govc vm.info -r <vmname>
contains the "Network:" information andgovc vm.info -json -r <vmname>
does not? I was expecting, that the json version contains at least the same info or more as without -json.Beta Was this translation helpful? Give feedback.
All reactions