Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Mikrotik LLDP-MIB implementation causes ipdevpoll LLDP plugin to crash #2015

Closed
xorr0 opened this issue Nov 8, 2019 · 9 comments
Closed
Assignees
Labels
Milestone

Comments

@xorr0
Copy link

xorr0 commented Nov 8, 2019

  • Running the fresh pre-packaged Virtual Appliance NAV v5.0 released 11/7/2019. I did a simple Bulk Import with lines like this (showing this specifically as this is the device providing an error):
    myroom:10.255.213.34:myorg:GSW:SNMP v1 read-only profile|public SNMP v1 read-only profile:

  • The device is a MikroTik CCR1009-8G-1S

  • When reviewing the log /var/log/nav/ipdevpoll.log I see this (among MANY others similar):

2019-11-07 16:08:01,692 [ERROR jobs.jobhandler] [topo 10.255.213.34] Plugin nav.ipdevpoll.plugins.lldp.LLDP('10.255.213.34') reported an unhandled failure
Traceback (most recent call last):
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 500, in errback
    self._startRunCallbacks(fail)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 567, in _startRunCallbacks
    self._runCallbacks()
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 653, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1442, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/venvs/nav/lib/python3.7/site-packages/nav/ipdevpoll/plugins/lldp.py", line 68, in handle
    self.remote = yield mib.get_remote_table()
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/venvs/nav/lib/python3.7/site-packages/nav/mibs/lldp_mib.py", line 46, in get_remote_table
    rows = yield self._translate_port_numbers(table)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "/opt/venvs/nav/lib/python3.7/site-packages/nav/mibs/lldp_mib.py", line 133, in _translate_port_numbers
    _timemark, local_portnum, _index = remote[0]
builtins.ValueError: not enough values to unpack (expected 3, got 1)

2019-11-07 16:08:01,692 [ERROR jobs.jobhandler] [topo 10.255.213.34] Job 'topo' for 10.255.213.34 aborted: Job aborted due to plugin failure (cause=ValueError('not enough values to unpack (expected 3, got 1)'))
2019-11-07 16:08:01,694 [INFO schedule.netboxjobscheduler] [topo 10.255.213.34] topo for 10.255.213.34 failed in 0:01:59.062180. next run in 0:05:13.999981.
  • I have 312 of these errors, on MANY different IPs, I believe most are MikroTik devices.
root@navappliance:/var/log/nav# grep -i "ValueError('not enough values to unpack (expected 3, got 1)" ipdevpoll.log  | wc -l
312
  • Here is a different device (different IP address, different model of MikroTik = CCR1016-12G), with similar failure and the Topo job shows Status: Failed
2019-11-07 16:20:34,253 [ERROR jobs.jobhandler] [topo 10.255.213.108] Plugin nav.ipdevpoll.plugins.lldp.LLDP('10.255.213.108') reported an unhandled failure
Traceback (most recent call last):
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 500, in errback
    self._startRunCallbacks(fail)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 567, in _startRunCallbacks
    self._runCallbacks()
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 653, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1442, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/venvs/nav/lib/python3.7/site-packages/nav/ipdevpoll/plugins/lldp.py", line 68, in handle
    self.remote = yield mib.get_remote_table()
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/venvs/nav/lib/python3.7/site-packages/nav/mibs/lldp_mib.py", line 46, in get_remote_table
    rows = yield self._translate_port_numbers(table)
  File "/opt/venvs/nav/lib/python3.7/site-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "/opt/venvs/nav/lib/python3.7/site-packages/nav/mibs/lldp_mib.py", line 133, in _translate_port_numbers
    _timemark, local_portnum, _index = remote[0]
builtins.ValueError: not enough values to unpack (expected 3, got 1)

2019-11-07 16:20:34,253 [ERROR jobs.jobhandler] [topo 10.255.213.108] Job 'topo' for 10.255.213.108 aborted: Job aborted due to plugin failure (cause=ValueError('not enough values to unpack (expected 3, got 1)'))
2019-11-07 16:20:34,255 [INFO schedule.netboxjobscheduler] [topo 10.255.213.108] topo for 10.255.213.108 failed in 0:04:32.841597. next run in 0:08:07.999981.

Steps to reproduce the behavior:

  1. Exacly as I mentioned, import the device, wait for NAV to do it's thing, and it pops this error.
  2. When I goto view the IP device at http://${NAV_IP_ADDRESS}/ipdevinfo/10.255.213.34/ I see that the Topo job is listed as Status: Failed

Expected behavior
Hope to get the Topology job to properly run with MikroTik devices, and clear this error.

Environment (please complete the following information):

  • NAV version installed: 5.0
  • Method of installation: pre-packaged Virtual Appliance, running on Virtual Box

I can provide any additional information required, let me know. Thank you for any assistance.

@lunkwill42 lunkwill42 self-assigned this Nov 8, 2019
@lunkwill42
Copy link
Member

Sounds pretty strange. lldpRemEntry is defined as having a three-level index by the LLDB-MIB:

