How do I print simple queues with no target?

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

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 :frowning:

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.

I found a solution, API syntax:

/queue/simple/print ?<target=0

/queue simple> print where invalid !disabled