|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
renaming a Queue Manager |
« View previous topic :: View next topic » |
Author |
Message
|
Albator |
Posted: Fri Jun 11, 2004 10:28 am Post subject: renaming a Queue Manager |
|
|
 Voyager
Joined: 04 Mar 2004 Posts: 75 Location: Toronto, Canada
|
All,
Is there a way to rename a queue manager?
Regards,
Sas |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Jun 11, 2004 11:07 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Not that I know of.
The way I do it is to 'dump' the queue manager definitions to a flat file (Saveqmgr support pack). Then I delete and recreate the queue manager with a different name and then pipe the output file from the saveqmgr as input to a runmqsc to the new queue manager. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jun 11, 2004 5:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
There is an easy workaround if you are willing to try it.
It will not really rename the queue manager but make it addressable with an other name.
Create an alias for the queue manager
define qr(alias) rqmname(old qmgr name)
That should do the trick. You can now address qmgr alias on that box.
The other work around would be to create an alias on the sender box.
Check out the manuals. They explain about alias in the Queue Remote and intercommunication sections.
Of course like I said this does not truely change your environment.
In dev on a unix box and NOT on windows(because of entries in registry) you could try and rename the path (/var/mqm/qmgrs/<qmgr>) and (/var/mqm/log/<qmgr>) while the queue manager is stopped. Then you need to edit /var/mqm/mqs.ini and adjust the information on the renamed queue manager. Then run dispmq and see if this works for you when restarting the qmgr with the new name.
Now if your OS is OS390 I wouldn't have the slightest idea
Do or do not there is no try (Yoda)
 |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri Jun 11, 2004 11:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
fjb_saper wrote: |
There is an easy workaround if you are willing to try it.
It will not really rename the queue manager but make it addressable with an other name.
Create an alias for the queue manager
define qr(alias) rqmname(old qmgr name)
That should do the trick. You can now address qmgr alias on that box.
|
Well that's only for 'addressing' the QueueManager from another QueueManager in a remote queue definition, NOT for addressing the QueueManager itself on the box it is running on (i.e. MQCONN)
This is the general misconception of the term QueueManager alias...
fjb_saper wrote: |
The other work around would be to create an alias on the sender box.
Check out the manuals. They explain about alias in the Queue Remote and intercommunication sections.
|
This is indeed what QueueManager aliases are all about.
fjb_saper wrote: |
Of course like I said this does not truely change your environment.
In dev on a unix box and NOT on windows(because of entries in registry) you could try and rename the path (/var/mqm/qmgrs/<qmgr>) and (/var/mqm/log/<qmgr>) while the queue manager is stopped. Then you need to edit /var/mqm/mqs.ini and adjust the information on the renamed queue manager. Then run dispmq and see if this works for you when restarting the qmgr with the new name.
|
be sure to make a backup first and do this in a development environment
fjb_saper wrote: |
Now if your OS is OS390 I wouldn't have the slightest idea
Do or do not there is no try (Yoda)
 |
actually this 'rename' trick on OS390 is far 'easier' if there is anything easier on OS390, as QueueManagers run in subsystems and you can 'alter' the addressing of the 'subsystem' underneath.
Have not done this myself, but samples exist on the vienna list archive. _________________ Michael
MQSystems Facebook page |
|
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
|
|
|
|