vidiscovery.pl - displays a hierarchy of items in a VirtualCenter server or ESX server inventory.
vidiscovery.pl [options]
This command displays the hierarchy of items in a VirtualCenter server or ESX server inventory such as datacenter, folders, resource pools and hosts with proper indentation.
Required. Type of inventory item. Valid values are datacenter, folder, resource pool and host.
Required. Name of the inventory item for which you specified in the managedentity option. For example, if you specify host as the entitytype, and specify a host name in the name option, the hierarchy of all inventory items in that particular host will be displayed.
Display the hierarchy of all the items in a datacenter:
vidiscovery.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --managedentity datacenter --entityname myDatacenter
Display the hierarchy of all the items in a pool:
vidiscovery.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --managedentity pool --entityname myPool