Skip to content

Debug conn command

skupper debug conn [options]

Queries the router management API for TCP adaptor connections, correlates them with listener/connector resources (routing key, resource name), and lists matching connections (idle time, TCP state, routing key). Connections idle beyond --idle-threshold can be force-closed with --execute via adminStatus=deleted. With --list-ports it instead reports how many connections each port carries, inbound and outbound, plus the correlated routing key and resource, and closes nothing. --port, --state, --routing-key, and --kind narrow either mode. --port is the router-side port shown by --list-ports (on Kubernetes this is often an allocated port such as 1024, not Listener spec.port). Note that closing a connection also closes the other leg of its flow, which sits on the connector's port and so may differ from the port swept. "sweep" remains as an alias for compatibility.

PlatformsKubernetes, Docker, Podman, Linux

Examples

# List all connections
$ skupper debug conn

# List ports with connection counts
$ skupper debug conn --list-ports

# Filter by TCP state and routing key
$ skupper debug conn --state ESTAB --routing-key echo:8080

# Close idle connections matching filters
$ skupper debug conn --port 1024 --idle-threshold 14400 --execute

Primary options

--execute

boolean
Close idle connections matching the filters; without this flag matching connections are listed

--help

boolean
help for conn

--idle-threshold

<int>
Seconds with no data received before a connection is flagged as orphaned (default 14400)
Default

14400

--kind

<strings>
Only consider connections correlated to this resource kind (listener, connector, multikeylistener); repeat or comma-separate

--list-ports

boolean
List each port in use with its inbound and outbound connection counts, instead of sweeping

--output

<string>
Output format: text or json (default "text")
Default

"text"

--port

<ints>
Only consider connections on this router-side port (see --list-ports); repeat the flag for several ports (default: all ports)
Default

all ports

--routing-key

<strings>
Only consider connections correlated to this routing key; repeat or comma-separate

--state

<strings>
Only consider connections whose kernel socket is in this TCP state (ss names: ESTAB, FIN-WAIT-2, …); repeat or comma-separate ``` ``` -n, --namespace string Set the namespace -p, --platform string Set the platform type to use [kubernetes, podman, docker, linux] ```

Global options