2017-09-08 02:14:21 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: status - Command
|
2017-09-08 02:14:21 +00:00
|
|
|
description: |-
|
|
|
|
The "status" command prints the current state of Vault including whether it is
|
|
|
|
sealed and if HA mode is enabled. This command prints regardless of whether
|
|
|
|
the Vault is sealed.
|
|
|
|
---
|
|
|
|
|
|
|
|
# status
|
|
|
|
|
|
|
|
The `status` command prints the current state of Vault including whether it is
|
|
|
|
sealed and if HA mode is enabled. This command prints regardless of whether the
|
|
|
|
Vault is sealed.
|
|
|
|
|
|
|
|
The exit code reflects the seal status:
|
|
|
|
|
|
|
|
- 0 - unsealed
|
|
|
|
- 1 - error
|
|
|
|
- 2 - sealed
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Check the status:
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-09-08 02:14:21 +00:00
|
|
|
$ vault status
|
|
|
|
Sealed: false
|
|
|
|
Key Shares: 5
|
|
|
|
Key Threshold: 3
|
|
|
|
Unseal Progress: 0
|
|
|
|
Unseal Nonce:
|
|
|
|
Version: x.y.z
|
|
|
|
Cluster Name: vault-cluster-49ffd45f
|
|
|
|
Cluster ID: d2dad792-fb99-1c8d-452e-528d073ba205
|
|
|
|
|
|
|
|
High-Availability Enabled: false
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2018-02-12 23:12:16 +00:00
|
|
|
The following flags are available in addition to the [standard set of
|
2020-01-22 20:05:41 +00:00
|
|
|
flags](/docs/commands) included on all commands.
|
2018-02-12 23:12:16 +00:00
|
|
|
|
|
|
|
### Output Options
|
|
|
|
|
|
|
|
- `-format` `(string: "table")` - Print the output in the given format. Valid
|
|
|
|
formats are "table", "json", or "yaml". This can also be specified via the
|
2020-01-18 00:18:09 +00:00
|
|
|
`VAULT_FORMAT` environment variable.
|