You'd have to do this within e.g. the system's bashrc infrastructure. The
simplest idea would be to add to e.g. /etc/profile.d/zzz-slurmstats.sh and have
some canned commands/scripts running. That does introduce load to the system
and Slurm on every login, though, and slows the startup of login shells based
on how responsive slurmctld/slurmdbd are at that moment.
Another option would be to run the commands/scripts for all users on some timed
schedule — e.g. produce per-user stats every 30 minutes. So long as the stats
are publicly-visible anyway, put those summaries in a shared file system with
open read access. Name the files by uid number. Now your /etc/profile.d
script just cat's ${STATS_DIR}/$(id -u).
> On Aug 9, 2024, at 11:11, Paul Edmon via slurm-users
> <[email protected]> wrote:
>
> We are working to make our users more aware of their usage. One of the ideas
> we came up with was to having some basic usage stats printed at login (usage
> over past day, fairshare, job efficiency, etc). Does anyone have any scripts
> or methods that they use to do this? Before baking my own I was curious what
> other sites do and if they would be willing to share their scripts and
> methodology.
>
> -Paul Edmon-
>
>
> --
> slurm-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
--
slurm-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]