[GE users] Setting complex attributes from CLI per host

reuti reuti at staff.uni-marburg.de
Wed Sep 16 10:11:44 BST 2009


Am 16.09.2009 um 02:30 schrieb jonathan_zink:

> Use case:
> A particular application temporarily needs to be restricted from 2  
> hosts.
>
> Two ways to solve this:
> 1. Create a queue with all but the 2 hosts.  User uses qsub -q AllBut2
> 2. Create a complex attribute that is TRUE for those 2 hosts; user  
> uses qsub -l attribute=FALSE to avoid these hosts
>
> I first thought I would pursue #2. In the qmon GUI, I created a  
> complex attribute "hwissue", as BOOL.  Then I tried using the CLI:
> qconf -mattr exechost hwissue TRUE grid153
> but it would give the error:
> The attribute name ("hwissue") and/or value ("TRUE") is invalid.
>
> Of course, I can use
> qconf -me grid153
> to edit the complex attributes for a host, but I would rather not  
> do that a few hundred times.
>
> Is a complex not an attribute?  Is there a way to use the CLI to  
> assign a complex attribute to a set of hosts with a varied set of  
> other complex attributes?

As Mark mentioned, it can be done. But it's only for a single  
machine, and you might need a "for" loop in the shell across all the  
nodes.

-- Reuti

> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do? 
> dsForumId=38&dsMessageId=217409
>
> To unsubscribe from this discussion, e-mail: [users- 
> unsubscribe at gridengine.sunsource.net].

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=217454

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list