Hey Guys..
After upgrading to v5.24.. the script that should monitor the amount of bandwidth is not working at all!!
:local traf;
/queue simple
:for i from=1 to=254 do={
:if ([/queue simple find target-addresses=(“10.11.1.” . $i . “/32”)] != “”) do={
:set traf [get [find target-addresses=(“10.11.1.” . $i . “/32”)] total-bytes]
:if ($traf > 524288000) do={
set [find target-addresses=(“10.11.1.” . $i . “/32”)] max-limit=128000/144000 limit-at=128000/144000 burst-limit=128000/256000 burst-threshold=128000/128000 burst-time=32s/32s
}
}
}
The ‘‘Total bytes’’ in simple queue is always 0!!
need your help here guys!!
Thanks
See answer on the original post: http://forum.mikrotik.com/t/script-doesnt-work-after-an-upgrade-to-v4/62863/1