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 » IBM MQ Java / JMS » How to know whether a given QM is default on Windoze

Post new topic  Reply to topic
 How to know whether a given QM is default on Windoze « View previous topic :: View next topic » 
Author Message
yalmasri
PostPosted: Wed Apr 14, 2010 6:32 am    Post subject: How to know whether a given QM is default on Windoze Reply with quote

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
View user's profile Send private message
markt
PostPosted: Wed Apr 14, 2010 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
yalmasri
PostPosted: Fri Apr 16, 2010 10:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Apr 17, 2010 12:30 am    Post subject: Reply with quote

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:
Code:
runmqsc


If there is a default qmgr you can type
Code:
dis qmgr all
end

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
View user's profile Send private message Send e-mail
yalmasri
PostPosted: Sat Apr 17, 2010 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to know whether a given QM is default on Windoze
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.