Get-NicTeamingPolicy Command | Vmware PowerCLI Reference

Get-NicTeamingPolicy

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.

Syntax

Get-NicTeamingPolicy
-VirtualPortGroup < VirtualPortGroup[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VirtualPortGroup VirtualPortGroup[] named
  • pipeline
Specifies the port groups whose NIC teaming policy you want to retrieve.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null 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.
Get-NicTeamingPolicy
-VirtualSwitch < VirtualSwitch[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VirtualSwitch VirtualSwitch[] named
  • pipeline
Specifies the virtual switches whose NIC teaming policy you want to retrieve.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null 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.

Output

VMware.VimAutomation.ViCore.Types.V1.Host.Networking.NicTeamingPolicy

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.

Related Commands

NicTeamingPolicy

This cmdlet retrieves the NIC teaming policies of the specified virtual switches and virtual port groups.

This cmdlet modifies the specified NIC teaming policy.