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


Mark

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

Reply via email to