Hi everyone,
I’m using RUTX10, and I’m going to use router log-like uptime in third-party applications. How can I access them through API, etc.?
Hi everyone,
I’m using RUTX10, and I’m going to use router log-like uptime in third-party applications. How can I access them through API, etc.?
Hello,
One way is to use snmp, it will give you the router’s uptime :
[root@fdf ~]# snmpget -v 2c -c public 192.168.98.1 1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (8882623) 1 day, 0:40:26.23
or
[root@fdf ~]# snmpget -v 2c -c public 192.168.98.1 iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (8909710) 1 day, 0:44:57.10
Regards,
Hello,
You can also use RUTOS API: https://developers.teltonika-networks.com/
The particular endpoint that contains router’s uptime as one of its data points is: /system/device/usage/status
When executed directly on the router’s CLI with some filtering applied:
The command above returns:
Best regards,
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.