hello , im try to make scrpit in que but icant
just iwant make script
same
search in queue simple if he find any que rule contain max-limit=1M/4M
change this queue to max-limit=256K/1M
any one can help me reaaly i`m tring to do it for 5hour but with more mistake ![]()
wow 23 view no answer ithink i`m not bad more in english but ican explain what iwanna to do
iwant scrip same
:local traf;
/queue simple
:for i from=3 to= 254 do = {
:if ([/queue simple find target-addresses=("196.81.56." . $i)] != "") do={
:set traf [get [find target-addresses=("196.81.56." . $i)] total-bytes]
:if ($traf > 1073741824) do = {
set [find target-addresses=("196.81.56." . $i)] max-limit= 81920/122880
}
}
}
but search @ max-limit in rules of queues
if he found max-limit=256K/1M
do= set max-limit (to this rule)=500K/600K
this for example
really i miss this script more
maybe something like
/queue simple
set [ find max-limit=256K/1M ] max-limit=500K/600K
?..
ido it but it doesnt work server said its right but no cange in queues rule
oh, I see. you should use
max-limit="256k/1M"
instead of
max-limit=256K/1M
dosent work 2 :laughing: itired from this script ithink no way ihave 3 day try to do this but icant all thing is k but no change in que
have you changed “K” to “k”? I’ll be at office in 15 minutes and will check again…
here we go, ROS v4.6:
[admin@MikroTik] /queue simple> print
Flags: X - disabled, I - invalid, D - dynamic
0 name="queue1" target-addresses=1.2.3.4/32 dst-address=0.0.0.0/0
interface=all parent=none direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=256k/1M
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small
[admin@MikroTik] /queue simple> set [ find max-limit="256k/1M" ] max-limit=500k/600k
[admin@MikroTik] /queue simple> print
Flags: X - disabled, I - invalid, D - dynamic
0 name="queue1" target-addresses=1.2.3.4/32 dst-address=0.0.0.0/0
interface=all parent=none direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=500k/600k
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small
[admin@MikroTik] /queue simple>
tested on 3.30 work good