FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
322 views 0 comments
by anonymous

Hello, 

we have two kinds of routers RUT240, the old one has the FW ver.: RUT2XX_R_00.01.10 and the new one has the FW ver :: RUT2_R_00.07.02.7.

In the old router with fw RUT2XX_R_00.01.10 we were getting three json files from the next two urls with a curl command:

http://192.168.1.1/cgi-bin/luci/admin/status/overview?status=1

http://192.168.1.1/cgi-bin/luci/admin/status/netinfo/mobile?status=1

My question is how can I get the same data from the new router with the new fw RUT2_R_00.07.02.7 ? 

Thank you

1 Answer

0 votes
by anonymous

Hello,

  

Thank you for reaching out!

Instructions on how to use JSON RPC with the curl command can be found here.

It depends on what information is needed, but to get mobile data usage, commands like gsmctl -e mob1s1a1 (number of bytes sent) and gsmctl -r mob1s1a1 (number of bytes received) can be used.

Please keep in mind, that this will only work up to version RUTX_R_00.07.02.7. Later versions use different API calls.

  

Let me know if you experience any difficulties!

Best regards,
DaumantasG