> For the complete documentation index, see [llms.txt](https://docs.enclaive.cloud/virtual-hsm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enclaive.cloud/virtual-hsm/cli/server-and-infrastructure-management/vhsm-status.md).

# vhsm status

The `vhsm status` command displays the current state of vHSM server, including its seal status, key shares, high availability (HA) mode, and other relevant details. This command works regardless of whether the vHSM is sealed.

The exit code indicates the seal status:

* **0** – Unsealed
* **1** – Error
* **2** – Sealed

### Usage

```sh
vhsm status [options]
```

### Example

Check the current vhsm status

```sh
vhsm status
Key             Value
---             -----
Seal Type       shamir
Initialized     true
Sealed          false
Total Shares    1
Threshold       1
Version         1.3.7-0
Build Date      2025-01-29T15:11:42Z
Storage Type    inmem
Cluster Name    vault-cluster-64dcd906
Cluster ID      d36a3be0-d5ae-380d-58ae-ad2a18b01c6c
HA Enabled      false

```

### Options

| Flag                     | Description                                                   | Default |
| ------------------------ | ------------------------------------------------------------- | ------- |
| `-format` (string)       | Specifies the output format: `table`, `json`, or `yaml`.      | `table` |
| `VAULT_FORMAT` (env var) | Sets the output format globally via the environment variable. | `table` |

### Output Fields

| Field                                 | Description                                               | Condition                                |
| ------------------------------------- | --------------------------------------------------------- | ---------------------------------------- |
| `Sealed`                              | Indicates whether vHSM is sealed (`true` or `false`).     | Always displayed.                        |
| `Total Shares`                        | Number of key shares required for unsealing.              | Always displayed.                        |
| `Threshold`                           | Minimum number of key shares required to unseal.          | Always displayed.                        |
| `Unseal Progress`                     | Number of key shares provided so far.                     | Displayed only when vHSM is sealed.      |
| `Unseal Nonce`                        | Nonce used during unsealing.                              | Displayed only when vHSM is sealed.      |
| `Version`                             | Version of vHSM currently running.                        | Always displayed.                        |
| `Build Date`                          | Timestamp of the vHSM build.                              | Always displayed.                        |
| `Cluster Name`                        | Name of the vHSM cluster.                                 | Displayed if available.                  |
| `Cluster ID`                          | Unique identifier of the vHSM cluster.                    | Displayed if available.                  |
| `High-Availability Enabled`           | Indicates if HA mode is enabled.                          | Always displayed.                        |
| `HA Cluster`                          | Shows details about the HA cluster.                       | Displayed when HA mode is enabled.       |
| `HA Mode`                             | Specifies the HA mode (e.g., `active`, `standby`).        | Displayed when HA mode is enabled.       |
| `Active Since`                        | Timestamp indicating when the node became active.         | Displayed for active HA nodes.           |
| `Performance Standby Node`            | Indicates if the node is a performance standby.           | Displayed for performance standby nodes. |
| `Performance Standby Last Remote WAL` | Last known write-ahead log for performance standby nodes. | Displayed for performance standby nodes. |
| `Raft Committed Index`                | The last index committed in Raft storage.                 | Displayed if non-zero.                   |
| `Raft Applied Index`                  | The last index applied in Raft storage.                   | Displayed if non-zero.                   |
| `Last WAL`                            | The last write-ahead log entry in Raft storage.           | Displayed if non-zero.                   |
| `Warnings`                            | Displays relevant warnings, if any.                       | Displayed if applicable.                 |

### Notes

* By default, the output is formatted in a human-readable table format. Use `-format=json` or `-format=yaml` for structured output.
* The `vhsm status` command can be used even if vHSM is sealed, making it useful for debugging and monitoring.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.enclaive.cloud/virtual-hsm/cli/server-and-infrastructure-management/vhsm-status.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
