display ip socket
Format
display ip socket [ monitor ] [ task-id task-id socket-id socket-id | socket-type socket-type ]
Parameters
Parameter | Description | Value |
---|---|---|
monitor | Displays information about the socket monitor. Information about the socket monitor is displayed together with information about the socket. | - |
task-id task-id | Displays socket information of the task with a specified ID. | The value is an integer that ranges from 1 to 300. |
socket-id socket-id | Displays information about the socket with a specified ID. | The value is an integer that ranges from 1 to 131072. |
socket-type socket-type | Displays information about a socket of a specified type. | The value is an integer. Table 6-112 shows the value range. |
Usage Guidelines
A socket monitor monitors and records each connection. A RawLink also monitors interfaces. The socket monitor records specific protocol events that occur during operations. In addition, it logs information in the disk space.
The socket monitor is similar to a black box of the system. It records specific events that happen during system operations. When the system fails, you can use information recorded by the socket monitor to locate faults.
You can also set the filtering rules, such as the task ID, socket ID, and socket type so that only the information matching the rules is displayed. This reduces information output and helps you locate faults accurately and efficiently.
Example
<AC6605> display ip socket monitor
SOCK_STREAM:
Task = VTYD(30), socketid = 1, Proto = 6,
LA=0.0.0.0:23, FA=0.0.0.0:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_REUSEADDR SO_KEEPALIVE SO_LINGER SO_SENDVPNID(2
3553) SO_SETKEEPALIVE SO_SETACL,
socket state = SS_PRIV
Socket Monitor:
Asyn Que status:
read = 0, write = 0, connect = 0, close = 0,
peer close = 0, accept = 0, keep alive down = 0,
cram time = 00H00M00S, lost msg= 0, msg type=0x00000000;
Nothing else has been captured!
Task = _S0f(8), socketid = 1, Proto = 6,
LA=0.0.0.0:23, FA=0.0.0.0:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_REUSEADDR SO_LINGER SO_SENDVPNID(23553) SO_SETA
CL,
socket state = SS_PRIV SS_NBIO
Socket Monitor:
Asyn Que status:
read = 0, write = 0, connect = 0, close = 0,
peer close = 0, accept = 0, keep alive down = 0,
cram time = 00H00M00S, lost msg= 0, msg type=0x00000000;
Nothing else has been captured!
---- More ----
Item |
Description |
---|---|
SOCK_STREAM |
Socket types:
|
Task = VTYD(30) |
Type and ID of the task that invokes the socket. For example, the task named VTYD uses the socket, with the task ID being 30. |
socketid = 1 |
Socket ID. |
Proto = 6 |
Protocol number. |
LA = 0.0.0.0:23, FA = 0.0.0.0:0, |
|
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, |
|
socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_LINGER SO_REUSEPORT SO_SENDVPNID (23553) SO_SETKEEPALIVE SO_SETACL, |
Set socket options:
|
socket state = SS_PRIV SS_ASYNC |
Socket status:
|
Asyn Que status |
Current asynchronous queue status. |
read=0 |
Number of messages read by the asynchronous queue is 0. |
write=0 |
Number of messages written by the asynchronous queue is 0. |
connect=0 |
Number of connection messages in the asynchronous queue is 0. |
close=0 |
Number of messages about closed connections in the asynchronous queue is 0. |
peer close=0 |
Number of messages about connections closed by the remote end in the asynchronous queue.is 0. |
accept=0 |
Number of messages received by the asynchronous queue is 0. |
keep alive down=0 |
Number of keepalivedown messages in the asynchronous queue is 0. |
cram time=00H00M00S |
Time for the asynchronous queue to become full is 00:00:00. |
lost msg=0 |
Number of asynchronous messages discarded by the asynchronous queue is 0. |
msg type |
Current asynchronous message type. |