| Author | Message | 
		
		  | Michael Dag | 
			  
				|  Posted: Wed Jul 14, 2004 5:00 am    Post subject: amqmdain and listener status |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| went through a number of posts regarding amqmdain and listeners... 
 does anyone know HOW amqmdain knows which listener is running or not?
 is it written to the registry somewhere?
 
 I created 2 listeners and started one of them and amqmdain status Qmgr reports:
 0 Queue Manager (Running)
 1 Command Server (Running)
 2 Channel Initiator (Running)
 3 Listener (Running)
 4 Listener (2) (Stopped)
 
 how does amqmdain 'know' this? ...
 _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | JasonE | 
			  
				|  Posted: Wed Jul 14, 2004 5:20 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 03 Nov 2003Posts: 1220
 Location: Hursley
 
 | 
			  
				| When amqmsrvn kicks off a listener, it starts a thread to monitor its health. This is all kept internally, so you cant get to it... |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Wed Jul 14, 2004 6:27 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | JasonE | 
			  
				|  Posted: Wed Jul 14, 2004 6:33 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 03 Nov 2003Posts: 1220
 Location: Hursley
 
 | 
			  
				| ...and no, it cant be exposed in fixpack 8..... |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Wed Jul 14, 2004 6:37 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| 
   
	| JasonE wrote: |  
	| ...and no, it cant be exposed in fixpack 8..... |  don't worry... I'll find a way...
 _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Wed Jul 14, 2004 3:42 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| 
   
	| JasonE wrote: |  
	| ..., so you cant get to it... |  
 Guess what grew on my kitchen table this evening:
 
 
 
   
	| Code: |  
	| C:\>dir dspmqlsr.exe 07/15/2004  11:25p    28,672 dspmqlsr.exe
 
 C:\>dspmqlsr
 QueueManagers & Listeners configured on W2KPR-LAPTOP1
 
 QMNAME(QMGRA)                                            STATUS(Ended normally)
 Command Server                                           STATUS(Stopped)
 Channel Initiator                                        STATUS(Stopped)
 Listener                        on Port 1414             STATUS(Stopped)
 QMNAME(QMGRB)                                            STATUS(Ended normally)
 Command Server                                           STATUS(Stopped)
 Channel Initiator                                        STATUS(Stopped)
 Listener                        on Port 24240            STATUS(Stopped)
 QMNAME(WBI)                                              STATUS(Running)
 Command Server                                           STATUS(Running)
 Channel Initiator                                        STATUS(Running)
 Listener                        on Port 14999            STATUS(Running)
 Listener (2)                    on Port 4132             STATUS(Stopped)
 
 |  
 
       
 (my 700th post!!!)
 _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | RogerLacroix | 
			  
				|  Posted: Wed Jul 14, 2004 8:52 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 15 May 2001Posts: 3265
 Location: London, ON  Canada
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Wed Jul 14, 2004 10:33 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| 
   
	| RogerLacroix wrote: |  
	| So, are you going to share your creation?   
 |  I can not say right now it is part of a 'bigger' picture project I am doing,
 if that fails. I might release some components in another way...
 
 the whole point was, if this can grow on my kitchen table with a little VB,
 a little google, a number of WMQ commands and a little magic you can build this in a couple of hours...
 What if you have all the WMQ expertise and source code available???
  _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Thu Jul 15, 2004 12:52 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| 
   
	| RogerLacroix wrote: |  
	| So, are you going to share your creation?   |  actually just had a wicked thought...
   I would be willing to 'donate' my source to IBM, so someone could 're-build' it with access to the original sources and put it in the product...
 
 any takers?
  _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | PeterPotkay | 
			  
				|  Posted: Thu Jul 15, 2004 7:51 pm    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 15 May 2001Posts: 7723
 
 
 | 
			  
				| Actually, the name dspmqlsr is a bit modest, no? Its not showing just the listener(s). What your program is showing is what dspmq should be returning.
 
 Also, maybe look for running trigger monitors too?
 _________________
 Peter Potkay
 Keep Calm and MQ On
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Thu Jul 15, 2004 11:18 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| 
   
	| PeterPotkay wrote: |  
	| Actually, the name dspmqlsr is a bit modest, no? |  well it started with the intend to show the qmgrs, listeners, ports.
 so thats' why i came up with dspmqlsr.
 
 then found out there was no way to capture the listener status from
 the registry and the only way was to 'embed' amqmdain status output.
 as amqmdain was showing a lot more then just the listeners and there
 was no way to just show the listeners only ....
  I decided to throw in de command server and channel initiator as well...
 
 As I did not have a Trigger monitor configured I missed that one!!!
   
 So I added a couple of Trigger Monitors and another Channel Initiator and changed the code a bit after your hint (Thanks!!!)
 and now the output looks like this:
 
 
 
   
	| Code: |  
	| C:\>dspmqlsr QueueManagers & Listeners configured on W2KPR-LAPTOP1
 
 QMNAME(QMGRA)                                            STATUS(Ended normally)
 Command Server                                           STATUS(Stopped)
 Channel Initiator                                        STATUS(Stopped)
 Listener                        on Port 1414             STATUS(Stopped)
 QMNAME(QMGRB)                                            STATUS(Ended normally)
 Command Server                                           STATUS(Stopped)
 Channel Initiator                                        STATUS(Stopped)
 Listener                        on Port 24240            STATUS(Stopped)
 QMNAME(WBI)                                              STATUS(Running)
 Command Server                                           STATUS(Running)
 Channel Initiator                                        STATUS(Running)
 Trigger Monitor                                          STATUS(Stopped)
 Channel Initiator (2)                                    STATUS(Stopped)
 Trigger Monitor (2)                                      STATUS(Stopped)
 Listener                        on Port 14999            STATUS(Running)
 Listener (2)                    on Port 4132             STATUS(Stopped)
 
 C:\>dspmqlsr -m WBI
 QueueManagers & Listeners configured on W2KPR-LAPTOP1
 
 QMNAME(WBI)                                              STATUS(Running)
 Command Server                                           STATUS(Running)
 Channel Initiator                                        STATUS(Running)
 Trigger Monitor                                          STATUS(Stopped)
 Channel Initiator (2)                                    STATUS(Stopped)
 Trigger Monitor (2)                                      STATUS(Stopped)
 Listener                        on Port 14999            STATUS(Running)
 Listener (2)                    on Port 4132             STATUS(Stopped)
 |  _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | JasonE | 
			  
				|  Posted: Fri Jul 16, 2004 1:38 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 03 Nov 2003Posts: 1220
 Location: Hursley
 
 | 
			  
				| 
   
	| Quote: |  
	| I would be willing to 'donate' my source to IBM, so someone could 're-build' it with access to the original sources and put it in the product... |  
 Nice offer, thanks, but something I personally cant take you up on. How about a compromise and putting an exe version on the software repository?
  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Fri Jul 16, 2004 2:49 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| 
   
	| JasonE wrote: |  
	| Nice offer, thanks, but something I personally cant take you up on. How about a compromise and putting an exe version on the software repository?
  |  as said this is part of a 'bigger picture' project and just a small part of it,
 so in order to support (the magic word!!!) it properly, I can not afford to spend time on it.
 
 a Counter offer... in the next FP, 'sneak' in the Port number on the amqmdain status output...
       That'll almost give the same result in content...
 _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Mon Nov 14, 2005 2:19 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| If there is any interest in the **** program, mail me on user **** on my domain .com (see my profile) 
 program is supplied "AS IS" no support promised, but misbehaviour reports are welome
  _________________
 Michael
 
 
   
 MQSystems Facebook page
 
 Last edited by Michael Dag on Fri Aug 31, 2007 4:40 am; edited 1 time in total
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Fri Aug 31, 2007 4:33 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| I stumbled upon some old VB6 code and thought of refurbishing to Java... 
 
 
   
	| Code: |  
	| C:\xdspmq>dir
 Volume in drive C has no label.
 Volume Serial Number is 9403-848E
 
 Directory of C:\xdspmq
 
 08/31/2007  02:38p      <DIR>          .
 08/31/2007  02:38p      <DIR>          ..
 08/26/2007  04:23p              36,619 NetRexxR.jar
 08/31/2007  02:14p              20,327 xdspmq.class
 2 File(s)         56,946 bytes
 
 |  
 
 
 
   
	| Code: |  
	| C:\xdspmq>java -cp .;NetRexxR.jar xdspmq -m ALL
 
 xdspmq 1.0.0
 Fri Aug 31 14:14:53 CEST 2007 by mqsiuser
 
 Hostname                 W2KPR-GUEST-01
 Name                     WebSphere MQ
 Version                  530.13  CSD13
 CMVC level               p530-13-L061220
 BuildType                IKAP - (Production)
 Default QueueManager     UQMGR11
 
 QMNAME(BQMGR11)                                     STATUS(Running)
 Command Server                                     STATUS(Running)
 Channel Initiator                                  STATUS(Running)
 Trigger Monitor                                    STATUS(Stopped)
 QMNAME(UQMGR11)                                     STATUS(Ended unexpectedly)
 Command Server                                     STATUS(Stopped)
 Channel Initiator                                  STATUS(Stopped)
 QMNAME(WMQMGR1)                                     STATUS(Running)
 Command Server                                     STATUS(Running)
 Channel Initiator                                  STATUS(Running)
 Listener                on Port 1414               STATUS(Running)
 Listener (2)            on Port 1433               STATUS(Stopped)
 Trigger Monitor                                    STATUS(Stopped)
 Channel - AAA                                      STATUS(Stopped)
 
 
 C:\xdspmq>java -cp .;NetRexxR.jar xdspmq -m ALL
 
 xdspmq 1.0.0
 Fri Aug 31 14:15:04 CEST 2007 by mqsiuser
 
 Hostname                 W2KPR-GUEST-01
 Name                     WebSphere MQ
 Version                  530.13  CSD13
 CMVC level               p530-13-L061220
 BuildType                IKAP - (Production)
 Default QueueManager     UQMGR11
 
 QMNAME(BQMGR11)                                     STATUS(Running)
 Command Server                                     STATUS(Running)
 Channel Initiator                                  STATUS(Running)
 Trigger Monitor                                    STATUS(Stopped)
 LogPrimaryFiles          3
 LogSecondaryFiles        2
 LogFilePages             256
 LogType                  CIRCULAR
 LogBufferPages           0
 LogPath                  C:\WMQ\log\BQMGR11\
 LogWriteIntegrity        TripleWrite
 
 QMNAME(UQMGR11)                                     STATUS(Ended unexpectedly)
 Command Server                                     STATUS(Stopped)
 Channel Initiator                                  STATUS(Stopped)
 LogPrimaryFiles          13
 LogSecondaryFiles        50
 LogFilePages             4095
 LogType                  LINEAR
 LogBufferPages           0
 LogPath                  F:\Program Files\IBM\Websphere MQ\log\UQMGR11\
 LogWriteIntegrity        TripleWrite
 
 QMNAME(WMQMGR1)                                     STATUS(Running)
 Command Server                                     STATUS(Running)
 Channel Initiator                                  STATUS(Running)
 Listener                on Port 1414               STATUS(Running)
 Listener (2)            on Port 1433               STATUS(Stopped)
 Trigger Monitor                                    STATUS(Stopped)
 Channel - AAA                                      STATUS(Stopped)
 LogPrimaryFiles          4
 LogSecondaryFiles        4
 LogFilePages             256
 LogType                  CIRCULAR
 LogBufferPages           0
 LogPath                  C:\WMQ\log\WMQMGR1\
 LogWriteIntegrity        TripleWrite
 
 C:\xdspmq>
 
 |  
 This code currently only 'works' on Windows (haven't gotten around to trying on Linux, AIX, Solaris...)
 
 program is supplied "AS IS" no support promised, but misbehaviour reports are welcome
   
 If there is any interest in the xdspmq program, mail me on user xdspmq on my domain .com (see my profile)
 _________________
 Michael
 
 
   
 MQSystems Facebook page
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |