---
title: Charmhub | Deploy slurmctld using Charmhub - The Open Operator Collection
description: Deploy the latest version of slurmctld on any cloud.
url: https://charmhub.io/slurmctld/actions
---

# slurmctld

[HPC Charm Team](https://charmhub.io/publisher/hpc-charmers "View all packages from HPC Charm Team")

* [HPC Charm Team](https://charmhub.io/publisher/hpc-charmers "View all packages from HPC Charm Team")

Platform:

26.04

24.04

22.04

20.04

7

25.11/beta 07b39a8

```
juju deploy slurmctld --channel 25.11/beta
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [rotate-auth-key](https://charmhub.io/slurmctld/actions#rotate-auth-key)
* [rotate-jwt-key](https://charmhub.io/slurmctld/actions#rotate-jwt-key)
* [set-node-state](https://charmhub.io/slurmctld/actions#set-node-state)
* [show-current-config](https://charmhub.io/slurmctld/actions#show-current-config)

[Learn about actions >](https://juju.is/docs/juju/action)

* rotate-auth-key

  Perform a cluster-wide rotation of the key used to authenticate Slurm remote procedure calls.
  See: https://documentation.ubuntu.com/charmed-hpc/latest/explanation/key-rotation/#authentication-key-rotation-process

  Example usage:

  ```
  juju run slurmctld/leader rotate-auth-key
  ```
* rotate-jwt-key

  Perform a rotation of the JSON Web Tokens (JWT) key alternative authentication mechanism.
  See: https://documentation.ubuntu.com/charmed-hpc/latest/explanation/key-rotation/#jwt-key-rotation-process

  Example usage:

  ```
  juju run slurmctld/leader rotate-jwt-key
  ```
* set-node-state

  Set the state of the provided nodes so that new jobs can be scheduled..

  **Examples:**

  Set the state of nodes 0 to 19 to idle:

  ```
  $ juju run slurmctld/leader set-node-state nodes='node-[0-19]' state=idle
  ```

  Drain nodes 20 to 24 to prevent new jobs from being scheduled while
  performing routine maintenance:

  ```
  $ juju run slurmctld/leader set-node-state nodes='node[20-24]' state=drain reason="Maintenance"
  ```

  Params

  + nodes
    string

    Node(s) to update the state of, using the Slurm node name format.
    For example, `'node-[1,2]'`.
  + reason
    string

    The reason for the node(s) to be in state "down", "drain", "fail", or "failing".

    This parameter is not required if setting the node(s) state to "idle"
  + state
    string

    State to set for the node(s).

  Required

  nodes,
  state
* show-current-config

  Display the currently used `slurm.conf`.

  Example usage:

  ```
  juju run slurmctld/leader show-current-config \
      --quiet --format=json  | jq .[].results.slurm.conf | xargs -I % -0 python3 -c 'print(%)'
  ```
