cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1054
Views
5
Helpful
1
Replies

Read LLDP information using SNMP on stacked IE 5000 switches

gerrit.til
Level 1
Level 1

Hi All,

 

We are using 2 Cisco IE-5000-12S12P-10G switches in a stacked configuration in our systems. The software version is "Cisco IOS Software, IE5000 Software (IE5000-UNIVERSALK9-M), Version 15.2(8)E1, RELEASE SOFTWARE (fc8)".

 

For our systems we are required to supervise all connections between devices and report a fault (containing the local port ID and the remote port ID) when a link is missing. We do that by reading the LLDP information using SNMP. This is working fine for a single switch but we don't know how to get this working when the switches are configured as stacked. 

 

The data we read for remote devices (LLDP-MIB::lldpRemSysName, LLDP-MIB::lldpRemPortId, LLDP-MIB::lldpRemPortDesc) contains an index which represents the local port, this index points to an entry in the local port list (LLDP-MIB::lldpLocPortTable). 

 

When we read the data on stacked switches we get something like this:

 

./snmpwalk -v 2c -c public 192.168.10.1 LLDP-MIB::lldpRemSysName
LLDP-MIB::lldpRemSysName.0.3.13 = STRING: Device-1
LLDP-MIB::lldpRemSysName.0.3.15 = STRING: Device-2
LLDP-MIB::lldpRemSysName.0.4.5 = STRING: Device-3

 

This shows that on port 3 a device Device-1 is found but also Device-2, on port 4 the device Device-3 is found. But the Device-2 is connected to port 3 on switch 1, the Device-1 is connected to port 3 on switch 2. I tried reading the whole table (LLDP-MIB::lldpRemTable) and could not find anything that gives me the switch number. 

 

Also the table LLDP-MIB::lldpLocPortTable (the number above is the index of an entry in this table) only contains the ports of switch 1, it does not contain the ports of switch 2. We read this table for the local port description and ID.

 

If we read the table IF-MIB::ifDescr we do get all ports of both switches but also extra data so the index returned by LLDP-MIB is not usable for this table even if we could see from which switch it is.

 

Is there another way to find the local port data for remote devices? Is something not configured correctly in the switches?

 

Thanks in advance,

 

Gerrit Til

1 Reply 1

Arne Bier
VIP
VIP

Hello @gerrit.til 

 

Your posting came into the NAC Community - have you tried sending it to the Switching or Network Management Community instead? I think someone over there might be able to assist.

 

Cisco Community / Technology and Support / Networking / Network Management
Cisco Community / Technology and Support / Networking / Switching

 

regards