display tcp

Use display tcp to display brief information about TCP connections.

Syntax

display tcp [ slot slot-number ]

display tcp [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays brief information about TCP connections for all cards.

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays brief information about TCP connections for all cards.

Usage guidelines

Brief TCP connection information includes local IP address, local port number, peer IP address, peer port number, and TCP connection state.

Examples

# Display brief information about TCP connections.

<Sysname> display tcp
 *: TCP connection with authentication
 Local Addr:port       Foreign Addr:port     State       Slot  Cpu PCB
*0.0.0.0:21            0.0.0.0:0             LISTEN      1     0   0x000000000000c387
 192.168.20.200:23     192.168.20.14:1284    ESTABLISHED 1     0   0x0000000000000009
 192.168.20.200:23     192.168.20.14:1283    ESTABLISHED 1     0   0x0000000000000002

Table 38: Command output

Field

Description

*

Indicates that the TCP connection uses authentication.

Local Addr:port

Local IP address and port number.

Foreign Addr:port

Peer IP address and port number.

State

TCP connection state.

PCB

PCB index.