snmp-info icon indicating copy to clipboard operation
snmp-info copied to clipboard

Feature request/Mikrotik IP Neighbors

Open mrquija opened this issue 4 years ago • 12 comments

Expected Behavior

Netdisco should look in MIKROTIK-MIB for these OIDs to discover neighbors. Mikrotik does not have LLDP-MIB or CISCO-CDP-MIB implemented yet.

1.3.6.1.4.1.14988.1.1.11.1.1.2 mtxrNeighborIpAddress 1.3.6.1.4.1.14988.1.1.11.1.1.3 mtxrNeighborMacAddress 1.3.6.1.4.1.14988.1.1.11.1.1.4 mtxrNeighborVersion 1.3.6.1.4.1.14988.1.1.11.1.1.5 mtxrNeighborPlatform 1.3.6.1.4.1.14988.1.1.11.1.1.6 mtxrNeighborIdentity 1.3.6.1.4.1.14988.1.1.11.1.1.7 mtxrNeighborSoftwareID 1.3.6.1.4.1.14988.1.1.11.1.1.8 mtxrNeighborInterfaceID

Current Behavior

No neighbors are discovered

mrquija avatar May 03 '21 07:05 mrquija

Following, this really would help for 'Tik deployments as otherwise topology has to be done manually and all devices must be scanned. On a network with /16 nets this takes days rather than minutes.

acrow-geo avatar Nov 06 '23 14:11 acrow-geo

Hi @mrquija and @acrow-geo any chance you can send me a snapshot from two Mikrotik neighbours so I can develop/test? https://github.com/netdisco/netdisco/wiki/Snapshot#share-a-snapshot (oliver at cpan dot org)

ollyg avatar Nov 06 '23 14:11 ollyg

@ollyg what do you mean by a snapshot? A full walk of the Mikrotik MIB on two devices?

Thanks for the reply, really busy ATM - had to set up all devices and links in netbox for some management reporting, still not done after 2 weeks!

acrow-geo avatar Nov 17 '23 16:11 acrow-geo

@acrow-geo ah yes we use Netbox at work, too, good tool!

Indeed I mean to follow the snmpwalk command given at https://github.com/netdisco/netdisco/wiki/Snapshot#share-a-snapshot

This will gather the walk of everything the device offers, so I can simulate fully

ollyg avatar Nov 17 '23 16:11 ollyg

@acrow-geo you can email to oliver at cpan dot org

ollyg avatar Nov 17 '23 16:11 ollyg

Thanks @ollyg = if I get a few minutes I'll try to get it over to you.

acrow-geo avatar Nov 17 '23 16:11 acrow-geo

Hi @acrow-geo @mrquija many thanks! Looking into it, I can indeed see the neighbor info and we should be able to add it to Netdisco display. I can also see link aggregation running but can't see the data in SNMP ... any idea if this is in a MIB on RouterOS?

ollyg avatar Nov 18 '23 10:11 ollyg

Hi @acrow-geo and @mrquija unfortunately most of what MIKROTIK-MIB has for neighbors is not very useful. There are too many entries and I cannot see how to map them to the actual ports on the device. On the other hand LLDP-MIB is partly implemented but also a lot of strange data in there. I'm going to take a break from this, and come back later. Perhaps something will pop to my mind.

ollyg avatar Nov 21 '23 17:11 ollyg

Hi Oliver,

Thanks again for your prompt reply - are you asking about Bond interfaces (as Mikrotik calls LAGs)? If so, there is an MLAG set up on the dist switches back to the core one (labelled uplink) on sfp-3 and sfp-4 on that dist swich and its partner. There are also some MLAGs to a pair of edge switches from the dist.


