Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.17 KB

File metadata and controls

51 lines (33 loc) · 1.17 KB

host-list

Lists all hosts in the cluster

SYNOPSIS

couchbase-cli host-list [--cluster <url>] [--username <user>]
    [--password <password>]

DESCRIPTION

Displays a list of hostnames corresponding to each node in the cluster. Each hostname is printed to stdout on its own line. The hostname may or may not contain a port number. If the port number is not a part of the hostname, then the port number is assumed to be 8091.

EXAMPLES

To get a list of hostnames for each node in the cluster run the following command:

$ couchbase-cli host-list -c 192.168.1.5:8091 --username Administrator \
 --password password
cb1.mydomain.com:8091
cb2.mydomain.com:8091
cb3.mydomain.com:8091

ENVIRONMENT AND CONFIGURATION VARIABLES

SEE ALSO

man:couchbase-cli-server-info[1], man:couchbase-cli-server-list[1]