Syntax
Get-NicTeamingPolicy [-VirtualSwitch] <VirtualSwitch[]> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet retrieves the NIC teaming policies of the specified virtual switches and virtual port groups. The NIC teaming policy determines how network traffic is distributed between adapters and how traffic is reorganized in case of adapter failure.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
VirtualPortGroup | VirtualPortGroup[] | Specifies the port groups whose NIC teaming policy you want to retrieve. | true | true (ByValue) | |
VirtualSwitch | VirtualSwitch[] | Specifies the virtual switches whose NIC teaming policy you want to retrieve. | true | true (ByValue) | |
Server | VIServer[] | Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | false | false |
Return Type
Zero or more NicTeamingVirtualSwitchPolicy or NicTeamingVirtualPortGroupPolicy objectsNotes
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.