I'm not sure there is a command to do this is one go.  But...

This command will list all nodes, one per line.
sinfo -Nl -p <queue-name> 


This command will list all the jobs associated with a given node:
squeue -w <node-name>

Adding the "-P" switch puts it in "parsable" mode.  We've just written several 
python scripts to wrap around some commands to give us formats that we want.


> On Apr 27, 2017, at 16:19, Mark London <[email protected]> wrote:
> 
> 
> Hi - I want a method to create a list all the cluster nodes, with one node 
> line per line, and include the job(s) running, for each node.  I haven't 
> quite found a command that will do this.   Before I write a script to do 
> this, I was wondering if someone else has already done this.   Or whether 
> there is a command to do it, that I'm not aware of.  Thanks very much.
> 
> Mark London

Reply via email to