NAME

dsbrowse.pl - Browse datastores and list their attributes.


SYNOPSIS

 dsbrowse.pl [options]


DESCRIPTION

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.


OPTIONS

GENERAL OPTIONS

name

Optional. Name of the datastore.

filetype

Optional. Type of file system volume.

capacity

Optional. Maximum capacity of the datastore, in bytes.

freeSpace

Optional. Available space on this datastore, in bytes.

attributes

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

ATTRIBUTES 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 bytes

freeSpace

Optional. Available space on this datastore, in bytes

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 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


SUPPORTED PLATFORMS

All operations work with VMware VirtualCenter 2.0.1 or later

All operations work with VMware ESX Server 3.0.1 or later.