PowerCLI Reference

Get-NicTeamingPolicy

Synopsis

This cmdlet 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

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

NameTypeDescriptionRequired?Pipeline InputDefault Value
VirtualPortGroupVirtualPortGroup[]Specifies the port groups whose NIC teaming policy you want to retrieve.truetrue (ByValue)
VirtualSwitchVirtualSwitch[]Specifies the virtual switches whose NIC teaming policy you want to retrieve.truetrue (ByValue)
ServerVIServer[]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.falsefalse

Return Type

Zero or more NicTeamingVirtualSwitchPolicy or NicTeamingVirtualPortGroupPolicy objects

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 © VMware, Inc. All rights reserved.