Author |
Message
|
rram75 |
Posted: Mon Dec 15, 2003 11:51 pm Post subject: How to find the port for qm? |
|
|
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 |
|
 |
Syams |
Posted: Tue Dec 16, 2003 12:32 am Post subject: |
|
|
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 |
|
 |
Leafar |
Posted: Tue Dec 16, 2003 6:34 am Post subject: |
|
|
 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 |
|
 |
maxis |
Posted: Tue Dec 16, 2003 7:10 am Post subject: |
|
|
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 |
|
 |
csmith28 |
Posted: Tue Dec 30, 2003 11:14 am Post subject: |
|
|
 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 |
|
 |
jsware |
Posted: Tue Dec 30, 2003 12:57 pm Post subject: |
|
|
 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 |
|
 |
SnowDragon |
Posted: Wed May 12, 2004 6:25 am Post subject: Follow up to original question |
|
|
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 |
|
 |
|