Hello, This is a request for enlightenment or enhancement, I'll happily take either one. Is there a way to specify the delimiter in scontrol output when dumping everything on one line? And/or to force the display of all possible columns with value=n/a as needed so that the fields will be predictable when parsing this output? And/or to have values with strings containing spaces quoted with ' ' or " "? (I think Reason is the only one with possible spaces) Alternatively if there is a better way to dump bulk information about nodes in an easy to parse format that would work too. sinfo would almost work by specifying the desired options/format but it doesn't seem to be able include a nodes allocated memory, which is what I am trying to summarize to show our overall %MEM utilization. The goal is to turn each line into a python dict for the given node, in case there is a better shortcut to get that. Thanks, jbh
Created attachment 2070 [details] Added ability to display allocated memory from sinfo
Nathan, Please work on a test for this new functionality also.
The modified sinfo option supporting all of the possible fields is in this commit: https://github.com/SchedMD/slurm/commit/bafcb17f768596fd4f97c62791b5ac09891353c8 It will be in Slurm version 15.08.0-pre7 when released, likely in a couple of weeks. This ticket is being left open to add a regression test for the new functionality.
Created attachment 2157 [details] Test for sinfo -O option
Test added here: https://github.com/SchedMD/slurm/commit/69a23df4f0fcfc831e3a7dfed5db4c99f4a3b1d2