From: Oliver Gorwits @.> Sent: 18 November 2023 10:47 To: netdisco/snmp-info @.> Cc: Alex Crow @.>; Mention @.> Subject: Re: [netdisco/snmp-info] Feature request/Mikrotik IP Neighbors (#427)

Hi @acrow-geohttps://github.com/acrow-geo @mrquijahttps://github.com/mrquija many thanks! Looking into it, I can indeed see the neighbor info and we should be able to add it to Netdisco display. I can also see link aggregation running but can't see the data in SNMP ... any idea if this is in a MIB on RouterOS?

— Reply to this email directly, view it on GitHubhttps://github.com/netdisco/snmp-info/issues/427#issuecomment-1817474189, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBUYWPYVINCI7ZFCQISZG63YFCG5LAVCNFSM47GSPXUKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBRG42DONBRHA4Q. You are receiving this because you were mentioned.

DISCLAIMER: This email and any attachments are sent in confidence, subject to applicable legal privilege and upon the basis that the recipient will conduct appropriate checks. If you receive this email in error, please telephone us upon receipt: you are strictly prohibited from using, copying or disseminating it or any information contained in it save to the intended recipient. Internet communications are not secure and Green Energy Options Ltd is not responsible for their abuse by third parties, nor for any alteration or corruption in transmission, nor for any damage or loss caused by any virus or other defect. Green Energy Options Limited. Registered office: 3 St. Mary's Court, Main Street, Hardwick, Cambridge CB23 7QS Registered in England no. 5783558

acrow-geo avatar Nov 22 '23 11:11 acrow-geo

Hi Oliver,

Thanks for your reply. I forgot to press send in my last email, just done so.

Fair enough about taking a break, but I wonder if using MLAG might be complicating things? I might be able to put up two switches with one cable between them and redo the walk.

Cheers

Alex


From: Oliver Gorwits @.> Sent: 21 November 2023 17:40 To: netdisco/snmp-info @.> Cc: Alex Crow @.>; Mention @.> Subject: Re: [netdisco/snmp-info] Feature request/Mikrotik IP Neighbors (#427)

Hi @acrow-geohttps://github.com/acrow-geo and @mrquijahttps://github.com/mrquija unfortunately most of what MIKROTIK-MIB has for neighbors is not very useful. There are too many entries and I cannot see how to map them to the actual ports on the device. On the other hand LLDP-MIB is partly implemented but also a lot of strange data in there. I'm going to take a break from this, and come back later. Perhaps something will pop to my mind.

— Reply to this email directly, view it on GitHubhttps://github.com/netdisco/snmp-info/issues/427#issuecomment-1821373143, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBUYWP47E5UFORX5WSJZ5F3YFTRPXAVCNFSM47GSPXUKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSGEZTOMZRGQZQ. You are receiving this because you were mentioned.Message ID: @.***>

DISCLAIMER: This email and any attachments are sent in confidence, subject to applicable legal privilege and upon the basis that the recipient will conduct appropriate checks. If you receive this email in error, please telephone us upon receipt: you are strictly prohibited from using, copying or disseminating it or any information contained in it save to the intended recipient. Internet communications are not secure and Green Energy Options Ltd is not responsible for their abuse by third parties, nor for any alteration or corruption in transmission, nor for any damage or loss caused by any virus or other defect. Green Energy Options Limited. Registered office: 3 St. Mary's Court, Main Street, Hardwick, Cambridge CB23 7QS Registered in England no. 5783558

acrow-geo avatar Nov 22 '23 11:11 acrow-geo

Hi @acrow-geo no, I was talking about LLDP/neighbor data, and I can't get a clear picture either from the MIKROTIK-MIB or LLDP MIB data. Unfortunately the MIKROTIK-MIB is undocumented so I don't know how to interpret its data, and the LLDP MIB data is incomplete.

Actually the best thing might be an LLDP/neighbor with a non-Mikrotik device, so I can see what is stored for that.

ollyg avatar Nov 22 '23 12:11 ollyg

Hi Oliver, i have the data that you want its from Mikrotik and HP/Aruba switches. where do you want me to send it ?

klevert84 avatar Mar 24 '24 08:03 klevert84