Consul Troubleshoot Upstreams
Command: consul troubleshoot ports
The troubleshoot ports
prints TCP port statuses to help you troubleshoot port connectivity.
Usage
Usage: consul troubleshoot ports [options]
Command Options
-host=<value>
- Host name to troubleshoot TCP ports for. You can also set theCONSUL_HTTP_ADDR
environment variable instead of using the-host
flag.-ports=<value>
- Specifies a comma-separated list of custom ports to check.
Examples
The following example checks the default ports Consul server uses for TCP connectivity. Note that the CONSUL_HTTP_ADDR
environment variable is set to localhost
. As a result, the -host
flag is not required.
Refer to Required Ports for additional information.
The following example checks TCP ports status on the hashicorp.com
host.