dcsimg
CLI command to purge a queue
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prakash_Venkatraman
Posted On:   Friday, September 23, 2005 04:42 PM

Hi


How do we purge all the messages through CLI command? I would like to purge messages from Durable subscriber queues. I tried with Queue Purger but it doesn't allow Queue Preicate. So it seems I have to create one Queue Purger job for each subscriber. Instead I am thinking of purging through CLI. Any help?



Thanks


V Prakash

Re: CLI command to purge a queue

Posted By:   Andreas_Mueller  
Posted On:   Saturday, September 24, 2005 05:02 AM

The CLI command is "remove". Look here.


Example:

router1/sys$queuemanager/usage> remove testqueue *

Removes all messages from testqueue. This command is also available in SwiftMQ Explorer in the Viewer frame ("Drain Queue" button).


Another way is the "Multi Queue Purger Job" as described here. It takes a SQL LIKE predicate as the name parameter. To purge all durable subscribers, use "%$%". To purge only durable subscriber queues of client id "xyz" use predicate "xyz$%".
About | Sitemap | Contact