lldpRemEntry OBJECT-TYPE
    SYNTAX          LldpRemEntry
    MAX-ACCESS      not-accessible
    STATUS          current
    DESCRIPTION
        "Information about a particular physical network connection.
        Entries may be created and deleted in this table by the agent,
        if a physical topology discovery process is active."
    INDEX           {
                        lldpRemTimeMark,
                        lldpRemLocalPortNum,
                        lldpRemIndex
                    } 
    ::= { lldpRemTable 1 }

Which makes it sound like the MikroTik implementation is broken. It would be interesting to see what it actually replies. Do you have the MIB available (http://www.ieee802.org/1/files/public/MIBs/LLDP-MIB-200505060000Z.txt) and can you query a MikroTik device using the NET-SNMP command line utilities using the MIB definition? E.g.

snmptable -v2c -c COMMUNITY MIKROTIK-IP LLDP-MIB::lldpRemTable

@xorr0
Copy link
Author

xorr0 commented Nov 8, 2019

@lunkwill42 Thank you for replying quickly! Here's the results from this specific MikroTik (I believe it's happening to ALL our MikroTiks I imported into NAV)

$ snmpwalk -v2c -c <COMMUNITY> 10.255.213.34 LLDP-MIB::lldpRemTable
LLDP-MIB::lldpRemChassisIdSubtype.1383 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1384 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1385 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1386 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1390 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1391 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1392 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1393 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1394 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1395 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1396 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1490 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1491 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1492 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1517 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1518 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1519 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1520 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.2208 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.2209 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.2210 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.2211 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.2266 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisId.1383 = STRING: "E4:8D:8C:35:4A:93"
LLDP-MIB::lldpRemChassisId.1384 = STRING: "E4:8D:8C:35:4A:93"
LLDP-MIB::lldpRemChassisId.1385 = STRING: "E4:8D:8C:35:4A:93"
LLDP-MIB::lldpRemChassisId.1386 = STRING: "E4:8D:8C:35:4A:93"
LLDP-MIB::lldpRemChassisId.1390 = STRING: "E4:8D:8C:10:42:42"
LLDP-MIB::lldpRemChassisId.1391 = STRING: "E4:8D:8C:10:42:42"
LLDP-MIB::lldpRemChassisId.1392 = STRING: "E4:8D:8C:10:42:42"
LLDP-MIB::lldpRemChassisId.1393 = STRING: "00:00:5E:00:01:66"
LLDP-MIB::lldpRemChassisId.1394 = STRING: "00:00:5E:00:01:66"
LLDP-MIB::lldpRemChassisId.1395 = STRING: "4C:5E:0C:02:7C:B1"
LLDP-MIB::lldpRemChassisId.1396 = STRING: "00:00:5E:00:01:25"
LLDP-MIB::lldpRemChassisId.1490 = STRING: "E4:8D:8C:10:42:43"
LLDP-MIB::lldpRemChassisId.1491 = STRING: "E4:8D:8C:10:42:43"
LLDP-MIB::lldpRemChassisId.1492 = STRING: "E4:8D:8C:10:42:43"
LLDP-MIB::lldpRemChassisId.1517 = STRING: "E4:8D:8C:25:6E:8B"
LLDP-MIB::lldpRemChassisId.1518 = STRING: "E4:8D:8C:25:6E:92"
LLDP-MIB::lldpRemChassisId.1519 = STRING: "E4:8D:8C:16:5F:21"
LLDP-MIB::lldpRemChassisId.1520 = STRING: "E4:8D:8C:16:5F:22"
LLDP-MIB::lldpRemChassisId.2208 = STRING: "E4:8D:8C:2A:FA:B2"
LLDP-MIB::lldpRemChassisId.2209 = STRING: "E4:8D:8C:2A:FA:B2"
LLDP-MIB::lldpRemChassisId.2210 = STRING: "E4:8D:8C:2A:FA:B2"
LLDP-MIB::lldpRemChassisId.2211 = STRING: "E4:8D:8C:2A:FA:B2"
LLDP-MIB::lldpRemChassisId.2266 = STRING: "E4:8D:8C:35:4C:E3"
LLDP-MIB::lldpRemPortIdSubtype.1383 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1384 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1385 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1386 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1390 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1391 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1392 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1393 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1394 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1395 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1396 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1490 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1491 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1492 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1517 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1518 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1519 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.1520 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.2208 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.2209 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.2210 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.2211 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortIdSubtype.2266 = INTEGER: interfaceName(5)
LLDP-MIB::lldpRemPortId.1383 = STRING: "OR03WAN(59)"
LLDP-MIB::lldpRemPortId.1384 = STRING: "vlan41"
LLDP-MIB::lldpRemPortId.1385 = STRING: "vlan51"
LLDP-MIB::lldpRemPortId.1386 = STRING: "vlan51"
LLDP-MIB::lldpRemPortId.1390 = STRING: "wanbr"
LLDP-MIB::lldpRemPortId.1391 = STRING: "vlan20"
LLDP-MIB::lldpRemPortId.1392 = STRING: "vlan60"
LLDP-MIB::lldpRemPortId.1393 = STRING: "VLAN57(to OR03)"
LLDP-MIB::lldpRemPortId.1394 = STRING: "vlan27"
LLDP-MIB::lldpRemPortId.1395 = STRING: "vlan37"
LLDP-MIB::lldpRemPortId.1396 = STRING: "vrrp37"
LLDP-MIB::lldpRemPortId.1490 = STRING: "ether3"
LLDP-MIB::lldpRemPortId.1491 = STRING: "vlan54"
LLDP-MIB::lldpRemPortId.1492 = STRING: "vlan55"
LLDP-MIB::lldpRemPortId.1517 = STRING: "VLAN61(KAFOURYbh)"
LLDP-MIB::lldpRemPortId.1518 = STRING: "vlan60-Kaufory MGMT)"
LLDP-MIB::lldpRemPortId.1519 = STRING: "WAN"
LLDP-MIB::lldpRemPortId.1520 = STRING: "bridge1"
LLDP-MIB::lldpRemPortId.2208 = STRING: "ether2"
LLDP-MIB::lldpRemPortId.2209 = STRING: "vlan43"
LLDP-MIB::lldpRemPortId.2210 = STRING: "vlan53"
LLDP-MIB::lldpRemPortId.2211 = STRING: "vlan53"
LLDP-MIB::lldpRemPortId.2266 = STRING: "OldMGMT(60)"
LLDP-MIB::lldpRemSysName.1383 = STRING: pdxpo0189rm10901
LLDP-MIB::lldpRemSysName.1384 = STRING: pdxpo0189rm10901
LLDP-MIB::lldpRemSysName.1385 = STRING: pdxpo0189rm10901
LLDP-MIB::lldpRemSysName.1386 = STRING: pdxpo0189rm10901
LLDP-MIB::lldpRemSysName.1390 = STRING: pdxpo0225rm21101
LLDP-MIB::lldpRemSysName.1391 = STRING: pdxpo0225rm21101
LLDP-MIB::lldpRemSysName.1392 = STRING: pdxpo0225rm21101
LLDP-MIB::lldpRemSysName.1393 = STRING: pdxpo0002rm13601
LLDP-MIB::lldpRemSysName.1394 = STRING: pdxpo0002rm13601
LLDP-MIB::lldpRemSysName.1395 = STRING: pdxpo0002rm13601
LLDP-MIB::lldpRemSysName.1396 = STRING: pdxpo0002rm13601
LLDP-MIB::lldpRemSysName.1490 = STRING: pdxpo0225rm21101
LLDP-MIB::lldpRemSysName.1491 = STRING: pdxpo0225rm21101
LLDP-MIB::lldpRemSysName.1492 = STRING: pdxpo0225rm21101
LLDP-MIB::lldpRemSysName.1517 = STRING: PAM-EVENT-ROUTER
LLDP-MIB::lldpRemSysName.1518 = STRING: PAM-EVENT-ROUTER
LLDP-MIB::lldpRemSysName.1519 = STRING: pdxpo0191rm91201
LLDP-MIB::lldpRemSysName.1520 = STRING: pdxpo0191rm91201
LLDP-MIB::lldpRemSysName.2208 = STRING: pdxpo0195rm10901
LLDP-MIB::lldpRemSysName.2209 = STRING: pdxpo0195rm10901
LLDP-MIB::lldpRemSysName.2210 = STRING: pdxpo0195rm10901
LLDP-MIB::lldpRemSysName.2211 = STRING: pdxpo0195rm10901
LLDP-MIB::lldpRemSysName.2266 = STRING: pdxpo0194rm10901
LLDP-MIB::lldpRemSysDesc.1383 = STRING: 
LLDP-MIB::lldpRemSysDesc.1384 = STRING: 
LLDP-MIB::lldpRemSysDesc.1385 = STRING: 
LLDP-MIB::lldpRemSysDesc.1386 = STRING: 
LLDP-MIB::lldpRemSysDesc.1390 = STRING: 
LLDP-MIB::lldpRemSysDesc.1391 = STRING: 
LLDP-MIB::lldpRemSysDesc.1392 = STRING: 
LLDP-MIB::lldpRemSysDesc.1393 = STRING: 
LLDP-MIB::lldpRemSysDesc.1394 = STRING: 
LLDP-MIB::lldpRemSysDesc.1395 = STRING: 
LLDP-MIB::lldpRemSysDesc.1396 = STRING: 
LLDP-MIB::lldpRemSysDesc.1490 = STRING: MikroTik RouterOS 6.42.6 (stable) RB2011iLS
LLDP-MIB::lldpRemSysDesc.1491 = STRING: MikroTik RouterOS 6.42.6 (stable) RB2011iLS
LLDP-MIB::lldpRemSysDesc.1492 = STRING: MikroTik RouterOS 6.42.6 (stable) RB2011iLS
LLDP-MIB::lldpRemSysDesc.1517 = STRING: 
LLDP-MIB::lldpRemSysDesc.1518 = STRING: 
LLDP-MIB::lldpRemSysDesc.1519 = STRING: 
LLDP-MIB::lldpRemSysDesc.1520 = STRING: 
LLDP-MIB::lldpRemSysDesc.2208 = STRING: 
LLDP-MIB::lldpRemSysDesc.2209 = STRING: 
LLDP-MIB::lldpRemSysDesc.2210 = STRING: 
LLDP-MIB::lldpRemSysDesc.2211 = STRING: 
LLDP-MIB::lldpRemSysDesc.2266 = STRING: 
LLDP-MIB::lldpRemSysCapSupported.1383 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1384 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1385 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1386 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1390 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1391 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1392 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1393 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1394 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1395 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1396 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1490 = Wrong Type (should be BITS): INTEGER: 5120
LLDP-MIB::lldpRemSysCapSupported.1491 = Wrong Type (should be BITS): INTEGER: 5120
LLDP-MIB::lldpRemSysCapSupported.1492 = Wrong Type (should be BITS): INTEGER: 5120
LLDP-MIB::lldpRemSysCapSupported.1517 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1518 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1519 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.1520 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.2208 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.2209 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.2210 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.2211 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapSupported.2266 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1383 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1384 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1385 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1386 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1390 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1391 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1392 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1393 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1394 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1395 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1396 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1490 = Wrong Type (should be BITS): INTEGER: 5120
LLDP-MIB::lldpRemSysCapEnabled.1491 = Wrong Type (should be BITS): INTEGER: 5120
LLDP-MIB::lldpRemSysCapEnabled.1492 = Wrong Type (should be BITS): INTEGER: 5120
LLDP-MIB::lldpRemSysCapEnabled.1517 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1518 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1519 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.1520 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.2208 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.2209 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.2210 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.2211 = Wrong Type (should be BITS): INTEGER: 0
LLDP-MIB::lldpRemSysCapEnabled.2266 = Wrong Type (should be BITS): INTEGER: 0

