Fortiswitch topology?

Started by szabolcs, May 21, 2026, 06:11:46 PM

Previous topic - Next topic

szabolcs

Hello,

I seem to have issues to get topology info out of our Fortiswitches, one thing i noticed compared to our cisco is the Interface showing [ 0] in the FDB tab of the switches.
Not sure where to start really, including maybe relevant topology info from the log file

thank you

2026.05.21 16:40:51.115 *D* [topology.fdb       ] NetworkDeviceDriver::getForwardingDatabase(SW03 [36061]): 0 entries read from dot1qTpFdbTable

2026.05.21 16:40:51.318 *D* [topology.fdb       ] NetworkDeviceDriver::getForwardingDatabase(SW03 [36061]): 190 entries read from dot1dTpFdbTable

2026.05.21 16:40:51.318 *D* [poll.topology      ] Switch forwarding database retrieved for node SW03 [36061]

2026.05.21 16:40:51.318 *D* [topology.link      ] BuildLinkLayerNeighborList(SW03 [36061]): building link level topology

2026.05.21 16:40:51.318 *D* [topology.driver    ] Collecting topology information from driver GENERIC for node SW03 [36061]

2026.05.21 16:40:51.318 *D* [topology.driver    ] Driver for node SW03 [36061] cannot provide link layer topology information

2026.05.21 16:40:51.318 *D* [topology.lldp      ] Collecting LLDP topology information for node SW03 [36061]

2026.05.21 16:40:51.365 *D* [topology.lldp      ] 144 entries in LLDP-MIB connection database for node SW03 [36061]

2026.05.21 16:40:51.365 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW11 [35567]

2026.05.21 16:40:51.365 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=39

2026.05.21 16:40:51.365 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=39 doRemoteLookup=false

2026.05.21 16:40:51.365 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 39 not found in local LLDP port info cache

2026.05.21 16:40:51.365 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=39

2026.05.21 16:40:51.365 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW11 [35567]

2026.05.21 16:40:51.412 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.412 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=35567 (node) ifRemote=27 ifLocal=0

2026.05.21 16:40:51.412 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW12 [35601]

2026.05.21 16:40:51.412 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=40

2026.05.21 16:40:51.412 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=40 doRemoteLookup=false

2026.05.21 16:40:51.412 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 40 not found in local LLDP port info cache

2026.05.21 16:40:51.412 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=40

2026.05.21 16:40:51.412 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW12 [35601]

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.475 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=35601 (node) ifRemote=51 ifLocal=0

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindRemoteNode(SW03 [36061]): remoteIdSubType=macAddress(4) remoteId=4@7818EC6DA88D: FindNodeByLLDPId failed, fallback to interface MAC address ("78:18:EC:6D:A8:8D")

2026.05.21 16:40:51.475 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode FW05[31449]

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=42

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=42 doRemoteLookup=false

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 42 not found in local LLDP port info cache

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=42

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid and remote interface is not known

