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 » How to find the port for qm?

Post new topic  Reply to topic
 How to find the port for qm? « View previous topic :: View next topic » 
Author Message
rram75
PostPosted: Mon Dec 15, 2003 11:51 pm    Post subject: How to find the port for qm? Reply with quote

Newbie

Joined: 08 Jul 2002
Posts: 4
Location: India

Hi All,

How to find the port in which qmgr is listening??

I created two qmgr in solaris m/c, but i haven't specified any port while creation of qmgr..
Do i need to specify the port ?? if yes pls tell me how i can do that??

Thanks in Advance
RR
Back to top
View user's profile Send private message Send e-mail
Syams
PostPosted: Tue Dec 16, 2003 12:32 am    Post subject: Reply with quote

Novice

Joined: 08 Jul 2003
Posts: 10

You can make the listener for the Queue Manager to run and listen to a particular port. If the listener is running for the specific Queue manager and listening to any port then the Communication with the Queue Manager will happen through it.

Cheers,
Narayan
Back to top
View user's profile Send private message
Leafar
PostPosted: Tue Dec 16, 2003 6:34 am    Post subject: Reply with quote

Acolyte

Joined: 03 Apr 2003
Posts: 74
Location: Buenos Aires

You can star the listener as a program, from the command line
runmqlsr -m QMGR -t TCP -p PORT
If you don't specify a port the 1414 is used by default

or
(UNIX) you can start the listener as a inetd service, defining in the /etc/services file and /etc/inetd.conf file

Saludos
Rafael
Back to top
View user's profile Send private message MSN Messenger
maxis
PostPosted: Tue Dec 16, 2003 7:10 am    Post subject: Reply with quote

Centurion

Joined: 25 Jun 2002
Posts: 144

rram75,


Quote:
How to find the port in which qmgr is listening??



use ps command in conjunction with grep you should see what youre looking ..

ps -ef | grep run*

Assuming that youre using runmqlsr command to start the listener


M
Back to top
View user's profile Send private message
csmith28
PostPosted: Tue Dec 30, 2003 11:14 am    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

The default if not specified is port 1414. Aternately you can manually run the runmqlsr process as stated before but if this listener is needed all the time you will have to create your own MQSeries start up script to start all the listener process you need.

Alternately you may put entries in /etc/services that tell the OS what ports MQSeries should listen on for example:

/etc/services:mqseries 4501/tcp
/etc/services:mqseries 4502/tcp

This way you can continue to use the default endmqm and strmqm scripts to stop and start the Managers.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
jsware
PostPosted: Tue Dec 30, 2003 12:57 pm    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

You can add a stanza in the qm.ini for each qmgr:

TCP:
Port=14141

or whatever port number you use. You can then, from your start script issue:

echo "START LISTENER"|runmqsc QMGR1

This will start the listener for "QMGR1" qmgr using the "new" default port number of 14141. Select a different port number for other qmgrs.

NB: If you do this you MUST specify the port number on all channels otherwise MQ will attempt to connect on its "new" port number.
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
SnowDragon
PostPosted: Wed May 12, 2004 6:25 am    Post subject: Follow up to original question Reply with quote

Guest




Hello,
In Windows OS one can open the services mmc snapin and view the listener (and eventually port) for each QMgr.

Is there ANY command line utility which lets one get this info? (preferably through MQSC commands, though I've pretty much exhausted this option).

Assume I'm not the one running the listeners, so any solutions mentioned earlier concerning control of paramters to runmqlsr are irrelevant.

Furthermore, The solution of "ps -ef | grep run* " will not give me the QMgr name for each port, I'll just see runmqlsr.exe (on windows for example using fport and not ps).

Thanks.
Back to top
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to find the port for qm?
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.