Previous Topic: dpmvc getshares Command--Get VM SharesNext Topic: dpmvc imgjobcheck Command--Get Clone Job Status


dpmvc getsnapshots Command--Get VM Snapshots

The dpmvc getsnapshots command lists the snapshots of a VM.

This command has the following format:

dpmvc getsnapshots 
[-sc sc_url] 
-datacenter_name datacentername 
-vm_name vmname 
[-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

-datacenter_name datacentername

Specifies the data center where the VM is located.

-vm_name vmname

Specifies the VM.

-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: List Snapshots

This example lists the snapshots of a VM.

dpmvc getsnapshots -vc_server my_server1 -datacenter_name my_dc 
-vm_name my_vm