NAME

dsbrowse.pl - Browse datastores and list their attributes.


SYNOPSIS

 dsbrowse.pl [options]


DESCRIPTION

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.


OPTIONS

name

Optional. Name of the datastore.

filetype

Optional. Type of file system volume.

capacity

Optional. Capacity of the datastore, in GB. Datastore will be retrieved if the actual capacity is greater than or equal to the <capacity> option.

freespace

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.

out

Optional. The file name for storing the script's output.

attributes

Optional. List containing the various attributes of the datastore. (refer to the ATTRIBUTE PARAMETERS section)

ATTRIBUTE PARAMETERS

name

Optional. Name of the datastore.

location

Optional. The unique locator for the datastore.

filetype

Optional. Type of file system volume.

capacity

Optional. Maximum capacity of the datastore, in GB.

freeSpace

Optional. Available space on this datastore, in GB.

hosts

Optional. Hosts attached to this datastore.

vms

Optional. virtual machines stored on this datastore.

templates

Optional. Templates stored on this datastore.


EXAMPLES

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