• October 26, 2020, 08:06:37 AM
Welcome, Guest. Please login or register. Registration is free.
Did you miss your activation email?

Author Topic: SNMP OID for LLDP neighbours  (Read 1641 times)

0 Members and 1 Guest are viewing this topic.

Offline darkfader

  • Rookie
  • **
  • Posts: 9
SNMP OID for LLDP neighbours
« on: February 19, 2019, 07:13:26 PM »

I'm trying to scrap the LLDP neighbour info reported by attached devices.
I can get it using 'show lldp ...', but more interesting would be to gather that info via SNMP.
If I can have it via SNMP I can integrate it to the inventory "database" of our monitoring and then the admins can most easily search over all enabled devices for i.e. where a certain client is attached.

I've already read a full snmpwalk of the switch (just like 43k lines of text) but didn't spot info from end devices that (themselves) see the switch just fine. And the same devices are of course seen in show lldp neighbours.
But I don't know the Avaya/Nortel MIB well.

Normally this info is SNMP accessible, can anyone help me find the right OID?

My Lab switch is this one:
Ethernet Routing Switch 4526GTX       HW:01       FW:   SW:v5.5.0.003 BN:03 (c) Nortel Networks

Offline novice

  • Rookie
  • **
  • Posts: 12
Re: SNMP OID for LLDP neighbours
« Reply #1 on: April 17, 2019, 11:19:38 AM »
snmpwalk should have helped.
Have you installed/copied mib onto the box where you ran snmpwalk from

mibs are usually located at /usr/local/share/mibs/*.my,  /home/???/.snmp/mibs
Edit /etc/snmp/snmp.conf and comment out the line containing 'mibs :'

record the output of show lldp
and then from a Linux box run the following at the shell. You can also use free snmp mib walker (GUI based)

snmpwalk -m +ALL -v2c -c YOUR_V2_COMMUNITY IP_ADDRESS  > snmpwalk-output.txt

-m +ALL = load given list of MIBs (ALL loads everything)
> is redirecting the output into a file snmpwalk-output.txt
Then find the text shown in the output of show lldp. If the output of command showed 4526GTX you can find the in the file snmpwalk-output.txt by using

grep -i 4526GTX snmpwalk-output.txt
-i is to ignore case.
4526GTX is the string to be searched
snmpwalk-output.txt is the file to search the text in.

« Last Edit: April 17, 2019, 11:27:34 AM by novice »