Page 1 of 1

How do I print simple queues with no target?

Posted: Fri Oct 09, 2015 3:49 pm
by farahf
I need to print the queues with target=unknown. How should I filter for them?
/queue simple print where target=??
The queue target becomes empty when a client is offline.

Thanks

Re: How do I print simple queues with no target?

Posted: Sat Oct 10, 2015 5:54 am
by strods
What do you mean with traget=unknown? Do you mean target=0.0.0.0/0?

You can not create queue without specifying the target.

Usually to find something what has no value you should use "!".

Example:
"/ip firewall filter print where !src-address"

Re: How do I print simple queues with no target?

Posted: Sat Oct 10, 2015 1:14 pm
by farahf
What do you mean with traget=unknown? Do you mean target=0.0.0.0/0?

You can not create queue without specifying the target.

Usually to find something what has no value you should use "!".

Example:
"/ip firewall filter print where !src-address"

Tried it, did not work :(

Scenario:

I add a simple queue and assign target to a connected PPPoE client. But after the client gets disconnected, the target becomes unknown. I need to clean up any unassigned queues. To find them I need to filter them by the empty target.

Re: How do I print simple queues with no target?

Posted: Mon Oct 12, 2015 4:07 pm
by farahf
I found a solution, API syntax:
/queue/simple/print ?<target=0 

Re: How do I print simple queues with no target?

Posted: Thu Apr 12, 2018 3:36 am
by markdyer
/queue simple> print where invalid !disabled