Am 17.04.2014 um 19:59 schrieb [email protected]:

> 
> 
> In the message dated: Thu, 17 Apr 2014 09:55:42 -0700,
> The pithy ruminations from Joseph Farran on 
> <[gridengine users] The state of a queue> were:
> => Howdy.
> => 
> => I am able to disabled & enable a queue @ a compute node with:
> => 
> => $ qmod -d bio@compute-1-1
> => me@sys  changed state of "[email protected]" (disabled)
> => 
> => $ qmod -e bio@compute-1-1
> => me@sys changed state of "[email protected]" (enabled)
> => 
> => 
> => But how can I query the state of a queue @ a node?   In other words, how 
> => can I find the state of a queue @ a node without modifying it?    I like 
> => to know if it's disabled or enabled.
> => 
> 
> I'm often interested in finding out which nodes are enabled or disabled, not
> in querying for the state of a particular node.
> 
> To do this, I use these commands:
> 
> List of enabled queues:
>       qstat -f|\
>       sed -n -e "/^---*/d" \
>                -e "/.*d$/d" \
>                -e "s/^\(.*@[^ \.]*\).*/\1/p"|\
>       sort -t "@" -k2
> 
> 
> List of disabled queues:
>       qstat -f|\
>       sed -n -e "/^---*/d" \
>                -e "/.*[^d]$/d" \
>                -e "s/^\(.*@[^ \.]*\).*/\1/p"|\
>       sort -t"@" -k2

As an alternative, `qstat` has an option to filter for queue states:

$ qstat -qs d -f

resp.

$ qstat -qs dD -f

to include Calendar disabled ones. But there is no option to list only queues 
without any issue.

-- Reuti

PS: One could fiddle with `comm -3 <(qstat -f) <(qstat -qs acdosuACDES -f)`


> 
> 
> Mark
> 
> => Thanks,
> => Joseph
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users


_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to