Previous Topic: dpmhyperv ExportVMEx Command--Export a VMNext Topic: dpmhyperv GetJobErrorInfo Command--Get the Error Information of a Job


dpmhyperv GetHostSwitches Command--Get Switches of a Host

The dpmhyperv GetHostSwitches command returns switches of a Hyper-V host. You can specify a filter condition to get specific switches.

This command has the following format:

dpmhyperv GetHostSwitches 
[-ws_user username] 
[-ws_password password] 
[-ws_encrypted_password] 
-hypervHost hostname [filter filter_condition] 
[-pre] 
[-post]
[-locale iso639value]
-ws_user username

(Optional) Specifies the CA Virtual Assurance user name.

-ws_password password

(Optional) Specifies the CA Virtual Assurance user password.

-ws_encrypted_password

(Optional) Indicates whether the CA Virtual Assurance password is encrypted.

-host hostname

Specifies the host name of the Hyper-V server.

-jobRef job_ref_identifier

Specifies the reference identifier of the asynchronous job.

-filter condition

(Optional) Specifies a filter condition such as "*".

-pre

(Optional) Generates an event before the operation is complete.

-post

(Optional) Generates an event after the operation is complete.

-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 Switches of a Host

This example returns switches of the host, "hvserver."

dpmhyperv GetHostSwitches -ws_user admin -ws_password #test# -hypervHost hvserver

Example: Get Switches of a Host Using Filters

This example returns all the switches having "n" somewhere in the switch name.

dpmhyperv GetHostSwitches -ws_user admin -ws_password #test# -hypervHost hvserver -filter *n*