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
475 views 1 comments
by anonymous
How can I get the mobile data usage from command line ?

I the past it was possible with mdcollectdctl as described here: https://wiki.teltonika-networks.com/view/RUT240_Mobile_Traffic

It seems that mdcollectdctl is not available with 07.01.2 even mdcollectd is.

I need the used mobile data for the current month.

Thanks.

1 Answer

0 votes
by anonymous

Hello,

Since FW 7.0.0 the have been changes to the commands regarding data collection and the command for data usage now would be:

ubus call mdcollect get '{"iface_name":"<interface name>","conn_period":"<day, week,month","sim":<1, 2>}'

An example for this moths data usage for sim 1 would be:

ubus call mdcollect get '{"iface_name":"wwan0","conn_period":"month","sim":1}'

The values would need to added together and then converted to your favorite format.

Regards,

Paulius

 

by anonymous
It works. Great.

Many Thank's