RouterOS API

Hi
I am trying to create a graph report using the API command: /ip/hotspot/active/print

The ByteIn and ByteOut are showing some constant values when a user is not active.
ByteIn is 2260279 and ByteOut is 3735891

What is this values, why it is not Zero when user doesn’t have an activity?
My be there is a default setting that sends these bytes?
Any input is greatly appreciated.


Thanks
Nav

Those aren’t, or at least shouldn’t, be constants.

These are simply the overall bytes that have passed through the router, to that user, since their login, with “bytes-in” being those given to the user (from the internet), and “bytes-out” being those from the user (to the internet).

Those values should only stay constants if the user has not used their connection since your last measurement (e.g. they’re reading a web page or have left their computer), and yet their session has still not expired (via idle timeout).

Try to monitor a user from console (with “/ip hotspot active print stats”) for a while, and then try to keep monitoring them both from API and console, and see if the values remain the same and/or are constants at any time. For the same uptime value, the same bytes-in/bytes-out should be present in both places. If not, chances are this is a RouterOS bug.