Author |
Message
|
yalmasri |
Posted: Wed Apr 14, 2010 6:32 am Post subject: How to know whether a given QM is default on Windoze |
|
|
Centurion
Joined: 18 Jun 2008 Posts: 110
|
I'm trying to execute something like:
amqmdain reg MY_QM -c display -s DefaultQueueManager
amqmdain reg MY_QM -c display -s AllQueueManagers
But it keeps returning to me this:
Invalid stanza 'xxx' specified for Queue Manager 'MY_MQ'
Any ideas? |
|
Back to top |
|
 |
markt |
Posted: Wed Apr 14, 2010 8:07 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
Code: |
amqmdain reg * -c display -s DefaultQueueManager -v Name |
You can work out the correct values for the -s/-v fields by looking in the registry to see how it's structured (or look in the ini files on a Unix platform). |
|
Back to top |
|
 |
yalmasri |
Posted: Fri Apr 16, 2010 10:55 pm Post subject: |
|
|
Centurion
Joined: 18 Jun 2008 Posts: 110
|
This what gets displayed when I executed the command:
Quote: |
Displaying registry value for Queue Manager '*'
Attribute = Name, Value = MY_QM |
Does that mean MY_QM is the default on the machine where I applied that command? |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Apr 17, 2010 12:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
yalmasri wrote: |
This what gets displayed when I executed the command:
Quote: |
Displaying registry value for Queue Manager '*'
Attribute = Name, Value = MY_QM |
Does that mean MY_QM is the default on the machine where I applied that command? |
Open an MSDOS window. As user in the mqm group run:
If there is a default qmgr you can type
This will get you the information on the qmgr.
If there is no default qmgr the runmqsc command will return an error.
To use it with a qmgr on the box you will have to give the qmgr name unless it is the default qmgr.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
yalmasri |
Posted: Sat Apr 17, 2010 12:46 am Post subject: |
|
|
Centurion
Joined: 18 Jun 2008 Posts: 110
|
fjb_saper,
You are an asset to this forum, my searches always end where your posts start! |
|
Back to top |
|
 |
|