sacctmgr
Manage Slurm accounts, users, and clusters
TLDR
Show current configuration
$ sacctmgr show configuration
Add a cluster to the Slurm database$ sacctmgr add cluster [cluster_name]
Add an account to the Slurm database$ sacctmgr add account [account_name] cluster=[cluster_name]
Show details of users/associations/clusters/accounts with custom format$ sacctmgr show [user|association|cluster|account] format="Account%10" format="GrpTRES%30"
SYNOPSIS
sacctmgr [options] [command]
DESCRIPTION
sacctmgr is the Slurm Account Manager tool for viewing and managing accounts, clusters, and users in the Slurm accounting database. It is essential for configuring multi-user HPC cluster environments.
The tool manages the hierarchical structure of accounts, which controls resource allocation, job prioritization, and usage limits in Slurm-managed clusters.
PARAMETERS
show
Display information about accounts, clusters, users, associationsadd
Add new accounts, clusters, or users to the databasemodify
Modify existing entriesdelete
Remove entries from the databaseformat=
Customize output columns and widthscluster=
Specify which cluster an account belongs to-i, --immediate
Make changes immediately without confirmation
CAVEATS
Requires Slurm database (slurmdbd) to be configured and running. Administrative privileges typically required for modifications. Changes may affect running job scheduling.
