| Author | 
		  Message
		 | 
		
		  | ashu | 
		  
		    
			  
				 Posted: Mon Feb 11, 2008 4:02 am    Post subject: How to make an existing Qmgr default? | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 11 Nov 2006 Posts: 132
  
  | 
		  
		    
			  
				any pointer is appreciated...   _________________ Ashu
 
 
"It is simple to be Happy but difficult to be Simple" | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Mon Feb 11, 2008 4:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Check out the manual for your platform. Check out MQExplorer manual, Check out the qm.ini stanzas for non windows... zOS will probably be the odd man out... _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ashu | 
		  
		    
			  
				 Posted: Mon Feb 11, 2008 4:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 11 Nov 2006 Posts: 132
  
  | 
		  
		    
			  
				I am on Windows platform and I can make a Qmgr default through the explorer...but I wanted to use the amqmdain command...and this is what it gives me:
 
 
   
	| Code: | 
   
  
	Z:\>amqmdain reg * -c add -s DefaultQueueManager -v name=QM1
 
5724-H72 (C) Copyright IBM Corp. 1994, 2004.  ALL RIGHTS RESERVED.
 
Invalid stanza 'DefaultQueueManager' specified for All Queue Managers
 
 
Z:\> | 
   
 
 
 
where according to the documentation of amqmdain there is a stanza by the name DefaultQueueManager for Websphere MQ leve configuration...    
 
 
P.S I am using MQ v6.0 _________________ Ashu
 
 
"It is simple to be Happy but difficult to be Simple" | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Mon Feb 11, 2008 4:46 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| ashu wrote: | 
   
  
	I am on Windows platform and I can make a Qmgr default through the explorer...but I wanted to use the amqmdain command...and this is what it gives me:
 
 
   
	| Code: | 
   
  
	Z:\>amqmdain reg * -c add -s DefaultQueueManager -v name=QM1
 
5724-H72 (C) Copyright IBM Corp. 1994, 2004.  ALL RIGHTS RESERVED.
 
Invalid stanza 'DefaultQueueManager' specified for All Queue Managers
 
 
Z:\> | 
   
 
 
 
where according to the documentation of amqmdain there is a stanza by the name DefaultQueueManager for Websphere MQ leve configuration...    
 
 
P.S I am using MQ v6.0 | 
   
 
 
 
 
I don't think that asterisk is doing you any favours.
 
 
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/fa15570_.htm?resultof=%22%61%6d%71%6d%64%61%69%6e%22%20 _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ashu | 
		  
		    
			  
				 Posted: Mon Feb 11, 2008 8:20 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 11 Nov 2006 Posts: 132
  
  | 
		  
		    
			  
				
   
	| Quote: | 
   
  
	 amqmdain reg QMgrName | * RegParams 
 
Parameters QMgrName, and * are optional. 
 
  If RegParams is specified alone: Modifies queue manager configuration information in the Windows Registry related to the default queue manager. 
 
  If QMgrName and RegParams are specified: Modifies queue manager configuration information in the Windows Registry related to the queue manager specified by QMgrName. 
 
  If * and RegParams are specified: Modifies WebSphere MQ configuration information in the Windows Registry.  | 
   
 
 
 
This is an extract from the info center mentioned in the post above... DefaultQueueManager is an WebSphere MQ configuration information isn't it     I had also tried without the QMgrName and * with the same result...    _________________ Ashu
 
 
"It is simple to be Happy but difficult to be Simple" | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Feb 12, 2008 1:35 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| ashu wrote: | 
   
  
	I had also tried without the QMgrName and * with the same result...    | 
   
 
 
 
Have you tried with the queue manager name? And no *? _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ashu | 
		  
		    
			  
				 Posted: Tue Feb 12, 2008 3:08 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 11 Nov 2006 Posts: 132
  
  | 
		  
		    
			  
				
   
	| Vitor wrote: | 
   
  
	
   
	| ashu wrote: | 
   
  
	I had also tried without the QMgrName and * with the same result...    | 
   
 
 
 
Have you tried with the queue manager name? And no *? | 
   
 
 
 
Yes I have tried with the Qmgr name too...it did not work... But then I read in the info center that if we have to manipulate the queue manager configuration information then we need to specify the specific QMgr name... and DefaultQueueManager is not a stanza of QMgr configuration but of WebSphere MQ configuration as a whole... isn't it     So I supposed  * would have been a better option...ofcourse these are my conclusions...please tell me if I am wrong... _________________ Ashu
 
 
"It is simple to be Happy but difficult to be Simple" | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ashu | 
		  
		    
			  
				 Posted: Tue Feb 12, 2008 3:11 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Centurion
 
 Joined: 11 Nov 2006 Posts: 132
  
  | 
		  
		    
			  
				This is it: 
 
 
   
	| Code: | 
   
  
	Z:\>amqmdain reg QM1 -c add -s DefaultQueueManager -v name=QM1
 
5724-H72 (C) Copyright IBM Corp. 1994, 2004.  ALL RIGHTS RESERVED.
 
Invalid stanza 'DefaultQueueManager' specified for Queue Manager 'QM1'
 
 
Z:\> | 
   
 
 _________________ Ashu
 
 
"It is simple to be Happy but difficult to be Simple" | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |