Community discussions

MikroTik App
 
oguruma
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Jun 04, 2022 8:55 pm

Monitor bandwidth usage per period?

Wed Aug 03, 2022 6:45 am

If I have an LtAP using LTE, is there a way to have RouterOS meter that data usage for each SIM card, over a certain period of time (as in, when the cellular provider's billing cycle runs) and preferrably send reports via email/SMS/webhook/curl?
 
accarda
Member Candidate
Member Candidate
Posts: 214
Joined: Fri Apr 05, 2019 4:06 pm
Location: Italy

Re: Monitor bandwidth usage per period?

Wed Aug 03, 2022 9:26 am

You can do it by creating a script in your router to account for all LTE traffic inbound/outbound for the given period.
However, differently than for ethernet interfaces, LTE does reset all counters every time the session is restarted due to connection lost and re-established.
Also you need to take care to save temp data permanently when router is rebooted before sampled period, otherwise your count will be wrong anyway.