VMware Cloud Community
leshe
Contributor
Contributor
Jump to solution

enable LLDP on standard switch

Hi guys

I wrote a script for enable LLDP on standard switch. but it didn't work out.

I don't know what to do next.

I'm using powershell 5 and powercli 6.5

BTW: How can I make my script have highlight keywords in here.

$vmhost_all = Get-VMHost

foreach ($vmhost in $vmhost_all) {

$esxcli = Get-EsxCli -VMHost $vmhost

$esxcli.network.vswitch.standard.set(“both“,$null,“vSwitch0“ )

}

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Afaik, LLDP is only available on distributed switches.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Afaik, LLDP is only available on distributed switches.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
TronAr
Commander
Commander
Jump to solution

This might get late for you, but FTR, look at http://blog.shanonolsson.com/2014/01/03/lldp-and-standard-virtual-switches/

I'm using this to get an APIC to discover an ESXi with LLDP, I see the LLDP packets so it seems to be working.

(yet no, the APIC is not seeing it Smiley Sad)

Reply
0 Kudos