Author |
Message
|
swann |
Posted: Thu Jan 26, 2012 8:06 am Post subject: MQ Port |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
Hi,
I have a unix servers on which three QMs are running.I did a recycle of MQ services and now i need to find the port on which the QM were running.I known the port of only one QM that was using previously.But i qould like to start the listener for that with runmqlsr command but could figure out which port it was using previously.So is there any way to come out of it...Thanks... |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 26, 2012 8:28 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ps -ef should show a list of all of the mq listeners, including the information about the port they are using.
netstat -an | grep -i LISTEN will show all of the open ports on the machine. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 26, 2012 8:35 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
ps -ef should show a list of all of the mq listeners, including the information about the port they are using.
netstat -an | grep -i LISTEN will show all of the open ports on the machine. |
I thought the problem was that the listeners weren't running, and the OP wanted to know what port to use?
I'd find a sender channel that pointed to that queue manager & see what port number was in the conname. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 26, 2012 8:59 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Oh!
Yeah, as of 7.0 and later, at least, there should be mention somewhere in the AMQERR logs of when the listener started up last and what port it used. Likely best to look in the qmgr logs, less noise. |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Jan 26, 2012 2:22 pm Post subject: Re: MQ Port |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
swann wrote: |
I have a unix servers on which three QMs are running.I did a recycle of MQ services and now i need to find the port on which the QM were running. |
Why not just use the normal procedure for starting up the QMs, eg when the system is booted? This should include the correct runmqlsr commands, or the QMs will automatically start the LISTENER objects on the correct ports. _________________ Glenn |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 26, 2012 2:56 pm Post subject: Re: MQ Port |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gbaddeley wrote: |
This should include the correct runmqlsr commands, or the QMs will automatically start the LISTENER objects on the correct ports. |
It should. I rather suspect the OP's boxes are not so configured.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|