Previous Topic: dpmhv-exportVMEx (Funclet) Command--Export a VMNext Topic: dpmhv-getJobInfo (Funclet) Command--Show Job Information


dpmhv-getHostSwitches (Funclet) Command--Show Host Switches on a Hyper-V Host

The dpmhv-getHostSwitches command displays host switches (virtual networks) defined on a Hyper-V host.

This command has the following format:

dpmhv-getHostSwitches 
-host hostname 
[-retval]
[-silent]
[-detail]
-host hostname

Specifies the name of the Hyper-V server host.

-retval

Returns a value for further processing.

-silent

Specifies not to direct the output to the screen.

-detail

(Optional) Displays the details of the virtual networks (host networks).

Return Value

The dpmhv-getHostSwitches command returns an array of objects with each object representing one virtual switch (virtual host) on the specified host.

The following properties are returned in regular mode:

The following properties are returned in detail mode:

Example: Show Host Switches

This example displays the list of host switches on a Hyper-V host.

dpmhv-getHostSwitches -host hvserver