PowerCLI Reference

Get-VDUplinkTeamingPolicy

Synopsis

This cmdlet retrieves the uplink teaming policy for distributed ports.

Syntax

Get-VDUplinkTeamingPolicy -VDPortgroup <VDPortgroup[]> [-Server <VIServer[]>] [<CommonParameters>]

Get-VDUplinkTeamingPolicy -VDSwitch <VDSwitch[]> [-Server <VIServer[]>] [<CommonParameters>]

Get-VDUplinkTeamingPolicy -VDPort <VDPort[]> [<CommonParameters>]

Related Commands

Online version
Set-VDUplinkTeamingPolicy

Detailed Description

This cmdlet retrieves the uplink teaming policy for distributed ports. For distributed port group and vSphere distributed switch parameter sets, the default port policy at the distributed port group or switch level is retrieved.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ServerVIServer[]Specifies the vCenter Server systems 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
VDPortVDPort[]Specifies the distributed port for which you want to retrieve the uplink teaming policy.truetrue (ByValue)
VDPortgroupVDPortgroup[]Specifies a distributed port group for which you want to retrieve the default uplink teaming policy.truetrue (ByValue)
VDSwitchVDSwitch[]Specifies a vSphere distributed switch for which you want to retrieve the default uplink teaming policy.truetrue (ByValue)

Return Type

One or more UplinkTeamingPolicy objects

Notes

Examples

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

Get-VDSwitch "MyVDSwitch" | Get-VDUplinkTeamingPolicy

Retrieves the uplink teaming policy of a vSphere distributed switch named "MyVDSwitch".

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

Get-VDPortgroup "MyVDPortgroup" | Get-VDPort | Get-VDUplinkTeamingPolicy

Retrieves the uplink teaming policy of all ports inside a distributed port group named ?MyVDPortgroup?.


Copyright © VMware, Inc. All rights reserved.