FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

13303 questions

15792 answers

25506 comments

50155 members

0 votes
71 views 0 comments
by

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

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