On 23-06-2022 19:19, Miguel Oliveira wrote:
We use a python wrapper to do this but the basic command to retrieved
account minutes is:
'scontrol -o show assoc_mgr | grep "^QOS='+account+’"'
You then have to parse the output for "GrpTRESMins=“. The output will be
two numbers. The first is the limit, or N for no limit, while the next
one in parenthesis is the consumed.
You may perhaps find it easier to use my showuserlimits script from
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/showuserlimits
/Ole