PowerCLI Reference

Get-VDUplinkLacpPolicy

Synopsis

This cmdlet retrieves the Link Aggregation Control Protocol policy for uplink ports.

Syntax

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

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

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

Related Commands

Online Version
Set-VDUplinkLacpPolicy

Detailed Description

This cmdlet retrieves the Link Aggregation Control Protocol policy for uplink ports. For uplink port group and vSphere distributed switch parameter sets, the default port policy at the uplink 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 uplink port for which you want to retrieve the Link Aggregation Control Protocol policy.trueTrue (ByValue)
VDPortgroupVDPortgroup[]Specifies an uplink port group for which you want to retrieve the default Link Aggregation Control Protocol policy.trueTrue (ByValue)
VDSwitchVDSwitch[]Specifies a vSphere distributed switch for which you want to retrieve the default Link Aggregation Control Protocol policy.trueTrue (ByValue)

Return Type

One or more UplinkLacpPolicy objects

Notes

Examples

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

Get-VDSwitch "MyVDSwitch" | Get-VDUplinkLacpPolicy

Retrieves the Link Aggregation Control Protocol policy of a vSphere distributed switch named "MyVDSwitch".

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

Get-VDSwitch "MyVDSwitch" | Get-UplinkPortgroup "MyVDPortgroup" | Get-VDUplinkLacpPolicy

Retrieves the Link Aggregation Control Protocol policy of an uplink port group named "MyUplinkPortgroup" inside a vSphere distributed switch named "MyVDSwitch".


Copyright © VMware, Inc. All rights reserved.