• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

sacctmgr Command Examples in Linux

by Deepika

sacctmgr is a command-line tool that is used to manage Slurm accounts. Slurm is an open-source workload manager that is designed for high-performance computing (HPC) clusters and supercomputers. It is used to schedule, manage and monitor jobs running on a cluster.

The sacctmgr command allows system administrators to create, modify, and delete Slurm accounts. It also allows them to manage user access to these accounts, assign priorities, set up limits on resource usage, and perform other administrative tasks related to Slurm accounts. The command can be used to view detailed information about existing accounts, including their status, users associated with them, and the limits set for each account.

Using the sacctmgr command, system administrators can create and manage accounts on a per-project basis. Each account can have one or more users associated with it, and each user can be granted different levels of access to the account’s resources. This allows system administrators to allocate resources more efficiently and ensure that users have access to the resources they need to complete their work.

The sacctmgr command provides a flexible and customizable interface that allows system administrators to manage accounts in a variety of ways. For example, they can use the -a option to display information about all existing accounts, the -p option to display information about a specific project, and the -M option to assign a user to a specific account.

sacctmgr Command Examples

1. Show current configuration:

# sacctmgr show configuration

2. Add a cluster to the slurm database:

# sacctmgr add cluster cluster_name

3. Add an account to the slurm database:

# sacctmgr add account account_name cluster=cluster_of_account

4. Show details of user/association/cluster/account using a specific format:

# sacctmgr show user|association|cluster|account format="Account%10" format="GrpTRES%30"

Summary

Overall, sacctmgr is a powerful tool for managing Slurm accounts. It provides a comprehensive set of features that allow system administrators to allocate resources more efficiently, manage access to resources more effectively, and ensure that users have the resources they need to complete their work.

Filed Under: Linux

Some more articles you might also be interested in …

  1. cpufreq-info Command Examples in Linux
  2. Ngrok how to share localhost to world
  3. kahlan Command Examples
  4. “az provider” Command Examples (Manage resource providers)
  5. updatedb: command not found
  6. unshadow Command Examples in Linux
  7. dvc: Data Version Control (like git for data)
  8. apt-add-repository Command Examples
  9. gbp Command Examples in Linux
  10. cloud-init Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright