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
666 views 5 comments
by anonymous

Hello,
how I can read the mobile traffic data from RUTX11?
For the RUT950 mobile traffic you can use mdcollectdctl. Thanks

Andrea

1 Answer

0 votes
by anonymous

Hello,

You can use ubus call command: 

  • ubus call mdcollect get_overall '{"iface_name":"<interface>","conn_period":"<month/day/etc.>","sim":1}'

Or you can install and use most of bandwidth monitoring tools presented in this page https://openwrt.org/docs/guide-user/services/network_monitoring/bwmon

Best regards,
VidasKac.

Edit: Fixed typing mistake, variables like month/day should be written without capital letters.

by anonymous
Hello,
if I write: ubus call mdcollect get_overall '{"iface_name":"qmimux0","conn_period":"Month","sim":1}'
I get {  "bytes": 991719079  }  as result.

if I write: ubus call mdcollect get_overall '{"iface_name":"qmimux0","conn_period":"month","sim":1}'
I get {  "bytes": 8984383810 }  as result.

Why this difference?
Some bug using "Month" or "month"?

Thanks

Kind Regards
Andrea
by anonymous

Correct syntax is month, it is case sensitive and lover case should be used, it returns wrong value if capital letters are used. It was my typing mistake that I wrote in Month in my first example. 

Best regards,
VidasKac.

by anonymous

Well in this case with wrong parameter Month I should get as result some error and not wrong bytes value.

Kind Regards
Andrea
 

by anonymous
As for now we are looking why it script accepts variable with capital letter it in the first place, since it is case sensitive. But until we fin a reason I can only provide you with correct syntax to use.

Regards,
VidasKac.
by anonymous
Sure, at moment I use with lowercase.
Thank you for support.

Have nice day.

Kind Regards
Andrea