vSphere PowerCLI Reference

Get-NicTeamingPolicy

Synopsis

Retrieves the Nic teaming policies of the specified virtual switches and virtual port groups.

Syntax

Get-NicTeamingPolicy [-VirtualSwitch] <VirtualSwitch[]> [-Server <VIServer[]>] [<CommonParameters>]
Get-NicTeamingPolicy [-VirtualPortGroup] <VirtualPortGroup[]> [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Set-NicTeamingPolicy

Detailed Description

Retrieves the Nic teaming policies of the specified virtual switches and virtual port groups. Nic teaming policy allows to determine how network traffic is distributed between adapters and how to reorganize traffic in case of adapter failure.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VirtualPortGroupVirtualPortGroup[]Specifies the port groups whose Nic teaming policy you want to retrieve.truetrue (ByValue)
VirtualSwitchVirtualSwitch[]Specify the virtual switches whose Nic teaming policy you want to retrieve.truetrue (ByValue)
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

NicTeamingVirtualSwitchPolicy/ NicTeamingVirtualPortGroupPolicy

Notes

Examples

-------------- Example 1 --------------

Get-VirtualPortGroup -VMHost (Get-VMHost *.128) -Name Virtual* | Get-NicTeamingPolicy | fl is*

For the specified virtual port groups, retrieves the Nic teaming policy settings whose names start with "is".

-------------- Example 2 --------------

Get-VirtualSwitch -VMHost (Get-VMHost *.128) -Name vswitch | Get-NicTeamingPolicy

Retrieves the Nic teaming policy of the specified virtual switch.


Copyright © 1998 - 2012 VMware, Inc. All rights reserved.