To list servers in a cluster you can provide the host:port for
any one of the nodes in the cluster and also provide the
--output=json option as we do below:
shell> couchbase-cli server-list -c 192.168.0.1:8091 -u Administrator -p password --output=json
This will return the following information about the cluster as well as nodes in the cluster:
Memory usage, including quotas and consumption for RAM and disk.
List of nodes in cluster, including Couchbase Server version, OS, and memory per node.
List of REST API endpoints for cluster.
Failover and alert settings for the cluster.
If you do not provide the
option, you will get a response from the individual node your
provided in your command and whether the node is active.