Community discussions

MikroTik App
 
karatha
just joined
Topic Author
Posts: 3
Joined: Sat Jul 17, 2004 2:36 pm
Location: Lábatlan /Hungary

Why dosn't work it?

Sun Sep 03, 2006 2:33 pm

Can somebody tell me why doesn't find the following command any queue?
:put [/queue simple find target-addresses=10.10.12.253/32]

But if I try to find the queue regarding the name of the queue, it is work
:put [/queue simple find name=10.10.12.253]

I can't use "name" for the finding because the name and the target-addresses are not same in every case.
 
User avatar
raivis-v
Frequent Visitor
Frequent Visitor
Posts: 55
Joined: Thu Jul 14, 2005 10:21 am
Location: Latvia, Riga

Re: Why dosn't work it?

Mon Sep 18, 2006 2:47 pm

It is working as it should. It is returning rule number:
[admin@MikroTik] > queue simple print
Flags: X - disabled, I - invalid, D - dynamic
 0    name="queue1" target-addresses=10.10.12.253/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=0/0 total-queue=default-small
[admin@MikroTik] > :put [/queue simple find target-addresses=10.10.12.253/32]
*1
[admin@MikroTik] >