LLDP and Topology not working

Started by samuelet, October 26, 2021, 11:18:08 AM

Previous topic - Next topic

samuelet

Hi all,
We have issues regarding lldp and topology. Many switches have no links in the topology maps (displayed like isolated).
Don't know if it's related, but "tool->lldp info" on some switches displays strange chars instead of the "chassis id".  it seems related to juniper neighbours.
is there any advice to resolve this?

Topology Log


2021.10.26 09:34:55.112 *D* [topology.lldp      ] 45 entries in LLDP connection database for node DF-B55-020202 [78741]
2021.10.26 09:34:55.112 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteNode=DF-B55-020101CS [81816]
2021.10.26 09:34:55.112 *D* [topology.lldp      ] FindRemoteInterface(DF-B55-020101CS [81816]): idType=7 id=353130 (3)
2021.10.26 09:34:55.112 *D* [topology.lldp      ] FindRemoteInterface(DF-B55-020101CS [81816]): getLldpLocalPortInfo found port: 510 "SwitchB-Wifi"
2021.10.26 09:34:55.112 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): lookup bridge port: localPort=539 iface=(null)
2021.10.26 09:34:55.112 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): added connection: objectId=81816 ifRemote=510 ifLocal=0
2021.10.26 09:34:55.112 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@1C1D86409C80: FindNodeByLLDPId failed, fallback to interface MAC address ("1C:1D:86
:40:9C:80")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@1C1D86409C80: FindNodeByLLDPId and FindNodeByMAC failed, fallback to sysName ("DF-B
55-01-StDocdx")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remote node not found
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@1C1D86409280: FindNodeByLLDPId failed, fallback to interface MAC address ("1C:1D:86
:40:92:80")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@1C1D86409280: FindNodeByLLDPId and FindNodeByMAC failed, fallback to sysName ("DF-B
55-01-StDocsx")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remote node not found
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@0C8525AA3900: FindNodeByLLDPId failed, fallback to interface MAC address ("0C:85:25
:AA:39:00")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@0C8525AA3900: FindNodeByLLDPId and FindNodeByMAC failed, fallback to sysName ("DF-B
55-01-Passerella")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remote node not found
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@0C8525DFBD00: FindNodeByLLDPId failed, fallback to interface MAC address ("0C:85:25
:DF:BD:00")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remoteId=4@0C8525DFBD00: FindNodeByLLDPId and FindNodeByMAC failed, fallback to sysName ("Aule
-B55-01-AulaV1")
2021.10.26 09:34:55.113 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(DF-B55-020202 [78741]): remote node not found
2021.10.26 09:34:55.113 *D* [topology.lldp      ] Finished collecting LLDP topology information for node DF-B55-020202 [78741]
2021.10.26 09:34:55.113 *D* [                   ] STP: collecting topology information for node DF-B55-020202 [78741]



2021.10.26 09:34:55.233 *D* [                   ] STP: found designated bridge DF-B55-020101CS [81816] for node DF-B55-020202 [78741] port 495
2021.10.26 09:34:55.233 *D* [                   ] STP: found local port xe-0/1/3 [78794] for node DF-B55-020202 [78741]
2021.10.26 09:34:55.233 *D* [                   ] STP: bridge port number 12 is invalid for node DF-B55-020101CS [81816]


2021.10.26 09:34:55.247 *D* [                   ] STP: finished collecting topology information for node DF-B55-020202 [78741]
2021.10.26 09:34:55.247 *D* [                   ] Node::addHostConnections(DF-B55-020202 [78741]): FDB retrieved
2021.10.26 09:34:55.247 *D* [                   ] Node::addHostConnections(DF-B55-020202 [78741]): found single MAC 64:9E:F3:8E:DA:CC on interface ge-0/0/1
2021.10.26 09:34:55.247 *D* [                   ] Node::addHostConnections(DF-B55-020202 [78741]): found single MAC 24:E9:B3:7C:8C:55 on interface ge-0/0/2
2021.10.26 09:34:55.247 *D* [                   ] Node::addHostConnections(DF-B55-020202 [78741]): found single MAC 28:94:0F:26:33:B9 on interface ge-0/0/0
2021.10.26 09:34:55.247 *D* [                   ] Node::addHostConnections(DF-B55-020202 [78741]): found single MAC 24:E9:B3:7C:8B:B4 on interface ge-0/0/3
2021.10.26 09:34:55.247 *D* [poll.topology      ] Link layer topology retrieved for node DF-B55-020202 [78741] (0 connections found)
2021.10.26 09:34:55.247 *D* [poll.topology      ] Link layer topology processed for node DF-B55-020202 [78741]
2021.10.26 09:34:55.247 *D* [obj.lifecycle      ] NetObj::executeHookScript(DF-B55-020202 [78741]): hook script "Hook::TopologyPoll" is empty
2021.10.26 09:34:55.247 *D* [poll.topology      ] Finished topology poll for node DF-B55-020202 [78741]
2021.10.26 09:34:55.254 *D* [poll.routes        ] Routing table updated for node DF-B55-020202 [78741]



Tools->LLDP Info csv

"Chassis ID","Local port","System name","System description","Remote port ID","Remote port description"
"TK?ยบ?@","INTERNAL","DF-B55-020101CS","Juniper Networks, Inc. ex4550-32f Ethernet Switch, kernel JUNOS 15.1R7.9, Build date: 2018-09-11 05:33:40 UTC Copyright (c) 1996-2018 Juniper Networks, Inc.","00:00:00:00:00:00","SwitchB-Wifi"
"1C 1D 86 40 9C 80 ","INTERNAL","DF-B55-01-StDocdx","Cisco IOS Software, C2600 Software (AP3G2-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 02:41 by prod_rel_team","00:00:00:00:00:00","GigabitEthernet0"
"1C 1D 86 40 92 80 ","INTERNAL","DF-B55-01-StDocsx","Cisco IOS Software, C2600 Software (AP3G2-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 02:41 by prod_rel_team","00:00:00:00:00:00","GigabitEthernet0"
"0C 85 25 DF BD 00 ","INTERNAL","Aule-B55-01-AulaV1","Cisco IOS Software, C3500 Software (AP3G1-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 01:49 by prod_rel_team","00:00:00:00:00:00","GigabitEthernet0"
"0C 85 25 AA 39 00 ","INTERNAL","DF-B55-01-Passerella","Cisco IOS Software, C3500 Software (AP3G1-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 01:49 by prod_rel_team","00:00:00:00:00:00","GigabitEthernet0"


snmp walk oid .1.0.8802.1.1.2.1.4.1.1

ieee802dot1mibs.2.1.4.1.1.4.56.539.1 = INTEGER: 4
ieee802dot1mibs.2.1.4.1.1.4.274.516.4 = INTEGER: 4
ieee802dot1mibs.2.1.4.1.1.4.276.517.5 = INTEGER: 4
ieee802dot1mibs.2.1.4.1.1.4.888198.515.6 = INTEGER: 4
ieee802dot1mibs.2.1.4.1.1.4.888242.514.7 = INTEGER: 4
ieee802dot1mibs.2.1.4.1.1.5.56.539.1 = Hex-STRING: 54 4B 8C BA 83 40
ieee802dot1mibs.2.1.4.1.1.5.274.516.4 = Hex-STRING: 1C 1D 86 40 9C 80
ieee802dot1mibs.2.1.4.1.1.5.276.517.5 = Hex-STRING: 1C 1D 86 40 92 80
ieee802dot1mibs.2.1.4.1.1.5.888198.515.6 = Hex-STRING: 0C 85 25 AA 39 00
ieee802dot1mibs.2.1.4.1.1.5.888242.514.7 = Hex-STRING: 0C 85 25 DF BD 00
ieee802dot1mibs.2.1.4.1.1.6.56.539.1 = INTEGER: 7
ieee802dot1mibs.2.1.4.1.1.6.274.516.4 = INTEGER: 5
ieee802dot1mibs.2.1.4.1.1.6.276.517.5 = INTEGER: 5
ieee802dot1mibs.2.1.4.1.1.6.888198.515.6 = INTEGER: 5
ieee802dot1mibs.2.1.4.1.1.6.888242.514.7 = INTEGER: 5
ieee802dot1mibs.2.1.4.1.1.7.56.539.1 = STRING: "510"
ieee802dot1mibs.2.1.4.1.1.7.274.516.4 = STRING: "Gi0"
ieee802dot1mibs.2.1.4.1.1.7.276.517.5 = STRING: "Gi0"
ieee802dot1mibs.2.1.4.1.1.7.888198.515.6 = STRING: "Gi0"
ieee802dot1mibs.2.1.4.1.1.7.888242.514.7 = STRING: "Gi0"
ieee802dot1mibs.2.1.4.1.1.8.56.539.1 = STRING: "SwitchB-Wifi"
ieee802dot1mibs.2.1.4.1.1.8.274.516.4 = STRING: "GigabitEthernet0"
ieee802dot1mibs.2.1.4.1.1.8.276.517.5 = STRING: "GigabitEthernet0"
ieee802dot1mibs.2.1.4.1.1.8.888198.515.6 = STRING: "GigabitEthernet0"
ieee802dot1mibs.2.1.4.1.1.8.888242.514.7 = STRING: "GigabitEthernet0"
ieee802dot1mibs.2.1.4.1.1.9.56.539.1 = STRING: "DF-B55-020101CS"
ieee802dot1mibs.2.1.4.1.1.9.274.516.4 = STRING: "DF-B55-01-StDocdx"
ieee802dot1mibs.2.1.4.1.1.9.276.517.5 = STRING: "DF-B55-01-StDocsx"
ieee802dot1mibs.2.1.4.1.1.9.888198.515.6 = STRING: "DF-B55-01-Passerella"
ieee802dot1mibs.2.1.4.1.1.9.888242.514.7 = STRING: "Aule-B55-01-AulaV1"
ieee802dot1mibs.2.1.4.1.1.10.56.539.1 = STRING: "Juniper Networks, Inc. ex4550-32f Ethernet Switch, kernel JUNOS 15.1R7.9, Build date: 2018-09-11 05:33:40 UTC Copyright (c) 1996-2018 Juniper Networks, Inc."
ieee802dot1mibs.2.1.4.1.1.10.274.516.4 = STRING: "Cisco IOS Software, C2600 Software (AP3G2-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 02:41 by prod_rel_team"
ieee802dot1mibs.2.1.4.1.1.10.276.517.5 = STRING: "Cisco IOS Software, C2600 Software (AP3G2-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 02:41 by prod_rel_team"
ieee802dot1mibs.2.1.4.1.1.10.888198.515.6 = STRING: "Cisco IOS Software, C3500 Software (AP3G1-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 01:49 by prod_rel_team"
ieee802dot1mibs.2.1.4.1.1.10.888242.514.7 = STRING: "Cisco IOS Software, C3500 Software (AP3G1-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 05-Jun-18 01:49 by prod_rel_team"
ieee802dot1mibs.2.1.4.1.1.11.56.539.1 = STRING: "("
ieee802dot1mibs.2.1.4.1.1.11.274.516.4 = STRING: " "
ieee802dot1mibs.2.1.4.1.1.11.276.517.5 = STRING: " "
ieee802dot1mibs.2.1.4.1.1.11.888198.515.6 = STRING: " "
ieee802dot1mibs.2.1.4.1.1.11.888242.514.7 = STRING: " "
ieee802dot1mibs.2.1.4.1.1.12.56.539.1 = STRING: "("
ieee802dot1mibs.2.1.4.1.1.12.274.516.4 = STRING: " "
ieee802dot1mibs.2.1.4.1.1.12.276.517.5 = STRING: " "
ieee802dot1mibs.2.1.4.1.1.12.888198.515.6 = STRING: " "


nxadm -c "show lldp ID"

* Node LLDP ID: 4@408F9DC06938

* Local LLDP ports
   Port | ST | Len | Local ID                 | Description
   -----+----+-----+--------------------------+--------------------------------------
     33 |  7 |   2 | 3333                     | -
    514 |  7 |   3 | 353134                   | ge-0/0/0
    515 |  7 |   3 | 353135                   | ge-0/0/1
    516 |  7 |   3 | 353136                   | ge-0/0/2
    517 |  7 |   3 | 353137                   | ge-0/0/3
    539 |  7 |   3 | 353339                   | xe-0/1/3



Victor Kirhenshtein

Hi!

What NetXMS version you are running? There were recent fixes in LLDP code (in version 3.9.229).

Best regards,
Victor

samuelet

#2
We are running version:
netxms-server:amd64 3.9.298-1

In older versions (i think before this fix https://github.com/netxms/netxms/commit/a53bd11c35c080f8ed5b634c128d4a6fa2865011), switches had links in the topology map, but they were incorrect (wrong neighbours or lacks some additional link), with latest versions, many switches are displayed with no links.
At first look the bug seems related to conncections between juniper switches and other vendors (we have mainly Juniper Cisco HP Dell ) but we did not investigate it.

samuelet

Issues are not resolved with the last version 3.9.334  :(