@xorr0
Copy link
Author

xorr0 commented Nov 9, 2019

In my previous output, I used a computer that had the MIB you linked, but was questioning the "Wrong Type (should be BITS)" results..... So, I downloaded the MIB specifically you suggested, and related modules on the pre-built NAV 5.0 VM appliance (using VirtualBox) and placed them into /usr/share/snmp/mibs after installing libsnmp-base. I then queried the same device as earlier (the MikroTik that gave the original error, among many others doing the same thing) and got this output from SNMPwalk using numberic OID (versus extended index format):

root@navappliance:/usr/share/snmp/mibs# snmptranslate -On LLDP-MIB::lldpRemTable
.1.0.8802.1.1.2.1.4.1

root@navappliance:/usr/share/snmp/mibs# snmpwalk -v2c -c <COMMUNITY> 10.255.213.34 .1.0.8802.1.1.2.1.4.1
iso.0.8802.1.1.2.1.4.1.1.4.1383 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1384 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1385 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1386 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1390 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1391 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1392 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1393 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1394 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1395 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1396 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1490 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1491 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1492 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1517 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1518 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1519 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.1520 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.2208 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.2209 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.2210 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.2211 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.4.2266 = INTEGER: 4
iso.0.8802.1.1.2.1.4.1.1.5.1383 = STRING: "E4:8D:8C:35:4A:93"
iso.0.8802.1.1.2.1.4.1.1.5.1384 = STRING: "E4:8D:8C:35:4A:93"
iso.0.8802.1.1.2.1.4.1.1.5.1385 = STRING: "E4:8D:8C:35:4A:93"
iso.0.8802.1.1.2.1.4.1.1.5.1386 = STRING: "E4:8D:8C:35:4A:93"
iso.0.8802.1.1.2.1.4.1.1.5.1390 = STRING: "E4:8D:8C:10:42:42"
iso.0.8802.1.1.2.1.4.1.1.5.1391 = STRING: "E4:8D:8C:10:42:42"
iso.0.8802.1.1.2.1.4.1.1.5.1392 = STRING: "E4:8D:8C:10:42:42"
iso.0.8802.1.1.2.1.4.1.1.5.1393 = STRING: "00:00:5E:00:01:66"
iso.0.8802.1.1.2.1.4.1.1.5.1394 = STRING: "00:00:5E:00:01:66"
iso.0.8802.1.1.2.1.4.1.1.5.1395 = STRING: "4C:5E:0C:02:7C:B1"
iso.0.8802.1.1.2.1.4.1.1.5.1396 = STRING: "00:00:5E:00:01:25"
iso.0.8802.1.1.2.1.4.1.1.5.1490 = STRING: "E4:8D:8C:10:42:43"
iso.0.8802.1.1.2.1.4.1.1.5.1491 = STRING: "E4:8D:8C:10:42:43"
iso.0.8802.1.1.2.1.4.1.1.5.1492 = STRING: "E4:8D:8C:10:42:43"
iso.0.8802.1.1.2.1.4.1.1.5.1517 = STRING: "E4:8D:8C:25:6E:8B"
iso.0.8802.1.1.2.1.4.1.1.5.1518 = STRING: "E4:8D:8C:25:6E:92"
iso.0.8802.1.1.2.1.4.1.1.5.1519 = STRING: "E4:8D:8C:16:5F:21"
iso.0.8802.1.1.2.1.4.1.1.5.1520 = STRING: "E4:8D:8C:16:5F:22"
iso.0.8802.1.1.2.1.4.1.1.5.2208 = STRING: "E4:8D:8C:2A:FA:B2"
iso.0.8802.1.1.2.1.4.1.1.5.2209 = STRING: "E4:8D:8C:2A:FA:B2"
iso.0.8802.1.1.2.1.4.1.1.5.2210 = STRING: "E4:8D:8C:2A:FA:B2"
iso.0.8802.1.1.2.1.4.1.1.5.2211 = STRING: "E4:8D:8C:2A:FA:B2"
iso.0.8802.1.1.2.1.4.1.1.5.2266 = STRING: "E4:8D:8C:35:4C:E3"
iso.0.8802.1.1.2.1.4.1.1.6.1383 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1384 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1385 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1386 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1390 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1391 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1392 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1393 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1394 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1395 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1396 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1490 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1491 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1492 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1517 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1518 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1519 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.1520 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.2208 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.2209 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.2210 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.2211 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.6.2266 = INTEGER: 5
iso.0.8802.1.1.2.1.4.1.1.7.1383 = STRING: "OR03WAN(59)"
iso.0.8802.1.1.2.1.4.1.1.7.1384 = STRING: "vlan41"
iso.0.8802.1.1.2.1.4.1.1.7.1385 = STRING: "vlan51"
iso.0.8802.1.1.2.1.4.1.1.7.1386 = STRING: "vlan51"
iso.0.8802.1.1.2.1.4.1.1.7.1390 = STRING: "wanbr"
iso.0.8802.1.1.2.1.4.1.1.7.1391 = STRING: "vlan20"
iso.0.8802.1.1.2.1.4.1.1.7.1392 = STRING: "vlan60"
iso.0.8802.1.1.2.1.4.1.1.7.1393 = STRING: "VLAN57(to OR03)"
iso.0.8802.1.1.2.1.4.1.1.7.1394 = STRING: "vlan27"
iso.0.8802.1.1.2.1.4.1.1.7.1395 = STRING: "vlan37"
iso.0.8802.1.1.2.1.4.1.1.7.1396 = STRING: "vrrp37"
iso.0.8802.1.1.2.1.4.1.1.7.1490 = STRING: "ether3"
iso.0.8802.1.1.2.1.4.1.1.7.1491 = STRING: "vlan54"
iso.0.8802.1.1.2.1.4.1.1.7.1492 = STRING: "vlan55"
iso.0.8802.1.1.2.1.4.1.1.7.1517 = STRING: "VLAN61(KAFOURYbh)"
iso.0.8802.1.1.2.1.4.1.1.7.1518 = STRING: "vlan60-Kaufory MGMT)"
iso.0.8802.1.1.2.1.4.1.1.7.1519 = STRING: "WAN"
iso.0.8802.1.1.2.1.4.1.1.7.1520 = STRING: "bridge1"
iso.0.8802.1.1.2.1.4.1.1.7.2208 = STRING: "ether2"
iso.0.8802.1.1.2.1.4.1.1.7.2209 = STRING: "vlan43"
iso.0.8802.1.1.2.1.4.1.1.7.2210 = STRING: "vlan53"
iso.0.8802.1.1.2.1.4.1.1.7.2211 = STRING: "vlan53"
iso.0.8802.1.1.2.1.4.1.1.7.2266 = STRING: "OldMGMT(60)"
iso.0.8802.1.1.2.1.4.1.1.9.1383 = STRING: "pdxpo0189rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.1384 = STRING: "pdxpo0189rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.1385 = STRING: "pdxpo0189rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.1386 = STRING: "pdxpo0189rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.1390 = STRING: "pdxpo0225rm21101"
iso.0.8802.1.1.2.1.4.1.1.9.1391 = STRING: "pdxpo0225rm21101"
iso.0.8802.1.1.2.1.4.1.1.9.1392 = STRING: "pdxpo0225rm21101"
iso.0.8802.1.1.2.1.4.1.1.9.1393 = STRING: "pdxpo0002rm13601"
iso.0.8802.1.1.2.1.4.1.1.9.1394 = STRING: "pdxpo0002rm13601"
iso.0.8802.1.1.2.1.4.1.1.9.1395 = STRING: "pdxpo0002rm13601"
iso.0.8802.1.1.2.1.4.1.1.9.1396 = STRING: "pdxpo0002rm13601"
iso.0.8802.1.1.2.1.4.1.1.9.1490 = STRING: "pdxpo0225rm21101"
iso.0.8802.1.1.2.1.4.1.1.9.1491 = STRING: "pdxpo0225rm21101"
iso.0.8802.1.1.2.1.4.1.1.9.1492 = STRING: "pdxpo0225rm21101"
iso.0.8802.1.1.2.1.4.1.1.9.1517 = STRING: "PAM-EVENT-ROUTER"
iso.0.8802.1.1.2.1.4.1.1.9.1518 = STRING: "PAM-EVENT-ROUTER"
iso.0.8802.1.1.2.1.4.1.1.9.1519 = STRING: "pdxpo0191rm91201"
iso.0.8802.1.1.2.1.4.1.1.9.1520 = STRING: "pdxpo0191rm91201"
iso.0.8802.1.1.2.1.4.1.1.9.2208 = STRING: "pdxpo0195rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.2209 = STRING: "pdxpo0195rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.2210 = STRING: "pdxpo0195rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.2211 = STRING: "pdxpo0195rm10901"
iso.0.8802.1.1.2.1.4.1.1.9.2266 = STRING: "pdxpo0194rm10901"
iso.0.8802.1.1.2.1.4.1.1.10.1383 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1384 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1385 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1386 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1390 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1391 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1392 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1393 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1394 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1395 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1396 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1490 = STRING: "MikroTik RouterOS 6.42.6 (stable) RB2011iLS"
iso.0.8802.1.1.2.1.4.1.1.10.1491 = STRING: "MikroTik RouterOS 6.42.6 (stable) RB2011iLS"
iso.0.8802.1.1.2.1.4.1.1.10.1492 = STRING: "MikroTik RouterOS 6.42.6 (stable) RB2011iLS"
iso.0.8802.1.1.2.1.4.1.1.10.1517 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1518 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1519 = ""
iso.0.8802.1.1.2.1.4.1.1.10.1520 = ""
iso.0.8802.1.1.2.1.4.1.1.10.2208 = ""
iso.0.8802.1.1.2.1.4.1.1.10.2209 = ""
iso.0.8802.1.1.2.1.4.1.1.10.2210 = ""
iso.0.8802.1.1.2.1.4.1.1.10.2211 = ""
iso.0.8802.1.1.2.1.4.1.1.10.2266 = ""
iso.0.8802.1.1.2.1.4.1.1.11.1383 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1384 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1385 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1386 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1390 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1391 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1392 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1393 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1394 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1395 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1396 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1490 = INTEGER: 5120
iso.0.8802.1.1.2.1.4.1.1.11.1491 = INTEGER: 5120
iso.0.8802.1.1.2.1.4.1.1.11.1492 = INTEGER: 5120
iso.0.8802.1.1.2.1.4.1.1.11.1517 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1518 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1519 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.1520 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.2208 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.2209 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.2210 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.2211 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.11.2266 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1383 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1384 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1385 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1386 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1390 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1391 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1392 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1393 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1394 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1395 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1396 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1490 = INTEGER: 5120
iso.0.8802.1.1.2.1.4.1.1.12.1491 = INTEGER: 5120
iso.0.8802.1.1.2.1.4.1.1.12.1492 = INTEGER: 5120
iso.0.8802.1.1.2.1.4.1.1.12.1517 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1518 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1519 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.1520 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.2208 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.2209 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.2210 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.2211 = INTEGER: 0
iso.0.8802.1.1.2.1.4.1.1.12.2266 = INTEGER: 0

