Simple Queues with a script

Hello,

First let me start by saying that I have no hair left since I pulled it all out trying to get this to work.

That said, would someone please post an example of a script that will add multiple simple queues. I do not care what the name is. nor do I care what the badwidth/speed is I just want to be able to add 75 simple queues all in the same class C (ie. 192.168.1.x). No matter what I try all I get is a log entry ---- “invalid expression”

Also I do not want to use PCQ.

I have searched the forums as well as the doc’s so I do not need a referal to them.

Thanks

Joe

As easy as that:

:for i from=1 to=75 do={/queue simple add target-address=(192.168.1. . $i . "/32") max-limit=56000}

And to remove all this:

/queue simple remove [find]

Eugene

Thanks that was what I needed!

Joe

Better, also for remove, and target-address do not (longer) exist:

:for i from=101 to=175 do={
    /queue simple add name="queue-$i" target="192.168.1.$i/32" limit-at=64k/64k max-limit=10M/1M priority=6/4 comment="some comment"
}



/queue simple remove [find where comment="some comment"]