How to get Ethernet port Uptime oid ?

Hi there.

Tell me please, how i can get the oid (for snmp protocol) uptime of the ethernet port (or an other port, it doesn’t mater) in RouterOS ?

I’ve tried the following command in the terminal : interface print oid
But I can’t find what i’m looking for
(Whithout searching in log)

IF-MIB::ifLastChange.1 = Timeticks

Maybe?

Looks like 1.3.6.1.2.1.2.2.1.9 for Mikrotik stuff…

The user is waiting your reply from 2019…

Yea - but the next poor slob that researches this may find it useful.

Also form this page:
https://community.cisco.com/t5/routing/what-is-the-meaning-of-the-oid-1-3-6-1-2-1-2-2-1-9-iflastchange/td-p/2115204:
"To find out when the last status change of an interface occured, you also need to query sysUptime.0 (1.3.6.1.2.1.1.3.0) .

Calculate sysUptime.0 minus ifLastChange.x and divide the result by 100 (Tiimeticks are denoted in hundredths of a second).

This value gives you the time in seconds since the last status change."

May need to be modified for Mikrotik OID’s etc…

If this helps some one - let us know - and what you did to make it work!