Lastly, as I was curious what Windows 10 shows (using iReasoning MIB browser), I grabbed the same MIB you referenced and queried the same MikroTik CCR1009-8G-1S device as above - using same OID query LLDP-MIB::lldpRemTable (numeric OID: .1.0.8802.1.1.2.1.4.1):

lldpRemChassisIdSubtype.1383 | macAddress (4) | Integer | 10.255.213.34:161
-- | -- | -- | --
lldpRemChassisIdSubtype.1384 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1385 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1386 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1390 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1391 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1392 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1393 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1394 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1395 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1396 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1490 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1491 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1492 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1517 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1518 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1519 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.1520 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.2208 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.2209 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.2210 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.2211 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisIdSubtype.2266 | macAddress (4) | Integer | 10.255.213.34:161
lldpRemChassisId.1383 | E4:8D:8C:35:4A:93 | OctetString | 10.255.213.34:161
lldpRemChassisId.1384 | E4:8D:8C:35:4A:93 | OctetString | 10.255.213.34:161
lldpRemChassisId.1385 | E4:8D:8C:35:4A:93 | OctetString | 10.255.213.34:161
lldpRemChassisId.1386 | E4:8D:8C:35:4A:93 | OctetString | 10.255.213.34:161
lldpRemChassisId.1390 | E4:8D:8C:10:42:42 | OctetString | 10.255.213.34:161
lldpRemChassisId.1391 | E4:8D:8C:10:42:42 | OctetString | 10.255.213.34:161
lldpRemChassisId.1392 | E4:8D:8C:10:42:42 | OctetString | 10.255.213.34:161
lldpRemChassisId.1393 | 00:00:5E:00:01:66 | OctetString | 10.255.213.34:161
lldpRemChassisId.1394 | 00:00:5E:00:01:66 | OctetString | 10.255.213.34:161
lldpRemChassisId.1395 | 4C:5E:0C:02:7C:B1 | OctetString | 10.255.213.34:161
lldpRemChassisId.1396 | 00:00:5E:00:01:25 | OctetString | 10.255.213.34:161
lldpRemChassisId.1490 | E4:8D:8C:10:42:43 | OctetString | 10.255.213.34:161
lldpRemChassisId.1491 | E4:8D:8C:10:42:43 | OctetString | 10.255.213.34:161
lldpRemChassisId.1492 | E4:8D:8C:10:42:43 | OctetString | 10.255.213.34:161
lldpRemChassisId.1517 | E4:8D:8C:25:6E:8B | OctetString | 10.255.213.34:161
lldpRemChassisId.1518 | E4:8D:8C:25:6E:92 | OctetString | 10.255.213.34:161
lldpRemChassisId.1519 | E4:8D:8C:16:5F:21 | OctetString | 10.255.213.34:161
lldpRemChassisId.1520 | E4:8D:8C:16:5F:22 | OctetString | 10.255.213.34:161
lldpRemChassisId.2208 | E4:8D:8C:2A:FA:B2 | OctetString | 10.255.213.34:161
lldpRemChassisId.2209 | E4:8D:8C:2A:FA:B2 | OctetString | 10.255.213.34:161
lldpRemChassisId.2210 | E4:8D:8C:2A:FA:B2 | OctetString | 10.255.213.34:161
lldpRemChassisId.2211 | E4:8D:8C:2A:FA:B2 | OctetString | 10.255.213.34:161
lldpRemChassisId.2266 | E4:8D:8C:35:4C:E3 | OctetString | 10.255.213.34:161
lldpRemPortIdSubtype.1383 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1384 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1385 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1386 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1390 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1391 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1392 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1393 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1394 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1395 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1396 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1490 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1491 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1492 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1517 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1518 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1519 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.1520 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.2208 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.2209 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.2210 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.2211 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortIdSubtype.2266 | interfaceName (5) | Integer | 10.255.213.34:161
lldpRemPortId.1383 | OR03WAN(59) | OctetString | 10.255.213.34:161
lldpRemPortId.1384 | vlan41 | OctetString | 10.255.213.34:161
lldpRemPortId.1385 | vlan51 | OctetString | 10.255.213.34:161
lldpRemPortId.1386 | vlan51 | OctetString | 10.255.213.34:161
lldpRemPortId.1390 | wanbr | OctetString | 10.255.213.34:161
lldpRemPortId.1391 | vlan20 | OctetString | 10.255.213.34:161
lldpRemPortId.1392 | vlan60 | OctetString | 10.255.213.34:161
lldpRemPortId.1393 | VLAN57(to OR03) | OctetString | 10.255.213.34:161
lldpRemPortId.1394 | vlan27 | OctetString | 10.255.213.34:161
lldpRemPortId.1395 | vlan37 | OctetString | 10.255.213.34:161
lldpRemPortId.1396 | vrrp37 | OctetString | 10.255.213.34:161
lldpRemPortId.1490 | ether3 | OctetString | 10.255.213.34:161
lldpRemPortId.1491 | vlan54 | OctetString | 10.255.213.34:161
lldpRemPortId.1492 | vlan55 | OctetString | 10.255.213.34:161
lldpRemPortId.1517 | VLAN61(KAFOURYbh) | OctetString | 10.255.213.34:161
lldpRemPortId.1518 | vlan60-Kaufory MGMT) | OctetString | 10.255.213.34:161
lldpRemPortId.1519 | WAN | OctetString | 10.255.213.34:161
lldpRemPortId.1520 | bridge1 | OctetString | 10.255.213.34:161
lldpRemPortId.2208 | ether2 | OctetString | 10.255.213.34:161
lldpRemPortId.2209 | vlan43 | OctetString | 10.255.213.34:161
lldpRemPortId.2210 | vlan53 | OctetString | 10.255.213.34:161
lldpRemPortId.2211 | vlan53 | OctetString | 10.255.213.34:161
lldpRemPortId.2266 | OldMGMT(60) | OctetString | 10.255.213.34:161
lldpRemSysName.1383 | pdxpo0189rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.1384 | pdxpo0189rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.1385 | pdxpo0189rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.1386 | pdxpo0189rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.1390 | pdxpo0225rm21101 | OctetString | 10.255.213.34:161
lldpRemSysName.1391 | pdxpo0225rm21101 | OctetString | 10.255.213.34:161
lldpRemSysName.1392 | pdxpo0225rm21101 | OctetString | 10.255.213.34:161
lldpRemSysName.1393 | pdxpo0002rm13601 | OctetString | 10.255.213.34:161
lldpRemSysName.1394 | pdxpo0002rm13601 | OctetString | 10.255.213.34:161
lldpRemSysName.1395 | pdxpo0002rm13601 | OctetString | 10.255.213.34:161
lldpRemSysName.1396 | pdxpo0002rm13601 | OctetString | 10.255.213.34:161
lldpRemSysName.1490 | pdxpo0225rm21101 | OctetString | 10.255.213.34:161
lldpRemSysName.1491 | pdxpo0225rm21101 | OctetString | 10.255.213.34:161
lldpRemSysName.1492 | pdxpo0225rm21101 | OctetString | 10.255.213.34:161
lldpRemSysName.1517 | PAM-EVENT-ROUTER | OctetString | 10.255.213.34:161
lldpRemSysName.1518 | PAM-EVENT-ROUTER | OctetString | 10.255.213.34:161
lldpRemSysName.1519 | pdxpo0191rm91201 | OctetString | 10.255.213.34:161
lldpRemSysName.1520 | pdxpo0191rm91201 | OctetString | 10.255.213.34:161
lldpRemSysName.2208 | pdxpo0195rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.2209 | pdxpo0195rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.2210 | pdxpo0195rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.2211 | pdxpo0195rm10901 | OctetString | 10.255.213.34:161
lldpRemSysName.2266 | pdxpo0194rm10901 | OctetString | 10.255.213.34:161
lldpRemSysDesc.1383 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1384 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1385 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1386 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1390 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1391 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1392 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1393 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1394 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1395 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1396 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1490 | MikroTik RouterOS 6.42.6 (stable) RB2011iLS | OctetString | 10.255.213.34:161
lldpRemSysDesc.1491 | MikroTik RouterOS 6.42.6 (stable) RB2011iLS | OctetString | 10.255.213.34:161
lldpRemSysDesc.1492 | MikroTik RouterOS 6.42.6 (stable) RB2011iLS | OctetString | 10.255.213.34:161
lldpRemSysDesc.1517 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1518 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1519 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.1520 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.2208 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.2209 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.2210 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.2211 |   | OctetString | 10.255.213.34:161
lldpRemSysDesc.2266 |   | OctetString | 10.255.213.34:161
lldpRemSysCapSupported.1383 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1384 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1385 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1386 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1390 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1391 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1392 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1393 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1394 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1395 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1396 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1490 | {bridge, wlanAccessPoint, telephone, stationOnly, 10, 11, 15, 18, 19, 22, 26, 27} (5120) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1491 | {bridge, wlanAccessPoint, telephone, stationOnly, 10, 11, 15, 18, 19, 22, 26, 27} (5120) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1492 | {bridge, wlanAccessPoint, telephone, stationOnly, 10, 11, 15, 18, 19, 22, 26, 27} (5120) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1517 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1518 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1519 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.1520 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.2208 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.2209 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.2210 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.2211 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapSupported.2266 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1383 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1384 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1385 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1386 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1390 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1391 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1392 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1393 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1394 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1395 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1396 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1490 | {bridge, wlanAccessPoint, telephone, stationOnly, 10, 11, 15, 18, 19, 22, 26, 27} (5120) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1491 | {bridge, wlanAccessPoint, telephone, stationOnly, 10, 11, 15, 18, 19, 22, 26, 27} (5120) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1492 | {bridge, wlanAccessPoint, telephone, stationOnly, 10, 11, 15, 18, 19, 22, 26, 27} (5120) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1517 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1518 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1519 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.1520 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.2208 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.2209 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.2210 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.2211 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161
lldpRemSysCapEnabled.2266 | {bridge, wlanAccessPoint} (0) | Integer | 10.255.213.34:161

