Monitoring rut data usage via API

I’m wondering if there’s a way of monitoring RUT data usage via the Teltonika API. So far I’m successfully making calls to the API and getting a variety of useful data e.g. wan state, connection type etc., however I’d like to see the data usage for a given device, i.e. the same data that is available through RMS under the ‘data usage’ tab, or something similar to that.

Is this possible to access via the API?

model RUT240, firmware RUT2XX_R_00.01.14.5


It’s hard to say if this can be done on the legacy firmware that you are using, however, in the latest firmware, you could utilize JSON-RPC and use ubus calls to get the data usage from the mdcollect module, which is responsible for data usage collection. More information about JSON-RPC in the modern RutOS versions can be found here: Monitoring via JSON-RPC windows RutOS - Teltonika Networks Wiki
These are the possible ubus mdcollect calls:

root@RUTX09:~# ubus -v list mdcollect
'mdcollect' @061d126c

Hope this helps!

Best regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.