< Back

Get-NicTeamingPolicy

Sun Jan 19, 2020 6:51 pm

NAME Get-NicTeamingPolicy



SYNOPSIS

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





SYNTAX

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



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





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

-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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-VirtualPortGroup <VirtualPortGroup[]>

Specifies the port groups whose NIC teaming policy you want to retrieve.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-VirtualSwitch <VirtualSwitch[]>

Specifies the virtual switches whose NIC teaming policy you want to retrieve.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more NicTeamingVirtualSwitchPolicy or NicTeamingVirtualPortGroupPolicy objects







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... olicy.html

Set-NicTeamingPolicy