Reply to Message

View discussion in a popup

Replying to:
BenLiebowitz
Expert
Expert

How do I retrieve a list of LACP LAG Uplinks from my Environment?

We have an environment where each vDS uses LACP and has a LAG uplink.  I'd like a way to list the different LAG names via PowerCLI.  This needs to be across multiple vDS switches. 

I know I can point ESXCLI to a specific host and get the information from: $esxcli.network.vswitch.dvs.vmware.lacp.config.get(), and I found if I do a Get-VDSwitch | Get-VDPortgroup | where {$_.Name -match "2"} | Get-VDUplinkTeamingPolicy, it's listed under "ActiveUplinkPort".  But I'd like to run a script that lists...

ProdLAG

StgLAG

DEVLAG

etc...

Can someone help? 

LUC?!  I'm sending up the LUC SIGNAL!

Luc_Signal.jpg

Ben Liebowitz, VCP vExpert 2015, 2016, & 2017 If you found my post helpful, please mark it as helpful or answered to award points.
Tags (2)
Reply
0 Kudos