Linux command
sacctmgr 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show
sacctmgr show configuration
Add
sacctmgr add cluster [cluster_name]
Add
sacctmgr add account [account_name] cluster=[cluster_name]
Add
sacctmgr add user [username] account=[account_name] cluster=[cluster_name]
Show
sacctmgr show account format=Account%20,Description%30
Show
sacctmgr show qos
Dump
sacctmgr dump [cluster_name] file=[output.cfg]
Modify
sacctmgr modify user where name=[username] set qos=[qos_name]
说明
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. Account information is recorded based on associations, which combine user, cluster, partition, and account parameters. Entity types that can be managed include: accounts, users, clusters, associations, QOS (Quality of Service), resources, reservations, coordinators, federations, and TRES (trackable resources).
参数
- show / list
- Display information about accounts, clusters, users, associations, QOS, etc.
- add / create
- Add new accounts, clusters, users, or QOS to the database.
- modify
- Modify existing entries.
- delete / remove
- Remove entries from the database.
- dump
- Export cluster association data to a file.
- load
- Import cluster association data from a file.
- archive dump / archive load
- Archive or restore database records to/from flat files.
- ping
- Test connection to the slurmdbd daemon.
- reconfigure
- Reconfigure the SlurmDBD daemon.
- -i, --immediate
- Commit changes without asking for confirmation.
- -n, --noheader
- Omit header from output.
- -p, --parsable
- Pipe-delimited output with trailing pipe.
- -P, --parsable2
- Pipe-delimited output without trailing pipe.
- -Q, --quiet
- Suppress non-error messages.
- -r, --readonly
- Prevent any modifications (interactive mode).
- -s, --associations
- Display user associations when showing users.
- -v, --verbose
- Enable detailed output.
- --json
- Output in JSON format.
- --yaml
- Output in YAML format.
FAQ
What is the sacctmgr command used for?
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. Account information is recorded based on associations, which combine user, cluster, partition, and account parameters. Entity types that can be managed include: accounts, users, clusters, associations, QOS (Quality of Service), resources, reservations, coordinators, federations, and TRES (trackable resources).
How do I run a basic sacctmgr example?
Run `sacctmgr show configuration` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does show / list do in sacctmgr?
Display information about accounts, clusters, users, associations, QOS, etc.