display tcp status
Format
display tcp status [ [ task-id task-id ] [ socket-id socket-id ] | [ local-ip ip-address ] [ local-port local-port-number ] [ remote-ip ip-address ] [ remote-port remote-port-number ] ]
Parameters
Parameter | Description | Value |
---|---|---|
task-id task-id | Displays the TCP connection status of the task with a specified ID. |
The value is an integer that ranges from 1 to 300. |
socket-id socket-id | Displays the TCP connection status of the socket with a specified ID. | The value is an integer that ranges from 1 to 131072. |
local-ip ip-address | Displays the TCP connection status of a specified local IP address. | The value is in dotted decimal notation. |
local-port local-port-number | Displays the TCP connection status of a specified local port ID. | The value is an integer that ranges from 0 to 65535. |
remote-ip ip-address | Displays the TCP connection status a specified remote IP address. | The value is in dotted decimal notation. |
remote-port remote-port-number | Displays the TCP connection status of a specified remote port ID. | The value is an integer that ranges from 0 to 65535. |
Usage Guidelines
Usage Scenario
- ID of the TCP task control block.
- ID of the IPv4 TCP task and socket.
- Local IPv4 address and port ID.
- Remote IPv4 address and port ID.
- ID of the VPN instance to which the TCP connection belongs.
- IPv4 TCP connection status.
You can set filtering rules based on the Task ID, socket ID, IP address and port number of the local device, and IP address and port number of the remote device so that only the information matching the rules is displayed. This prevents unnecessary information from being displayed and helps you locate faults accurately and efficiently.
Precautions
The command output is null if there is no TCP connection.
Example
# Display the TCP connection status on the local device.
<AC6605> display tcp status
TCPCB Tid/Soid Local Add:port Foreign Add:port VPNID State
0a5d560c 30 /1 0.0.0.0:23 0.0.0.0:0 14849 Listening
# Display the status of the TCP connection originated from the local IP address 0.0.0.0 and port 23.
<AC6605> display tcp status local-ip 0.0.0.0 local-port 23
TCPCB Tid/Soid Local Add:port Foreign Add:port VPNID State
0a5d560c 30 /1 0.0.0.0:23 0.0.0.0:0 14849 Listening
# Display the status of the TCP connection originated from the local IP address 0.0.0.0 and port 24.
<AC6605> display tcp status local-ip 0.0.0.0 local-port 24
TCPCB Tid/Soid Local Add:port Foreign Add:port VPNID State
Field |
Description |
---|---|
TCPCB |
ID of the TCP task control block. |
Tid/Soid |
Task ID and socket ID. |
Local Add: port |
IP address and port number of the local device. If the value of Local Add is 0.0.0.0, TCP connections of all IP addresses are monitored. If the value of port is 0, the TCP connection of all ports is monitored. |
Foreign Add: port |
IP address and port number of the remote device. If the value of Foreign Add is 0.0.0.0, the TCP connection of all IP addresses is monitored. If the value of port is 0, TCP connections of all ports are monitored. |
VPNID |
ID of the VPN instance to which the TCP connection belongs.
|
State |
TCP connection status:
|