| Author | 
		  Message
		 | 
		
		  | Maximus | 
		  
		    
			  
				 Posted: Tue Dec 15, 2009 6:20 am    Post subject: Alter namelist... | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 14 Jun 2004 Posts: 57
  
  | 
		  
		    
			  
				Hi Guys,
 
 
Is there a way to alter a namelist in order to add a name to the list without erasing the one currently on the list?
 
 
When I do "alter namelist(testnl) names(name3)" it erases the previous entries which where "name1" and "name2".
 
 
I know that I could display the current names and then do an alter with the current names and adding the new one. But this would work for a manual process. I would like to automate the process using scripts that's why I am looking for a way to add a name or delete one, without affecting the current names in the list.
 
 
Thanks. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Dec 15, 2009 10:23 am    Post subject: Re: Alter namelist... | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| Maximus wrote: | 
   
  
	Is there a way to alter a namelist in order to add a name to the list without erasing the one currently on the list?
 
 
When I do "alter namelist(testnl) names(name3)" it erases the previous entries which where "name1" and "name2". | 
   
 
 
 
AFAIK no - the alter command alters the namelist to the values given in the alter command. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Sam Uppu | 
		  
		    
			  
				 Posted: Tue Dec 15, 2009 12:52 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Yatiri
 
 Joined: 11 Nov 2008 Posts: 610
  
  | 
		  
		    
			  
				alter namelist(testnl) names(name1,nae2,name3)
 
 
should work. You should include both existing and new cluster names in names attribute. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | exerk | 
		  
		    
			  
				 Posted: Tue Dec 15, 2009 1:01 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 02 Nov 2006 Posts: 6339
  
  | 
		  
		    
			  
				
   
	| Sam Uppu wrote: | 
   
  
	| ...You should include both existing and new cluster names... | 
   
 
 
 
Nothing in the original post intimates that the namelist is for cluster-related purposes - don't assume, don't read more into a post than is there because it can taint your advice with mis/preconceptions    _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Maximus | 
		  
		    
			  
				 Posted: Wed Dec 16, 2009 5:10 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 14 Jun 2004 Posts: 57
  
  | 
		  
		    
			  
				Actually its a list of Queues. 
 
 
I know that by doing an alter with the current names and the new one I will accomplish what I want... but it becomes more difficult to script it then just having a way to add or delete entries in the namelist.
 
 
Thanks. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |