Accounting reports

There are plenty of commands to gather accounting reports about jobs, users and accounts. Here’s some examples:

  • jobs 1

$ sacct -A $ACCOUNT -S 2021-10-01T00:00:00

$ sacct -j $JOB_ID

$ sacct -j $JOB_ID -lp

$ sacct -j $JOB_ID -o JobIDRaw,JobName,NCPUS,MaxRSS,Elapsed

$ sacct -j $JOB_ID --format=User,JobID,ReqMem,MaxRss

$ sacct -j $JOB_ID -o maxrss
  • user 2

$ sreport cluster Utilization start=2021-10-01T00:00:00 end=2021-10-31T23:59:59

If you want “till today” report, you don’t have to specify end= parameter.

  • users (and accounts) 2

$ sreport cluster UserUtilizationByAccount format=Login,Account,Used -t Hours start=2021-10-01T00:00:00 end=2021-10-31T23:59

$ sreport cluster AccountUtilizationByUser format=Login,Account,Used -t Hours Start=2021-10-01T00:00:00
  • accounts list:

Accounts are labs, group of labs (like bioensl) and whole institution (as ensl).

$ sacctmgr list account
1

You can get the complete list of parameters by referring to the sacct manual page (man sacct).

2(1,2)

You can get the complete list of parameters by referring to the sreport manual page (man sreport).