@lunkwill42
Copy link
Member

That was a bit excessive :-D

Your first output confirms that the LLDP-MIB implementation of your Mikrotik device is broken, as it only provides a single value for the table index.

From your first example, there's

LLDP-MIB::lldpRemChassisIdSubtype.1384 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1385 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.1386 = INTEGER: macAddress(4)
…

From a switch with a proper implementation, it looks like this:

LLDP-MIB::lldpRemChassisIdSubtype.0.50.1 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.0.51.1 = INTEGER: macAddress(4)
LLDP-MIB::lldpRemChassisIdSubtype.0.54.1 = INTEGER: macAddress(4)
…

I wouldn't even begin to know how to interpret the single value from your Mikrotik; is it a lldpRemLocalPortNum or a lldpRemIndex? Who knows.

The best we could do, IMHO, is to workaround this in NAV by ignoring the LLDP-MIB and continuing if there's an error parsing the results.

@lunkwill42 lunkwill42 changed the title [BUG] Topology job fails on MikroTik devices, the ipdevpoll.log is filled with errors: ValueError('not enough values to unpack (expected 3, got 1) Broken Mikrotik LLDP-MIB implementation causes ipdevpoll LLDP plugin to crash Nov 12, 2019
@lunkwill42 lunkwill42 added the bug label Nov 12, 2019
@lunkwill42
Copy link
Member

@xorr0 Would you be able to test the patch from #2020 against your Mikrotiks?

@xorr0
Copy link
Author

xorr0 commented Nov 15, 2019

Yessir, I will give it your patch a go and report back soon. Thank you for looking into this!

@lunkwill42
Copy link
Member

lunkwill42 commented Dec 4, 2019

Yessir, I will give it your patch a go and report back soon. Thank you for looking into this!

So, did you test the patch, @xorr0 ? :-)

@lunkwill42 lunkwill42 added this to the 5.0.3 milestone Dec 17, 2019
@lunkwill42
Copy link
Member

Though there is no feedback from @xorr0 , I was able to test this on a customer's Mikrotik devices.

@lunkwill42
Copy link
Member

Closed by #2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants