| Author | 
		  Message
		 | 
		
		  | trifo | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 3:30 am    Post subject: How to query MAX CHANNELS and MAX ACTIVE CHANNELS parameters | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 25 Mar 2008 Posts: 26
  
  | 
		  
		    
			  
				Hi All,
 
 
I've been googling around the world to find a way to query MAX CHANNELS and MAX ACTIVE CHANNELS from an MQ instance. Is there an MQSC command which can show them? Or anything else?
 
 
I would need them to set monitoring alerts when there are too many connections.
 
 
My MQ-s are mostly version 6
 
 
Thanks,
 
 
--Trifo | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 5:46 am    Post subject: mq | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				MQ V6 is long out of support.
 
 
Navigate down the MQ file system to your queue manager name directory.  You will find the qm.ini file.  
 
 
This is from https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.5.0/com.ibm.mq.con.doc/q015750_.htm
 
 
Navigate down the MQ file system to your queue manager directory.  For example, on UNIX:
 
 
/var/mqm/qmgrs/QMNAME/qm.ini
 
 
   
	| Quote: | 
   
  
	An excerpt of a qm.ini file follows. It specifies that the TCP/IP listener is to listen on port 2500, the maximum number of current channels is to be 200, and the maximum number of active channels is to be 100.
 
 
     TCP:
 
       Port=2500
 
     CHANNELS:
 
       MaxChannels=200
 
       MaxActiveChannels=100 | 
   
 
 _________________ I like deadlines. I like to wave as they pass by.
 
ב''ה
 
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | trifo | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 6:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 25 Mar 2008 Posts: 26
  
  | 
		  
		    
			  
				Thanks. 
 
 
But config files may not be consistent with the running qmanager. Is there a way to ask this info from the running instance?
 
 
--Trifo | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rammer | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 6:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Partisan
 
 Joined: 02 May 2002 Posts: 359 Location: England 
  | 
		  
		    
			  
				
   
	| trifo wrote: | 
   
  
	Thanks. 
 
 
But config files may not be consistent with the running qmanager. Is there a way to ask this info from the running instance?
 
 
--Trifo | 
   
 
 
 
Queue Manager reads the config file when it starts...  has your config file changed since Queue Manager was last restarted? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 7:35 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				
   
	| rammer wrote: | 
   
  
	
   
	| trifo wrote: | 
   
  
	Thanks. 
 
 
But config files may not be consistent with the running qmanager. Is there a way to ask this info from the running instance?
 
 
--Trifo | 
   
 
 
 
Queue Manager reads the config file when it starts...  has your config file changed since Queue Manager was last restarted? | 
   
 
 
You could examine the last changed date of the .ini file to see if it has been modified since qmgr startup - which is written to the qmgr error log file. _________________ I like deadlines. I like to wave as they pass by.
 
ב''ה
 
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hughson | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 9:37 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 09 May 2013 Posts: 1967 Location: Bay of Plenty, New Zealand 
  | 
		  
		    
			  
				
   
	| bruce2359 wrote: | 
   
  
	
   
	| rammer wrote: | 
   
  
	
   
	| trifo wrote: | 
   
  
	Thanks. 
 
 
But config files may not be consistent with the running qmanager. Is there a way to ask this info from the running instance?
 
 
--Trifo | 
   
 
 
 
Queue Manager reads the config file when it starts...  has your config file changed since Queue Manager was last restarted? | 
   
 
 
You could examine the last changed date of the .ini file to see if it has been modified since qmgr startup - which is written to the qmgr error log file. | 
   
 
 
QMgr start time is also available in DISPLAY QMSTATUS command. _________________ Morag Hughson @MoragHughson
 
IBM MQ Technical Education Specialist
 
Get your IBM MQ training here!
 
MQGem Software | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rammer | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 9:46 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Partisan
 
 Joined: 02 May 2002 Posts: 359 Location: England 
  | 
		  
		    
			  
				
   
	| hughson wrote: | 
   
  
	
 
QMgr start time is also available in DISPLAY QMSTATUS command. | 
   
 
 
 
Was it available in V6?  I cant remember that far back   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hughson | 
		  
		    
			  
				 Posted: Thu Jun 28, 2018 10:19 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 09 May 2013 Posts: 1967 Location: Bay of Plenty, New Zealand 
  | 
		  
		    
			  
				
   
	| rammer wrote: | 
   
  
	
   
	| hughson wrote: | 
   
  
	
 
QMgr start time is also available in DISPLAY QMSTATUS command. | 
   
 
 
 
Was it available in V6?  I cant remember that far back   | 
   
 
 
Blew the dust off my MQ V6 PDF manuals and found that DISPLAY QMSTATUS is in V6, but that STARTDA and STARTTI are NOT in MQ V6. Doh! _________________ Morag Hughson @MoragHughson
 
IBM MQ Technical Education Specialist
 
Get your IBM MQ training here!
 
MQGem Software | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | PeterPotkay | 
		  
		    
			  
				 Posted: Fri Jun 29, 2018 8:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 15 May 2001 Posts: 7723
  
  | 
		  
		    
			  
				A chance to campaign for some more votes for one of my RFEs:
 
 
http://www.mqseries.net/phpBB2/viewtopic.php?t=66101
 
Request For Enhancement: Have the Queue Manager produce a read only message showing all the parameters its running with _________________ Peter Potkay
 
Keep Calm and MQ On | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | belchman | 
		  
		    
			  
				 Posted: Thu Aug 02, 2018 10:40 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Partisan
 
 Joined: 31 Mar 2006 Posts: 386 Location: Ohio, USA 
  | 
		  
		    
			  
				MQv6? Yikes! Hopefully there are no bad people around. Vulnerabilities abound. _________________ Make three correct guesses consecutively and you will establish a reputation as an expert. ~ Laurence J. Peter | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | gbaddeley | 
		  
		    
			  
				 Posted: Thu Aug 02, 2018 6:54 pm    Post subject: Re: How to query MAX CHANNELS and MAX ACTIVE CHANNELS parame | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia 
  | 
		  
		    
			  
				
   
	| trifo wrote: | 
   
  
	Hi All,
 
I've been googling around the world to find a way to query MAX CHANNELS and MAX ACTIVE CHANNELS from an MQ instance. Is there an MQSC command which can show them? Or anything else?
 
I would need them to set monitoring alerts when there are too many connections.
 
My MQ-s are mostly version 6
 
Thanks,
 
--Trifo | 
   
 
 
No command in current versions of MQ. These values rarely change after the qmgr is created and has been in normal operation for a long time (months, years?). You could set up your alerting on what is seen in qm.ini at the time, rather than trying to query dynamically. _________________ Glenn | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |