|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Disable Queue Manager |
« View previous topic :: View next topic » |
Author |
Message
|
SAFraser |
Posted: Tue Aug 17, 2010 12:16 pm Post subject: Disable Queue Manager |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
I need to shut down a queue manager. It will be deleted in three months or so. During the time when it is quiesced but still exists, I need to ensure that the queue manager cannot be restarted with the strmqm command. However, I also need to ensure that the queue manager can be restored to a "startable" state very quickly.
How do I disable the queue manager in such a way so that it can be reenabled quickly?
My first thought was to rename the qm.ini file. That does stop the queue manager from restarting. After restoring the name of qm.ini file, I can restart the queue manager. But, when I then tried to delete the queue manager, it was not clean. (I had to remove qmgrs/<qmgr> directory manually, and I has to remove the qmgr reference in mqs.ini.) That made me nervous.
Ideas? |
|
Back to top |
|
 |
exerk |
Posted: Tue Aug 17, 2010 12:23 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Comment out its entries in mqs.ini to make it 'invisible'. The strmqm command parses that file and will return AMQ8118: WebSphere MQ queue manager does not exist. - on V6.0 at least!
EDIT: Red letter day! For once I was quicker on the draw than my venerable master! Perhaps the 'venerable' aspect is beginning to tell on him  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Last edited by exerk on Tue Aug 17, 2010 12:27 pm; edited 1 time in total |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 17, 2010 12:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
How about a chmod of the /var/mqm/qmgr/<name> file system or part thereof so that the mqm user id no long has access? Or just the ini file?
I suppose it depends on if you want the queue manager not to start, or shout "Arrgh!!!!" & pitch forward into the dirt a few seconds after the strmqm is issued. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Aug 17, 2010 12:25 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Ooooh, this should be fun!
Comment out the stanza(s) in the mqs.ini file for the qmgr. Although I've not tried this, I'd expect to receive a qmgr not found rc. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
SAFraser |
Posted: Tue Aug 17, 2010 1:02 pm Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
Ah, exerk, you are as venerated as they come, in my book. You and bruce2359 are correct: The queue manager is not found after commenting its entries in mqs.ini. After restoring the entries, the queue manager restarted without error. I was able to delete it, too. Excellent solution!
I think we will pass on the dirt eating thing, Vitor.  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 17, 2010 2:58 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
SAFraser wrote: |
I think we will pass on the dirt eating thing, Vitor.  |
Any solution that works for you works for me.
I just enjoy being cruel to software. Since exerk joined that union....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|