github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/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.
    41  
    42  ## Examples
    43  
    44  Query the currently known servers:
    45  
    46  ```
    47  $ nomad client-config -servers
    48  server1:4647
    49  server2:4647
    50  ```
    51  
    52  Update the list of servers:
    53  
    54  ```
    55  $ nomad client-config -update-servers server1:4647 server2:4647 server3:4647
    56  ```