SNMP OID -
Dans - 03-06-2021
If you are running SNMP on your mikrotik and you want to create your own MIB file and you don't know the OIDs of some of the objects.
you can use these command to find out the OIDs
example, getting the OIDs of the interface
Quote:/interface print oid
the result will be..
Quote:Flags: D - dynamic, X - disabled, R - running, S - slave
0 X name=.1.3.6.1.2.1.2.2.1.2.2 actual-mtu=.1.3.6.1.2.1.2.2.1.4.2
mac-address=.1.3.6.1.2.1.2.2.1.6.2 admin-status=.1.3.6.1.2.1.2.2.1.7.2
oper-status=.1.3.6.1.2.1.2.2.1.8.2 bytes-in=.1.3.6.1.2.1.31.1.1.1.6.2
packets-in=.1.3.6.1.2.1.31.1.1.1.7.2
discards-in=.1.3.6.1.2.1.2.2.1.13.2 errors-in=.1.3.6.1.2.1.2.2.1.14.2
bytes-out=.1.3.6.1.2.1.31.1.1.1.10.2
packets-out=.1.3.6.1.2.1.31.1.1.1.11.2
discards-out=.1.3.6.1.2.1.2.2.1.19.2 errors-out=.1.3.6.1.2.1.2.2.1.2
just use the
print oid
simple!