Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide Chapter 10
3Com Corporation
10-16
10.1.16 display ip socket
Syntax
display ip socket [ socktype sock_type ] [ task_id socket_id ]
View
Any view
Parameter
sock_type: The type of a socket: (tcp:1, udp 2, raw ip 3)
task_id: The ID of a task.
socket_id: The ID of a socket.
Description
Use the display ip socket command to display the information about all sockets in the
current system.
Example
# Display the information about the socket of TCP type.
<3Com> display ip socket socktype 1
SOCK_STREAM:
Task = VTYD(9), socketid = 1, Proto = 6,
LA = 0.0.0.0:23, FA = 0.0.0.0:0,
sndbuf = 4096, rcvbuf = 4096, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN
socket state = SS_PRIV SS_ASYNC
SOCK_DGRAM:
Task = ROUT(6), socketid = 1, Proto = 17,
LA = 0.0.0.0:0, FA = 0.0.0.0:0,
sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,
socket option = SO_UDPCHECKSUM
socket state = SS_PRIV SS_ASYNC
SOCK_RAW:
Task = ROUT(6), socketid = 2, Proto = 2,
LA = 0.0.0.0, FA = 0.0.0.0,
sndbuf = 32767, rcvbuf = 32767, sb_cc = 0, rb_cc = 0,
socket option = 0,
socket state = SS_PRIV SS_NBIO SS_ASYNC
Explanations of the display information:
SOCK_STREAM: the socket type.
Proto: the protocol number used by the socket.