How to generate a usage report from SLURM: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= General = SLURM provides the <code>sreport</code> command to generate reports. = Use cases = == Getting usage report for specific users == The default usage is given in...") |
m (Added categories) |
||
Line 24: | Line 24: | ||
For all users, do not specify the list of users: | For all users, do not specify the list of users: | ||
$ sreport cluster AccountUtilizationByUser -t Hours Start=2022-01-01 | $ sreport cluster AccountUtilizationByUser -t Hours Start=2022-01-01 | ||
[[Category:Guides]] | |||
[[Category:How-Tos]] |
Revision as of 21:57, 20 September 2023
General
SLURM provides the sreport
command to generate reports.
Use cases
Getting usage report for specific users
The default usage is given in minutes, to get it in hours use the -t Hours
option.
For user1 and user2, starting from Jan 1st, 2022 until now:
$ sreport cluster AccountUtilizationByUser -t Hours Users=user1,user2 Start=2022-01-01 -------------------------------------------------------------------------------- Cluster/Account/User Utilization 2022-01-01T00:00:00 - 2022-08-18T23:59:59 (19868400 secs) Usage reported in CPU Hours -------------------------------------------------------------------------------- Cluster Account Login Proper Name Used Energy --------- --------------- --------- --------------- ---------- -------- arc-admin all user1 user1 545651 0 arc-admin all user2 user2 264997 0
For all users, do not specify the list of users:
$ sreport cluster AccountUtilizationByUser -t Hours Start=2022-01-01