Hi,
I have an issue with active profiles on the mikrotik.
-
Creation of users:
Ex.
/tool user-manager user add customer=Vouchers username=crew150 password=7024 comment=Vouchers-Daily;/tool user-manager user create-and-activate-profile customer=Vouchers profile=Vouchers-Daily "crew150" -
Every night, a scheduler runs to reset all users.
Script:
#Add back actual profile
/tool user user create-and-activate-profile [ find where comment=Vouchers-Daily and actual-profile !=Vouchers-Daily ] customer=Vouchers profile=Vouchers-Daily;
:log info "Add back actual profile.";
Logout and reset all users with profile Vouchers-Daily
/ip hotspot active remove [ find ];
/tool user-manager user reset-counters [ find where actual-profile="Vouchers-Daily" ];
:log info "Daily vouchers reset.";
User details from start, only 1 profile is waiting:
See picture - beginning.jpg
But after a while, I get "dirty" profiles and user can use more data then allowed.
See picture - dirty.jpg
Is this something I can restore with a script?
So after a reset by script the user has only 1 profile?
Thanks in ad,
Koen

