What command below can be used to display the participating servers and clients within the local Consul cluster?

What command below can be used to display the participating servers and clients within the local Consul cluster?
A . consul info
B. consul validate
C. consul monitor
D. consul members

Answer: D

Explanation:

The members command outputs the current list of members that a Consul agent knows about, along with their state. The state of a node can only be "alive", "left", or "failed".

Incorrect Answers

The info command provides various debugging information that can be useful to operators. Depending on if the agent is a client or server, information about different sub-systems will be returned.

The monitor command is used to connect and follow the logs of a running Consul agent. Monitor will show the recent logs and then continue to follow the logs, not exiting until interrupted or until the remote agent quits.

The consul validate command performs a thorough sanity test on Consul configuration files.

More information can be found on the Consul Commands (CLI) page found here.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments