mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
* Move commands from docs to its own root-level directory * temporarily use modified dev-portal branch with nomad ia changes * explicitly clone nomad ia exp branch * retrigger build, fixed dev-portal broken build * architecture, concepts and get started individual pages * fix get started section destinations * reference section * update repo comment in website-build.sh to show branch * docs nav file update capitalization * update capitalization to force deploy * remove nomad-vs-kubernetes dir; move content to what is nomad pg * job section * Nomad operations category, deploy section * operations category, govern section * operations - manage * operations/scale; concepts scheduling fix * networking * monitor * secure section * remote auth-methods folder and move up pages to sso; linkcheck * Fix install2deploy redirects * fix architecture redirects * Job section: Add missing section index pages * Add section index pages so breadcrumbs build correctly * concepts/index fix front matter indentation * move task driver plugin config to new deploy section * Finish adding full URL to tutorials links in nav * change SSO to Authentication in nav and file system * Docs NomadIA: Move tutorials into NomadIA branch (#26132) * Move governance and policy from tutorials to docs * Move tutorials content to job-declare section * run jobs section * stateful workloads * advanced job scheduling * deploy section * manage section * monitor section * secure/acl and secure/authorization * fix example that contains an unseal key in real format * remove images from sso-vault * secure/traffic * secure/workload-identities * vault-acl change unseal key and root token in command output sample * remove lines from sample output * fix front matter * move nomad pack tutorials to tools * search/replace /nomad/tutorials links * update acl overview with content from deleted architecture/acl * fix spelling mistake * linkcheck - fix broken links * fix link to Nomad variables tutorial * fix link to Prometheus tutorial * move who uses Nomad to use cases page; move spec/config shortcuts add dividers * Move Consul out of Integrations; move namespaces to govern * move integrations/vault to secure/vault; delete integrations * move ref arch to docs; rename Deploy Nomad back to Install Nomad * address feedback * linkcheck fixes * Fixed raw_exec redirect * add info from /nomad/tutorials/manage-jobs/jobs * update page content with newer tutorial * link updates for architecture sub-folders * Add redirects for removed section index pages. Fix links. * fix broken links from linkcheck * Revert to use dev-portal main branch instead of nomadIA branch * build workaround: add intro-nav-data.json with single entry * fix content-check error * add intro directory to get around Vercel build error * workound for emtpry directory * remove mdx from /intro/ to fix content-check and git snafu * Add intro index.mdx so Vercel build should work --------- Co-authored-by: Tu Nguyen <im2nguyen@gmail.com>
106 lines
3.7 KiB
Plaintext
106 lines
3.7 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: 'nomad server members command reference'
|
|
description: >
|
|
The `nomad server members` command displays a list of servers in the cluster. Review name, address, port, region, datacenter, Raft version, build version, status, tags, and whether the server is the leader.
|
|
---
|
|
|
|
# `nomad server members` command reference
|
|
|
|
The `server members` command displays a list of the known servers in the cluster
|
|
and their current status. Member information is provided by the gossip protocol,
|
|
which is only run on server nodes.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad server members [options]
|
|
```
|
|
|
|
If ACLs are enabled, this option requires a token with the `node:read`
|
|
capability.
|
|
|
|
## Options
|
|
|
|
- `-detailed` (<code>_deprecated_</code> use `-verbose` instead): Dump the
|
|
basic member information as well as the raw set of tags for each member. This
|
|
mode reveals additional information not displayed in the standard output
|
|
format.
|
|
|
|
- `-verbose`: Dump the basic member information as well as the raw set of tags
|
|
for each member. This mode reveals additional information not displayed in
|
|
the standard output format.
|
|
|
|
- `-json`: Output the server members in its JSON format.
|
|
|
|
- `-t`: Format and display the server members using a Go template.
|
|
|
|
- `-ui`: Open the servers page in the browser.
|
|
|
|
## Examples
|
|
|
|
Default view:
|
|
|
|
```shell-session
|
|
$ nomad server members
|
|
Name Address Port Status Leader Raft Version Build Datacenter Region
|
|
server-1.global 10.0.0.8 4648 alive true 3 1.3.0 dc1 global
|
|
server-2.global 10.0.0.9 4648 alive false 3 1.3.0 dc1 global
|
|
server-3.global 10.0.0.10 4648 alive false 3 1.3.0 dc1 global
|
|
```
|
|
|
|
Verbose view:
|
|
|
|
```shell-session
|
|
$ nomad server members -verbose
|
|
Name Address Port Status Leader Protocol Raft Version Build Datacenter Region Tags
|
|
server-1.global 10.0.0.8 4648 alive true 2 3 1.3.0 dc1 global id=46122039-7c4d-4647-673a-81786bce2c23,rpc_addr=10.0.0.8,role=nomad,region=global,raft_vsn=3,expect=3,dc=dc1,build=1.3.0,port=4647
|
|
server-2.global 10.0.0.9 4648 alive false 2 3 1.3.0 dc1 global id=04594bee-fec9-4cec-f308-eebe82025ae7,dc=dc1,expect=3,rpc_addr=10.0.0.9,raft_vsn=3,port=4647,role=nomad,region=global,build=1.3.0
|
|
server-3.global 10.0.0.10 4648 alive false 2 3 1.3.0 dc1 global region=global,dc=dc1,rpc_addr=10.0.0.10,raft_vsn=3,build=1.3.0,expect=3,id=59542f6c-fb0e-50f1-4c9f-98bb593e9fe8,role=nomad,port=4647
|
|
```
|
|
|
|
The `-json` flag can be used to get the latest server members information in json format:
|
|
|
|
```shell-session
|
|
$ nomad server members -json
|
|
[
|
|
{
|
|
"Addr": "127.0.0.1",
|
|
"DelegateCur": 4,
|
|
"DelegateMax": 5,
|
|
"DelegateMin": 2,
|
|
"Name": "bacon-mac.global",
|
|
"Port": 4648,
|
|
"ProtocolCur": 2,
|
|
"ProtocolMax": 5,
|
|
"ProtocolMin": 1,
|
|
"Status": "alive",
|
|
"Tags": {
|
|
"build": "1.5.0",
|
|
"region": "global",
|
|
"rpc_addr": "127.0.0.1",
|
|
"role": "nomad",
|
|
"raft_vsn": "3",
|
|
"bootstrap": "1",
|
|
"expect": "1",
|
|
"dc": "dc1",
|
|
"port": "4647",
|
|
"revision": "fc40c491cacec3d8ec3f2f98cd82b9068a50797c",
|
|
"vsn": "1",
|
|
"id": "354fd9a8-4228-ca8e-8b93-3cf002514910"
|
|
}
|
|
}
|
|
]
|
|
```
|
|
|
|
Or use the `-t` flag to format and display the server members information using a Go template:
|
|
|
|
```shell-session
|
|
$ nomad server members -t '{{range .}}{{printf "%s: %s" .Name .Status }}{{end}}'
|
|
bacon-mac.global: alive
|
|
```
|
|
|
|
## General options
|
|
|
|
@include 'general_options_no_namespace.mdx'
|