This CLI command retrieves a list of all the servers in a cluster.
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 |
|
|
|
To use cluster-list-servers:
/usr/local/zend/bin/zs-manage cluster-list-servers --help
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
/usr/local/zend/bin/zs-manage cluster-list-servers [server ID] CLI Tools will return information on the specific server. |
|
|