hi all
this my script Quota
:local maxBytes 524288;
:local newProfile "slowProfile";
:local userStr [:tostr $user];
:local bytes [/ip hotspot user get [find name="$userStr"] bytes-out];
:local profile [/ip hotspot user get [find name="$userStr"] profile];
:if ($bytes > $maxBytes) do={
:if ($profile != $newProfile) do={
/log info "[DOWNLOAD LIMIT] - $userStr has exceeded $maxBytes bytes downloaded, changing profile";
/ip hotspot user set [find name="$userStr"] profile="$newProfile"
}
}
I want an active remove user after Finished Quota