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