I want to use get command to set these variables name, target, limit…
for a specific item !
like this set name = xxxx , target=xxxx , max= xxx where item = 3 for example
in order to use these variables in another progress like this example :
: local item [the number of the item ] for example the 7th
: local name [get the name of the 7th item in queue simple]
: local target [get the target-addresses of the 7th item in queue simple]
: local max [get the max limit of the 7th item in queue simple]
then do "use it in any other progress like this for example "
/system backup save name=$name-$target-$max
: local name [get the name of the queue that applied to the target addresses 192.168.1.15/32]
: local max [get the max-limit of the queue that applied to the target addresses 192.168.1.15/32]
then do "use it in any other progress like this for example "
/system backup save name=$name-$max
so i may replace 192.168.1.15/32 with a variable like ip
then do loop like ip+1 to get them all
I have a problem now , small one
the names in queues are like this
Sarah Mark
when i use
:local id [/queue simple find target-addresses=“192.168.1.15/32”];
:local name [/queue simple get $id name];
:local max [/queue simple get $id max-limit];
i get these results
name = Sarah
it doesn’t get the whole name !!
and doesn’t get the $max