2026.05.21 16:40:51.475 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=31449 (node) ifRemote=21 ifLocal=0

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindRemoteNode(SW03 [36061]): remoteIdSubType=macAddress(4) remoteId=4@7818EC6DD00B: FindNodeByLLDPId failed, fallback to interface MAC address ("78:18:EC:6D:D0:0B")

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindRemoteNode(SW03 [36061]): remoteIdSubType=macAddress(4) remoteId=4@7818EC6DD00B: FindNodeByLLDPId and FindNodeByMAC failed, fallback to sysName (FW06")

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindRemoteNode(SW03 [36061]): remoteIdSubType=macAddress(4) remoteId=4: FindAccessPointByMAC failed, fallback to sysName ("FW06")

2026.05.21 16:40:51.475 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remote node not found

2026.05.21 16:40:51.475 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW05 [36103]

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=44

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=44 doRemoteLookup=false

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 44 not found in local LLDP port info cache

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=44

2026.05.21 16:40:51.475 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW05 [36103]

2026.05.21 16:40:51.537 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.537 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=36103 (node) ifRemote=25 ifLocal=0

2026.05.21 16:40:51.537 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW07 [35448]

2026.05.21 16:40:51.537 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=45

2026.05.21 16:40:51.537 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=45 doRemoteLookup=false

2026.05.21 16:40:51.537 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 45 not found in local LLDP port info cache

2026.05.21 16:40:51.537 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=45

2026.05.21 16:40:51.537 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW07 [35448]

2026.05.21 16:40:51.584 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.584 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=35448 (node) ifRemote=52 ifLocal=0

2026.05.21 16:40:51.584 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW09 [36232]

2026.05.21 16:40:51.584 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=46

2026.05.21 16:40:51.584 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=46 doRemoteLookup=false

2026.05.21 16:40:51.584 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 46 not found in local LLDP port info cache

2026.05.21 16:40:51.584 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=46

2026.05.21 16:40:51.584 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW09 [36232]

2026.05.21 16:40:51.615 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.615 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=36232 (node) ifRemote=52 ifLocal=0

2026.05.21 16:40:51.615 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW13 [35954]

2026.05.21 16:40:51.615 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=47

2026.05.21 16:40:51.615 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=47 doRemoteLookup=false

2026.05.21 16:40:51.615 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 47 not found in local LLDP port info cache

2026.05.21 16:40:51.615 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=47

2026.05.21 16:40:51.615 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW13 [35954]

2026.05.21 16:40:51.678 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.678 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=35954 (node) ifRemote=52 ifLocal=0

2026.05.21 16:40:51.678 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW15 [35836]

2026.05.21 16:40:51.678 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=48

2026.05.21 16:40:51.678 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=48 doRemoteLookup=false

2026.05.21 16:40:51.678 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 48 not found in local LLDP port info cache

2026.05.21 16:40:51.678 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=48

2026.05.21 16:40:51.678 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW15 [35836]

2026.05.21 16:40:51.819 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.819 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=35836 (node) ifRemote=52 ifLocal=0

2026.05.21 16:40:51.819 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW18 [35718]

2026.05.21 16:40:51.819 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=49

2026.05.21 16:40:51.819 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=49 doRemoteLookup=false

2026.05.21 16:40:51.819 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 49 not found in local LLDP port info cache

2026.05.21 16:40:51.819 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=49

2026.05.21 16:40:51.819 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW18 [35718]

2026.05.21 16:40:51.883 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.883 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=35718 (node) ifRemote=52 ifLocal=0

2026.05.21 16:40:51.883 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW04 [36019]

2026.05.21 16:40:51.883 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=50

2026.05.21 16:40:51.883 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=50 doRemoteLookup=false

2026.05.21 16:40:51.883 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 50 not found in local LLDP port info cache

2026.05.21 16:40:51.883 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=50

2026.05.21 16:40:51.883 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW04 [36019]

2026.05.21 16:40:51.930 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.930 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=36019 (node) ifRemote=21 ifLocal=0

2026.05.21 16:40:51.930 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): remoteNode=SW04 [36019]

2026.05.21 16:40:51.930 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is available, value=50

2026.05.21 16:40:51.930 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): localPort=50 doRemoteLookup=false

2026.05.21 16:40:51.930 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): port number 50 not found in local LLDP port info cache

2026.05.21 16:40:51.930 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): cannot find interface with dot1dBasePort=50

2026.05.21 16:40:51.930 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): lldpRemLocalPortNum is invalid, attempt to find matching information on remote node SW04 [36019]

2026.05.21 16:40:51.961 *D* [topology.lldp      ] FindLocalInterfaceIndex(SW03 [36061], LLDP-MIB): ifLocal=0 after lookup on remote node

2026.05.21 16:40:51.961 *D* [topology.lldp      ] ProcessLLDPConnectionEntry(SW03 [36061], LLDP-MIB): added connection: objectId=36019 (node) ifRemote=22 ifLocal=0

2026.05.21 16:40:51.961 *D* [topology.lldp      ] Finished collecting LLDP topology information for node SW03 [36061]

2026.05.21 16:40:51.961 *D* [poll.topology      ] Node::addHostConnections(SW03 [36061]): FDB retrieved

2026.05.21 16:40:51.961 *D* [topology.link      ] BuildLinkLayerNeighborList(SW03 [36061]): 0 connections found

2026.05.21 16:40:51.961 *D* [poll.topology      ] Link layer topology retrieved for node SW03 [36061] (0 connections found)

2026.05.21 16:40:51.961 *D* [poll.topology      ] Link layer topology processed for node SW03 [36061]

2026.05.21 16:40:51.961 *D* [poll.topology      ] Finished topology poll of node SW03 [36061]

2026.05.21 16:40:57.754 *D* [obj.sync           ] Object SW03 [36061] modified with flags 00100000

Filipp Sudanov

Hi,

Is it possible that you could provide remote access to some lab fortiswitch so our developers could talk to it to improve the drivers?

Or at least please share output of
  snmpwalk -v2c -c <community> <switch_ip> 1.0.8802.1.1.2.1.3.7.1
  snmpwalk -v2c -c <community> <switch_ip> 1.3.6.1.2.1.17.1.4.1.2
  snmpwalk -v2c -c <community> <switch_ip> 1.3.6.1.2.1.2.2.1.2
  snmpget -v2c -c <community> <switch_ip> 1.3.6.1.2.1.1.2.0