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
173 views 1 comments
by anonymous

Hi 

I am using RUT950 with 2 sims installed and the latest firmware RUT9_R_00.07.02.6.  I would like to retrieve the mobile data usage for each SIM (ideally the week-to-date and month-to-date figures).  When I issue the following command, I get results, but the results are the same no matter what conn_period I use.

bus call mdcollect get '{"iface_name":"wwan0","conn_period":"day","sim":2}'

{

        "tx": 95359912,

        "rx": 101624032

}

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

{

        "tx": 95359912,

        "rx": 101624032

}

Have I messed up the command or is there another way to get the traffic stats?

Thanks

Rob

1 Answer

0 votes
by anonymous

Hello,

Try, the following command:

  • ubus call mdcollect get '{"iface_name":"wwan0","period":"day","sim":2, "current":True}'

Best regards,

by anonymous
That works. Thanks so much!!