Previous Topic: dpmvc cycle Command--Cycle a VMNext Topic: dpmvc delete Command--Destroy a VM


dpmvc datastore Command--Get Data Store Properties

The dpmvc datastore command retrieves the free space and capacity settings for a specific VMware vCenter data store.

This command has the following format:

dpmvc datastore 
[-sc sc_url] 
-getproperty {all|capacity|freespace} 
-datacenter_name datacentername 
-datastore_name datastorename 
[-vc_server vcserver] 
[-pre] 
[-post] 
[-ws_user wsuser] 
[-ws_password wspassword] 
[-prompt {yes|no}] 
[-locale iso639value]
-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80

-getproperty {all|capacity|freespace}

(Optional) Specifies which property to retrieve. Options include the following:

all

Retrieves capacity and free space in the data store.

capacity

Retrieves the capacity in the data store.

freespace

Retrieves the free space in the data store.

-datacenter_name datacentername

Specifies the data center where the VM is located.

-datastore_name datastorename

Specifies the name of the data store where the new VM is located.

-vc_server vcservername

Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-ws_user wsuser

(Optional) Specifies the web service user name to connect to the VC Platform Management Module (PMM).

-ws_password wspassword

(Optional) Specifies the password for the web service user to connect to the VC Performance Management Module (PMM).

-prompt {yes|no}

(Optional) Specifies whether you are prompted for the web service user ID and password.

Default: Yes

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Get all Properties for the Data Store using Global Credentials

This example retrieves both free space and capacity for the data store.

dpmvc datastore -getproperty all datacenter_name DCA/MyCity 
-datastore_name storage1 -vc_server vc_server_1

Example: Get all Properties for the Data Store

This example retrieves both free space and capacity for the data store.

dpmvc datastore -getproperty all datacenter_name DCA/MyCity 
-datastore_name storage1 -vc_server vc_server_1

Example: Get all Properties for the Data Store

This example obtains both free space and capacity for the data store.

dpmvc datastore -getproperty all datacenter_name DCA/MyCity 
-datastore_name storage1 -vc_server vc_server_1