github.com/dkerwin/nomad@v0.3.3-0.20160525181927-74554135514b/website/source/docs/commands/client-config.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: client-config" 4 sidebar_current: "docs-commands-client-config" 5 description: > 6 The client-config command is used to view or modify client configuration. 7 --- 8 9 # Command: client-config 10 11 The `client-config` command is used to view or modify client configuration 12 details. This command only works on client nodes, and can be used to update 13 the running client configurations it supports. 14 15 ## Usage 16 17 ``` 18 nomad client-config [options] 19 ``` 20 21 The arguments behave differently depending on the flags given. See each flag's 22 description below for specific usage information and requirements. 23 24 ## General Options 25 26 <%= general_options_usage %> 27 28 ## Client Servers Options 29 30 * `-servers`: List the client's known servers. Client nodes do not participate 31 in the gossip pool, and instead register with these servers periodically over 32 the network. The initial value of this list may come from configuration files 33 using the [servers](/docs/agent/config.html#servers) configuration option in 34 the client block. 35 36 * `-update-servers`: Updates the client's server list using the provided 37 arguments. Multiple server addresses may be passed using multiple arguments. 38 When updating the servers list, you must specify ALL of the server nodes you 39 wish to configure. The set is updated atomically. It is an error to specify 40 this flag without any server addresses. If you do _not_ specify a port for each 41 server address, the default port `4647` will be used. 42 43 ## Examples 44 45 Query the currently known servers: 46 47 ``` 48 $ nomad client-config -servers 49 server1:4647 50 server2:4647 51 ``` 52 53 Update the list of servers: 54 55 ``` 56 $ nomad client-config -update-servers server1:4647 server2:4647 server3:4647 server4 57 ```