Command Reference Guide
3Com Router 5000 Family and Router 6000 Family display ip socket ● 151
Command Reference
display ip socket
Purpose Use the display ip socket command to display the information about all
sockets in the current system.
Syntax display ip socket [ socktype sock_type ] [ task_id socket_id ]
Parameters 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.
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.
sndbuf: the sending buffer size of the socket.
rcvbuf: the receiving buffer size of the socket.
sb_cc: the current data size in the sending buffer. The value makes
sense only for the socket of TCP type, because only TCP is able to cache
data.
rb_cc: the current data size in the receiving buffer.
socket option: the option of the socket.
socket state: the state of the socket.
# Display the information about the socket with socket ID as 4 and task
ID as 8.
<3Com> display ip socket 8 4
Task = VTYD(8), socketid = 4, 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