[GE users] Assigning custom complex attributes values to hosts

templedf dan.templeton at sun.com
Wed Aug 12 18:57:18 BST 2009


Off the top of my head...

#!/bin/sh
for host in `qhost | tail +4`; do
qconf -aattr exechost complex_values os_distro=`ssh $host uname -s` $host
ssh $host ls /path/to/compilers
[ $? -ne 0 ]
compilers_available=$?
qconf -aattr exechost complex_values 
compilers_available=$compilers_available $host
done

Daniel

emallove wrote:
> Hi,
>
> I added a couple custom complex attributes via "qconf -mc": 
>
>   $ qconf -sc global
>   #name                  shortcut    type        relop requestable consumable default  urgency
>   #--------------------------------------------------------------------------------------------
>   ...
>   compilers_available    compiler    RESTRING    ==    YES         NO         NONE     0
>   os_distro              distro      RESTRING    ==    YES         NO         NONE     0
>   ...
>
> I want to be able to qsub a script, and have it run, e.g., on a
> RedHat5 host which has the PGI compilers available:
>
>   $ qsub -l os_distro=redhat5 -l compilers_available=pgi foo.sh
>
> How do I set my user-defined complex attributes for each host in my
> cluster?
>
> -Ethan
>
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=212029
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
>

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

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



More information about the gridengine-users mailing list