hi all
I want to modify this Script
# Checks if limited users has reached the limit, if they have then set them to be limited slow state.
# Run this script every few minutes.
/ip hotspot user {
# Variables:
:local limitedProfile "1m"
:local limitedSlowProfile "uprof1"
:local trafLimit 2097152
# Code:
:local uList [find profile=$limitedProfile]
:foreach u in=$uList do={
:local traf ([get $u bytes-in] + [get $u bytes-out])
:local uActive [/ip hotspot active find user=[/ip hotspot user get $u name]]
:if ([:len $uActive] != 0) do={
:set traf ($traf + [/ip hotspot active get $uActive bytes-in] + [/ip hotspot active get $uActive bytes-out])
}
:put ("User (" . [get $u name] . ") traf: " . $traf)
:if ($traf > $trafLimit) do={
set $u profile=$limitedSlowProfile
:put ("User (" . [get $u name] . ") reached the traf limit")
:if ([:len $uActive] != 0) do={
/ip hotspot active remove $uActive
:put ("User (" . [get $u name] . ") has been forcefully logged out")
}
:log warning ("User (" . [get $u name] . ") reached the traf limit")
}
}
}
I want to remove limit bytes total from user?
This is the code
/ip hotspot user set [find] limit-bytes-total=0;
plz Help?