Author |
Message
|
Pavan Kumar PNV |
Posted: Mon Jun 22, 2009 10:32 pm Post subject: MQ Listener on Windows |
|
|
 Acolyte
Joined: 03 Feb 2007 Posts: 66
|
Is there a way to find out the port number of listener on windows without using MQ Explorer? Especially when we have multiple queue managers running and the listeners were not created/started theu the runmqsc interface _________________ _____________
Pavan Pendyala
http://pavanz.blogspot.com |
|
Back to top |
|
 |
jon |
Posted: Mon Jun 22, 2009 10:59 pm Post subject: |
|
|
 Apprentice
Joined: 17 May 2009 Posts: 32
|
Try in the windows Registry at this location -
HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\Services\Qmgrname\Listener |
|
Back to top |
|
 |
Pavan Kumar PNV |
Posted: Mon Jun 22, 2009 11:02 pm Post subject: |
|
|
 Acolyte
Joined: 03 Feb 2007 Posts: 66
|
Just wondering if there was any other way of finding that out .. in case we dont have access to the registry? _________________ _____________
Pavan Pendyala
http://pavanz.blogspot.com |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Jun 22, 2009 11:39 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
|
Back to top |
|
 |
Pavan Kumar PNV |
Posted: Mon Jun 22, 2009 11:48 pm Post subject: |
|
|
 Acolyte
Joined: 03 Feb 2007 Posts: 66
|
Amazing Utility! Thank you. Someone else just mentioned use of netstat -b command as an alternative. _________________ _____________
Pavan Pendyala
http://pavanz.blogspot.com |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Jun 23, 2009 12:08 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
netstat -b is not working on my windows (-b is not a valid option). netstat -a shows the listening port, but not WHO is listening on that port.
however, there are multiple ways to archieve what you want.... _________________ Regards, Butcher |
|
Back to top |
|
 |
Pavan Kumar PNV |
Posted: Wed Jun 24, 2009 3:07 am Post subject: |
|
|
 Acolyte
Joined: 03 Feb 2007 Posts: 66
|
I am running Windows XP V2002, SP 2 and when I did a netstat -b, it got me the who! _________________ _____________
Pavan Pendyala
http://pavanz.blogspot.com |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Jun 24, 2009 3:37 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
DISPLAY LISTENER(*) ALL
2 : DISPLAY LISTENER(*) ALL
AMQ8630: Display listener information details.
LISTENER(LISTENER.TCP) CONTROL(QMGR)
TRPTYPE(TCP) PORT(1514)
IPADDR( ) BACKLOG(0)
DESCR( ) ALTDATE(2009-06-22)
ALTTIME(12.30.10) _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Jun 24, 2009 3:41 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
jon wrote: |
Try in the windows Registry at this location -
HKEY_LOCAL_MACHINE\SOFTWARE\IBM\MQSeries\CurrentVersion\Configuration\Services\Qmgrname\Listener |
I don't see the Listener folder under that tree !!  _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 24, 2009 3:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shashivarungupta wrote: |
DISPLAY LISTENER(*) ALL
2 : DISPLAY LISTENER(*) ALL
AMQ8630: Display listener information details.
LISTENER(LISTENER.TCP) CONTROL(QMGR)
TRPTYPE(TCP) PORT(1514)
IPADDR( ) BACKLOG(0)
DESCR( ) ALTDATE(2009-06-22)
ALTTIME(12.30.10) |
Does that still work if the listener isn't running as a queue manager object, but is still external (e.g. on an upgraded v5.3 queue manager that wasn't reconfigured)? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Jun 24, 2009 3:55 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Vitor wrote: |
shashivarungupta wrote: |
DISPLAY LISTENER(*) ALL
2 : DISPLAY LISTENER(*) ALL
AMQ8630: Display listener information details.
LISTENER(LISTENER.TCP) CONTROL(QMGR)
TRPTYPE(TCP) PORT(1514)
IPADDR( ) BACKLOG(0)
DESCR( ) ALTDATE(2009-06-22)
ALTTIME(12.30.10) |
Does that still work if the listener isn't running as a queue manager object, but is still external (e.g. on an upgraded v5.3 queue manager that wasn't reconfigured)? |
I ended the Listener. As:
C:\>endmqlsr -M EXPERIMENT
A WebSphere MQ listener will end shortly.
(I could have used -w as well, anyways...)
Then I checked...
DISPLAY listener(*) all
2 : DISPLAY listener(*) all
AMQ8630: Display listener information details.
LISTENER(LISTENER.TCP) CONTROL(QMGR)
TRPTYPE(TCP) PORT(1514)
IPADDR( ) BACKLOG(0)
DESCR( ) ALTDATE(2009-06-22)
ALTTIME(12.30.10)
Its there.
Name: WebSphere MQ
Version: 6.0.2.4
CMVC level: p600-204-080509
BuildType: IKAP - (Production)
Have I answered your question or I missed something ?  _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
sumit |
Posted: Wed Jun 24, 2009 3:56 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
Pavan Kumar PNV wrote: |
I am running Windows XP V2002, SP 2 and when I did a netstat -b, it got me the who! |
But, can you see MQ listener in it?
I can see PID for listener using 'tasklist'. May be you can find how you can use it get the listener port. _________________ Regards
Sumit |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Jun 24, 2009 4:06 am Post subject: Re: MQ Listener on Windows |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Pavan Kumar PNV wrote: |
... when we have multiple queue managers running and the listeners were not created/started theu the runmqsc interface... |
Pavan Kumar PNV wrote: |
...netstat -b command as an alternative.... |
I am on Windows XP Professional, SP2. And when ran the netstat -b , i got the info. under following heads.
Proto, Local Address, Foreign Address, State, PID
But then as you said, you created the queue managers but not the listeners (not for all of them) and you wanted to check. In netstat -b you are not getting the name of the queue manager (but the PID). You again have to dig to get the name of the queue manager for the respective port. (To make a match) _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
exerk |
Posted: Wed Jun 24, 2009 4:37 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
shashivarungupta wrote: |
...Have I answered your question or I missed something ?  |
I think my esteemed master meant that if a Listener object has not been configured, then a 'dis listener(*)' will be of no value at all - so, I guess you missed something. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Wed Jun 24, 2009 4:41 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
exerk wrote: |
shashivarungupta wrote: |
...Have I answered your question or I missed something ?  |
I think my esteemed master meant that if a Listener object has not been configured, then a 'dis listener(*)' will be of no value at all - so, I guess you missed something. |
Have I?  _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
|