Request or Suggestion

Hello
I developed control panel using php and mikrotik api some times i need to reset download for active users this operation not include in previous version and I need It necessary in pppoe and hotspot

I used 5 server mikrotik 4.16 and one radius server

It is possible for HotSpot active clients by command,
/ip hotspot user reset-counters [find]
but not for PPPoE users.

thanks sergejs
but i need reset for active hotspot user not hotspot user
and pppoe active connection

As was said, can’t to PPPoE.

You can extend what was posted to just active users by looping through all active users and resetting them one by one:

:foreach USER=[/ip hotspot active find] do={
  :local NAME [/ip hotspot active get $USER user;
  /ip hotspot user reset-counters [/ip hotspot user find name="$NAME";
}