one-liner for listing idle nodes

Posted by – April 5, 2009

Following-up to a previous utility script posting, the following one-liner from Tim Cera will also do the trick.

This script (and quite a few others) have been loaded up onto the Gridengine.info Wiki “Utilities” page:
http://wiki.gridengine.info/wiki/index.php/Utilities

#!/bin/sh
qstat -g c -l arch=lx24-amd64 -q all.q | awk 'NR > 2 {sum = sum + $4} END {print sum}'

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>