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 » Out of curiosity.....

Post new topic  Reply to topic
 Out of curiosity..... « View previous topic :: View next topic » 
Author Message
mqfrmq
PostPosted: Wed Jul 27, 2005 9:48 pm    Post subject: Out of curiosity..... Reply with quote

Novice

Joined: 08 Dec 2004
Posts: 12

Hi,
I want to know whether there is any command to find out the the default queue manager name in the local system......
As I know, in case of windows 2000, this can be found from either regedit or through MQ Services by clicking on the properties window of each queue manager. This can be found through mqs.ini in case of Unix machine also.
But I want to know, othere than these... is there any specific command which can be given in the command prompt which displays the name of the default queue manger alone...

Thanks,
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Jul 27, 2005 11:39 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

That's the only way
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mr Butcher
PostPosted: Wed Jul 27, 2005 11:56 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

echo DISPLAY QMGR | runmqsc | find "QMNAME"

will return a line with the qmgr name. some other utils may extract the qmgr name from this.
if no defaultqmgr, it will return an empty line
_________________
Regards, Butcher
Back to top
View user's profile Send private message
csmith28
PostPosted: Thu Jul 28, 2005 2:35 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

or simply type runmqsc.

If a default MQManager has been defined you will see something like this:
"Starting MQSC for queue manager *****" where ***** represents the name of the default MQManager.

If you type runmqsc from a command line without specifying an MQManager name and no default MQManager has been designated you will get an error code indicating that the the MQManager is not available or does not exist.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
mqfrmq
PostPosted: Thu Jul 28, 2005 3:02 am    Post subject: Reply with quote

Novice

Joined: 08 Dec 2004
Posts: 12

Hi all,
thanks for the replies.

When I say runmqsc,
C:\>runmqsc
47P8479, 5639-B43 (C) Copyright IBM Corp. 1994, 2001. ALL RIGHTS RESERVED.
Starting MQSeries Commands.
.........
This is what it says, it doesn't show me the default qmgr name.

But when I tried Butcher's option, it clearly showed me the default qmgr name.
C:\>echo DISPLAY QMGR | runmqsc | find "QMNAME"
COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) QMNAME(QM_nex2jjp_asind1)

Thanks again,
Back to top
View user's profile Send private message
clindsey
PostPosted: Thu Jul 28, 2005 6:22 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

FYI, this will only work if the queue manager if running.

Charlie
Back to top
View user's profile Send private message
JT
PostPosted: Thu Jul 28, 2005 8:24 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
When I say runmqsc,
C:\>runmqsc
47P8479, 5639-B43 (C) Copyright IBM Corp. 1994, 2001. ALL RIGHTS RESERVED.
Starting MQSeries Commands.
.........
This is what it says, it doesn't show me the default qmgr name.

You have to take it one step further and issue the command:
Code:
DISPLAY QMGR

This will display a list of parameters, one of which is QMNAME.
Back to top
View user's profile Send private message
mqfrmq
PostPosted: Thu Jul 28, 2005 8:18 pm    Post subject: Reply with quote

Novice

Joined: 08 Dec 2004
Posts: 12

yes JT,
it works.
After saying runmqsc, when I say display qmgr,
it did display the default qmgr name along with the properties.

Thanks again,
Back to top
View user's profile Send private message
csmith28
PostPosted: Thu Jul 28, 2005 10:43 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

csmith28 wrote:
or simply type runmqsc.

If a default MQManager has been defined you will see something like this:
"Starting MQSC for queue manager *****" where ***** represents the name of the default MQManager.

If you type runmqsc from a command line without specifying an MQManager name and no default MQManager has been designated you will get an error code indicating that the the MQManager is not available or does not exist.


Wow, i never noticed this before. In DOS it doesn't echo the MQManager name, just a .

In AIX it actually echo's the MQManager name.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
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 » General IBM MQ Support » Out of curiosity.....
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.