dsbrowse.pl - Browse datastores and list their attributes.
dsbrowse.pl [options]
This command provides an interface to browse datastores and list attributes of datastores. It can also list datastores by particular attribute like name, size. This script also provides functionality to browse through the files in a datastore. If no option is specified, then the information of all the datastores found will be displayed.
Optional. Name of the datastore.
Optional. Type of file system volume.
Optional. Capacity of the datastore, in GB. Datastore will be retrieved if the actual capacity is greater than or equal to the <capacity> option.
Optional. Available space on this datastore, in GB. Datastore will be retrieved if the actual available space is greater than or equal to the <freespace> option.
Optional. The file name for storing the script's output.
Optional. List containing the various attributes of the datastore. (refer to the ATTRIBUTE PARAMETERS section)
Optional. Name of the datastore.
Optional. The unique locator for the datastore.
Optional. Type of file system volume.
Optional. Maximum capacity of the datastore, in GB.
Optional. Available space on this datastore, in GB.
Optional. Hosts attached to this datastore.
Optional. virtual machines stored on this datastore.
Optional. Templates stored on this datastore.
List all the datastores which have file type 'VMFS'.
dsbrowse.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --filetype VMFS
List name, location, capacity, number of hosts connected and number of virtual machines for datastore 'Data123'.
dsbrowse.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --name Data123 --attributes name,location,capacity, hosts,vms