That very simple script works well under MT2.9x:
/queue simple set [/queue simple find max-limit=64000/256000] max-limit=128000/512000
but does not work under MT3.x, why? what i have to change?
[/queue simple find max-limit="64000/256000"
Thank you for answer.
I have another similar problem. I wold like to change target addresses of simple queues. How to modify that script? For instance i would like to change all addresses 192.168.4.x to 192.168.5.x (where x=1 to 254 but not all are used).
I will not write the whole script
:foreach i in=[/queue simple find] do={
:local addr [/queue simple get $i target-address];
# find the third number in addr and replace it with 5
}
:local addr [/queue simple get $i target-address];
what is :local addr ??
It means that local variable ‘addr’ is declared. And variable gets value returned from get
Please check the scripting manual
http://wiki.mikrotik.com/wiki/Scripting