| Author | 
		  Message
		 | 
		
		  | morpheus | 
		  
		    
			  
				 Posted: Thu Jul 31, 2003 10:44 am    Post subject: How to check listener | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 08 Mar 2003 Posts: 72 Location: Austin, TX 
  | 
		  
		    
			  
				Hi everybody
 
How can I check whether mq listener is running on Unix os. if it is running on which port?
 
 
 
 
Thank you
 
morpheus | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Leafar | 
		  
		    
			  
				 Posted: Thu Jul 31, 2003 11:13 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 03 Apr 2003 Posts: 74 Location: Buenos Aires 
  | 
		  
		    
			  
				There are two way to define a listener :
 
 
1) - from the command line which the command
 
runmqlsr -m QMGR -t tcp|udp -p PORT
 
 
you can use ps -ef | grep runmqlsr and  if is running you'l see the port
 
 
2) run the listener as a service, defined in the /etc/services file.
 
In this case, you must ask to the system administrator for the name and port, because the name of the service and the port number can be freely chosen | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Prahasith | 
		  
		    
			  
				 Posted: Thu Jul 31, 2003 1:08 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 16 May 2003 Posts: 184 Location: Kansas City 
  | 
		  
		    
			  
				netstat -an | grep LISTEN
 
 
This might help too | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | morpheus | 
		  
		    
			  
				 Posted: Thu Jul 31, 2003 3:46 pm    Post subject: Thank you | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 08 Mar 2003 Posts: 72 Location: Austin, TX 
  | 
		  
		    
			  
				Thank you for the quik replies guys. 
 
Actually I tried both of the above ways. Those commands are giving me a list of ports running. But I need to get the queue managername as well as port number. Please suggest me if you have any ideas.
 
 
Thanx
 
morpheus | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | harwinderr | 
		  
		    
			  
				 Posted: Fri Aug 01, 2003 1:02 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Voyager
 
 Joined: 29 Jan 2002 Posts: 90
  
  | 
		  
		    
			  
				The "ps -ef | grep runmqlsr" command will give you both the queue manager name and the port number.
 
 
For eg:
 
$ ps -ef | grep runmqlsr
 
mqm      32439     1  0 Jul24 ?        00:00:00 runmqlsr -m LONDON -t TCP -p 4444
 
 
Here LONDON is the name of the queue manager and 4444 is the port number,
 
 
Later,
 
HR | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | morpheus | 
		  
		    
			  
				 Posted: Fri Aug 01, 2003 6:23 am    Post subject: Thank you | 
				     | 
			   
			 
		   | 
		
		
		    Acolyte
 
 Joined: 08 Mar 2003 Posts: 72 Location: Austin, TX 
  | 
		  
		    
			  
				Thank you Harwinder
 
It worked.
 
 
 
Later
 
Morpheus | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |