FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14223 questions

16879 answers

27758 comments

54397 members

0 votes
606 views 5 comments
by

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

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
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

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

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

Kind Regards
Andrea
 

by
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
Sure, at moment I use with lowercase.
Thank you for support.

Have nice day.

Kind Regards
Andrea