Monthly traffic monitor?

Hi,

I am on a limited monthly traffic plan.

How can I monitor how many MB/GB (download, upload and combined) have been transferred through a particular network interface (e.g. LTE) for the accounting period and since last billing date? (the MikroTik device is not powered all the time)

There's no way to do this on its own; use the app or the web provided by your internet provider.

Otherwise, learn the very advanced scripting™ and collect statistics.

How can I learn and do this?

There was a script exactly for that purpose which I used when we still had lte connection in France.
Was something with kid control and so ...

Search might retrieve it...

Found it ...

Thanks for the link but are you sure this is the correct post or is it any of the follow-ups?

Somewhere in that thread.
Maybe the very first post or so ?

You could do something too instead of only asking...

Try also checking the Graphing tools. Cant help you further since its been a long time without using it, but I recall it allowed to store some data on disk

I have searched and I didn’t find. Therefore I ask.

I have asked how I can learn to do this as well.

What else do you suggest for one to do?

Very likely the looked for script is this one:

OR this one:

Thank you. I will explore those links.

It seems those are more advanced tools.

I need something very simple:

  • Traffic since date X
  • Auto rotate the number on date X (every month)

You always ignore my replies, like in the other email thread, but there's no other solution... no point beating around the bush...

(the MikroTik device is not powered all the time)

That will make it almost impossible. The counters are reset on reboot. You would need an extra device, that is powered all the time, like a computer or Raspberry Pi, which reads the counters frequently (so not much is lost when the device is suddenly switched off) and keeps the values (or in fact the difference in values) to maintain some bookkeeping. Not trivial at all!

As others already wrote: when your provider has a traffic plan, they probably also provide a way for you to see how much you have already used that month. Use that.

sorry, but with very advanced scripting™ is possible to collect and keep all data, also if the board is off...
(but not if the sim is used on another device...)

In fact, even here in Italy, the provider's website or app shows the traffic used, otherwise how can you regulate it???....

(send also SMS on traffic level...)

Well of course I understand that you could write a scheduled job that runs every minute and keeps its counters in a file in the flash, but that would probably wear out the flash pretty quickly and when not done very carefully there also is the risk of losing the accumulated counters when the device is turned off right at the moment they are updated.

Also an issue is that MikroTik devices have no battery backed up clock, so every time they boot they have incorrect time until the internet connection has been completed and the time synced. That makes it even more difficult…

Also you do not know what is exactly counted as traffic and in the end it is only the provider’s viewpoint that matters, so best to use the provider’s counters. Keeping your own counters only introduces the possibility of disagreement. What is traffic? Is it usable IP payload? Is it total size of frame including headers? Including bitstuffing? Including ECC? Does traffic include unsolicited incoming traffic towards your IP address? The variations are endless…

I understand... I understand... everything can be mitigated, and even the issue of memory consumption is something that since 2007 has never caused me problems in any of the 10,000 or so peripherals I've bought so far...

But that's not the point anyway.

In fact... it also counts the traffic that goes into checking the traffic count on the provider's website...

Oh ~~~, I'm giving myself a headache...

I can call a number and get the account balance both as audio and a message on the display, and that costs me nothing.