Topic
1 reply Latest Post - ‏2013-01-18T08:33:45Z by SystemAdmin
SystemAdmin
SystemAdmin
8524 Posts
ACCEPTED ANSWER

Pinned topic Unix command for listing all the Queues

‏2013-01-08T00:50:42Z |
Hi,

I am planning to automate the cleaning of subscriber queues using shell script. I have created the script to clean a single queue but i want to do it for all the the queues in the queue manager. I need help in writing a unix + mq command to list the total queues so that I will write all these names to a txt file and call the clean script to execute for each and every queue name in the txt file. Please help in this requirement.

Thanks,
Surya
Updated on 2013-01-18T08:33:45Z at 2013-01-18T08:33:45Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    8524 Posts
    ACCEPTED ANSWER

    Re: Unix command for listing all the Queues

    ‏2013-01-18T08:33:45Z  in response to SystemAdmin
    dis q(*)
    Will give you all the queues with queue type.
    Use unix shell scripting to remove unwanted params.

    Regards,
    Pravin