You could probably just pipe 'qstat -f1' through awk to get what you want.
Here is one I use to list any nodes with procs available:

pbsnodes |egrep "^compute|jobs ="|awk '/jobs =/{flag=0;next} flag{print host} 
/^compute/ {flag=1;host=$0;next}'

Our node names are compute-x-y, so that line is grepping for the names or jobs 
if any are running.
You could adapt that to also check that a node has the 'infini' property.


Brian Andrus
ITACS/Research Computing
Naval Postgraduate School
Monterey, California
voice: 831-656-6238




From: mauiusers-boun...@supercluster.org 
[mailto:mauiusers-boun...@supercluster.org] On Behalf Of Edsall, William (WJ)
Sent: Wednesday, March 05, 2014 7:53 AM
To: mauiusers@supercluster.org
Subject: [Mauiusers] view resource availability by properties

Hello list,

 Is it possible to query maui for Current Active/Total Procs filtered by node 
properties?

For example we have a subset of nodes which have infiniband and these nodes 
have the infini property. We would like to be able to determine the amount of 
free (available and or preemptable) CPUs at any given time with this property.

William
_______________________________________________
mauiusers mailing list
mauiusers@supercluster.org
http://www.supercluster.org/mailman/listinfo/mauiusers

Reply via email to