Dear Tim,

we are printing this information at login:

cat /etc/profile.d/z-slurminfo.sh:

shopt -q interactive_comments login_shell
if [ $? == 0 ]; then
        #echo this is a login shell
        echo "==="
echo "Your jobs can run with the following account(s) and quality of service (QOS):"
        echo
sacctmgr show user `id -u` withassoc format=user,defaultaccount,account,qos%40s,defaultqos%20s
else
        #echo non-interactive shell
        :
fi

For further details, users should look up the pages in our wiki.

br
Markus


On 01/28/2016 10:45 PM, Timothy Gray wrote:
Hi,

I'm working on moving our clusters from torque/maui to slurm and we have
decided to use QOS to replace the notion of queues that we had in PBS;
however, we are unsure about the best way to reveal available QOS to
users of the cluster. We are trying to be as user friendly as possible
since we have many different skill levels amongst our user base, so we'd
prefer to have a command that will show a user just the relevant
information (things we've set) and allow them to view other options if
they want to, but by default sacctmgr shows everything which is very
unreadable. I was thinking about writing an alias or a wrapper script
called showqos or sqos that would run sacctmgr with the format options
we provide; however I was wondering if anyone has dealt with this
already and can share how they deal with this issue at their site?

On a related note, I noticed that sacct has an environment variable
called SACCT_FORMAT which sets the default formatting string which seems
very useful; does anyone know if there's a good reason why there aren't
more of these variables for sstat, squeue, sinfo, and the various sacct
show/list queries? Is this just on the bottom of a to do list? If so I
may be willing to contribute to get this functionality if it just needs
doing.

Thanks,
Tim Gray​




--
=====================================================
Dr. Markus Stöhr
Zentraler Informatikdienst BOKU Wien / TU Wien
Wiedner Hauptstraße 8-10
1040 Wien

Tel. +43-1-58801-420754
Fax  +43-1-58801-9420754

Email: [email protected]
=====================================================

Reply via email to