dsbrowse.pl - Browse datastores and list their attributes.
dsbrowse.pl [options]
This VI Perl command-line utility provides an interface to browse datastores and list attributes of datastores. It also involves listing datastores by particular attribute like name, size.
Optional. Name of the datastore.
Optional. Type of file system volume.
Optional. Maximum capacity of the datastore, in bytes.
Optional. Available space on this datastore, in bytes.
Optional. List containing the various attributes of the datastore. (refer ATTRIBUTES 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 bytes
Optional. Available space on this datastore, in bytes
Optional. Hosts attached to this datastore
Optional. Virtual machines stored on this datastore.
Optional. Templates stored on this datastore.
List all the datastores which has 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 VMs for datastore 'Data123'.
dsbrowse.pl --url https://<host>:<port>/sdk/vimService
--username myuser --password mypassword
--name Data123 --attributes name,location,capacity,
hosts,VMs
All operations work with VMware VirtualCenter 2.0.1 or later
All operations work with VMware ESX Server 3.0.1 or later.