You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm able to connect to Vcenter using govc, however I would like get a list of all VMs within a specific folder with it storage(Related Objects) or datastore cluster in a comma separated format.
# Connect to vCenter using govc
govc about || { echo"Failed to connect to vCenter.";exit 1; }
Name: VMware vCenter Server
Vendor: VMware, Inc.
Version: 7.0.3
Build: 22357613
OS type: linux-x64
API type: VirtualCenter
API version: 7.0.3.0
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm able to connect to Vcenter using govc, however I would like get a list of all VMs within a specific folder with it storage(Related Objects) or datastore cluster in a comma separated format.
vm1, storagecluster1
vm2, storagecluster4
vm3, storagecluster1
vm4, storagecluster2
Beta Was this translation helpful? Give feedback.
All reactions