[UNRESOLVED] SNMP iso.3.6.1.2.1.4.21.1 missing from 7.x

I’m migrating from ROS 6.x to 7.x and we are heavily using this SNMP branch on our routers, however, 7.x seems to be missing this SNMP branch.

iso.3.6.1.2.1.4.21.1 = No Such Object available on this agent at this OID

only iso.3.6.1.2.1.4.24.4 looks available which has a totally different format.

Is it possible to get the 21.1 working or should we somehow migrate to 24.4?

It is always helpful when you mention what you are looking for, instead of only numeric OID…

I’m looking for the ifindex of the default route. Sadly it’s 0 in 7.x, and it’s completely unusable. I found a hard workaround from other oids, but I don’t want to implement it, if it’s not really neccessary.

Maybe easier to ask support ?

Getting the route table info using SNMP is flaky in RouterOS. Sometimes they fix issues, only for them to come back later.

I have changed to using API for it, but I understand you do not want to do it.

1 Like

tbh, that was my 2nd idea and with 5 minutes of chatgpt I managed to read it via API, so I will probably retire snmp:)