cluster-list-servers

This CLI command retrieves a list of all the servers in a cluster.

Common Arguments

This table lists arguments common to all zs-manage commands:

Abbreviated Full Description Required/Optional

-N

--key-name

WebAPI key name.

Required

-K

--secret-key

WebAPI secret key.

Required

-U

--server-url

Zend Server URL. Default: http://localhost:10081/ZendServer.

Required - when action is performed on a remote server.

-h

--help

Show usage information and exit.

Optional

 

 

Instructions on how to complete a procedure

To use cluster-list-servers:

  1. Open your CLI.
  1. Enter a help command for the cluster-list-servers action to learn which arguments your command should include:

/usr/local/zend/bin/zs-manage cluster-list-servers --help

  1. Enter the command with the required arguments (replace brackets with your value):

If performed by a server in a cluster:

/usr/local/zend/bin/zs-manage cluster-list-servers -N <existing key name> -K <existing key secret>

Your CLI displays a list of all the servers in the cluster and their status.

3 SERVER3 10.9.183.85 OK

1 ubuntu1204-a 10.9.183.83 Warning

warning The directive 'zend_sc.allowed_hosts' is mismatched: expected '10.9.183.83,10.9.183.85', actual '10.9.183.85'

warning The directive 'zend_sc.ha.cluster_members' is mismatched: expected '10.9.183.83,10.9.183.85', actual '10.9.183.85'

2 ubuntu1204-b 10.9.183.83 Error

error The daemon 'scd' is offline

  1. For info on a specific server in the cluster, enter the same command, and add the server ID:

/usr/local/zend/bin/zs-manage cluster-list-servers [server ID]

CLI Tools will return information on the specific server.