01-29-2010 04:05 AM - edited 03-15-2019 09:14 PM
Hi
I need some help on an EEM script for LLDP. Scenario is as follows:
We have implemented LLDP to discover the IP Phone and put it in appropritate VLan. Currently if a device other than phone is connected to switch port, we put it in the default vlan - looking to shutdown the port if device other than phone (ie. cannot do LLDP) is connected.
Can somebody help us on this please? The switch is 3750-E and Avaya 1600 series phones.
THanks a lot!
Regards
Sri
04-26-2010 09:58 AM
What version of IOS is running on the switch? EEM version 3.2 released in 12.2(53)SE has a "Neighbor Discovery Event Detector" that can monitor for LLDP events. If this version of IOS is a possibility for you, then you can probably utilize that event detector to accomplish what you want. The trick will be to determine what part of the LLDP data to use to determine if the device is one of the required phones.
This neighbor discovery event detector can also detect CDP and link/line protocol events. So there are a couple of ways to accomplish what you want most likely but you need to be careful because shutting down the port can lead to the switch missing a lldp message and incorrectly determining the phone is not a phone.
07-01-2013 09:58 AM
Is there a list of what the different variables that can be used for lldp and cdp? For example I have a script today that matches for the presence of .*AIR*. in $_nd_cdp_platform (this is the variable that I currently refer to) to find APs and configure the port accordingly. I imagine that there is a listing somewhere of what the various fields/variables are that can be searched. Any info would be greatly appreciated. Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide