ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » How to delete all the Local Queues in a Queue Manager

Post new topic  Reply to topic
 How to delete all the Local Queues in a Queue Manager « View previous topic :: View next topic » 
Author Message
Rahul999
PostPosted: Wed May 30, 2007 5:02 am    Post subject: How to delete all the Local Queues in a Queue Manager Reply with quote

Centurion

Joined: 14 Mar 2007
Posts: 134

Hi All,
I have more than 100 local queues in my Queue Manager.
Is there any way i can delete all the Local Queues at one go.
Currenly, my enviroment is windows.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marcin.kasinski
PostPosted: Wed May 30, 2007 5:05 am    Post subject: Re: How to delete all the Local Queues in a Queue Manager Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

You ca do it by writing one mqsc script.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Rahul999
PostPosted: Wed May 30, 2007 5:26 am    Post subject: Reply with quote

Centurion

Joined: 14 Mar 2007
Posts: 134

Hi Marcin,
But again it will involve writing the queue names of all the local queues in the mqsc script.
Is not there any Generic way to delete all the Local Queues.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vitor
PostPosted: Wed May 30, 2007 5:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

So get the script to obtain all the queue names, then use these names to fuel the delete.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Wed May 30, 2007 5:37 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Rahul999 wrote:
Hi Marcin,
But again it will involve writing the queue names of all the local queues in the mqsc script.
Is not there any Generic way to delete all the Local Queues.



You can use saveqmgr to dump QMGR then you can use output to generate "delete" script .
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
tleichen
PostPosted: Wed May 30, 2007 6:49 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

There are system queues and queues that are supplied with the queue manager that are local queues. I doubt that you really want to delete ALL local queues.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed May 30, 2007 12:18 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

The MO71 Support Pack:

Queue List...Refresh...Control Select all the queues you don't care about...click delete once. Buh-bye queues. I once had 3000 temp dyn queues I needed to delete. Took 5 seconds in MO71.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
wschutz
PostPosted: Mon Jun 04, 2007 10:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

marcin.kasinski wrote:
Rahul999 wrote:
Hi Marcin,
But again it will involve writing the queue names of all the local queues in the mqsc script.
Is not there any Generic way to delete all the Local Queues.



You can use saveqmgr to dump QMGR then you can use output to generate "delete" script .

From the saveqmgr readme:


Code:

Here's a little script to delete all the queues that begin with AMQ (even the PERMDYN ones):

export QM=WBRK_QM
./saveqmgr.linux -m$QM -1 -p -c |  grep \(\'AMQ | gawk '{print "delete ql",$3}' | runmqsc $QM

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to delete all the Local Queues in a Queue Manager
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.