Parameter | Description | Value |
---|---|---|
socktype socket-type | Specifies the type of a socket. The value can be:
|
The value is an integer that ranges from 1 to 3. |
socket-id socket-id | Specifies the socket ID. | The value is an integer that ranges from 1 to 131072. |
task-id task-id | Specifies the task ID. | The value is an integer and the range depends on the task configuration. |
Usage Scenario
To locate a fault, you can use this command to view detailed information about sockets of all types or a specified type.
Precautions
If there is no socket information, no information is displayed.
If no parameter is specified, this command displays information about all types of sockets.
# Display information about all types of sockets.
<HUAWEI> display ipv6 socket
SOCK_STREAM:
Task = VTYD(102), socketid = 3, Proto = 6,
LA = ::->22, FA = ::->0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_REUSEADDR SO_KEEPALIVE SO_LINGER SO_SETACL6 SO_
SETKEEPALIVE SO_ZONEID(-1),
socket state = SS_PRIV SS_ASYNC
Task = VTYD(102), socketid = 2, Proto = 6,
LA = ::->23, FA = ::->0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_LINGER SO_REUSEPORT SO_SETACL6 SO_
SETKEEPALIVE SO_ZONEID(-1),
socket state = SS_PRIV SS_ASYNC
SOCK_DGRAM:
Task = TRAP(105), socketid = 2, Proto = 17,
LA = ::->49152, FA = ::->0,
sndbuf = 9216, rcvbuf = 42080, sb_cc = 0, rb_cc = 0,
socket option = SO_ZONEID(-1),
socket state = SS_PRIV
Task = AGT6(106), socketid = 1, Proto = 17,
LA = ::->161, FA = ::->0,
sndbuf = 17941, rcvbuf = 42080, sb_cc = 0, rb_cc = 0,
socket option = SO_ZONEID(-1),
socket state = SS_PRIV SS_ASYNC
Task = RDS(123), socketid = 2, Proto = 17,
LA = ::->1812, FA = ::->0,
sndbuf = 9216, rcvbuf = 42080, sb_cc = 0, rb_cc = 0,
socket option = SO_ZONEID(-1),
socket state = SS_PRIV SS_RECALL
SOCK_DGRAM:
SOCK_RAW:
# Display information about the socket with socket type 1.
<HUAWEI> display ipv6 socket socktype 1
SOCK_STREAM:
Task = VTYD(102), socketid = 3, Proto = 6,
LA = ::->22, FA = ::->0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_REUSEADDR SO_KEEPALIVE SO_LINGER SO_SETACL6 SO_
SETKEEPALIVE SO_ZONEID(-1),
socket state = SS_PRIV SS_ASYNC
Task = VTYD(102), socketid = 2, Proto = 6,
LA = ::->23, FA = ::->0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_LINGER SO_REUSEPORT SO_SETACL6 SO_
SETKEEPALIVE SO_ZONEID(-1),
socket state = SS_PRIV SS_ASYNC
Item |
Description |
---|---|
SOCK_STREAM |
One type of socket. Sockets are classified
into the following types:
|
Task = VTYD |
Type and ID of the task that invokes the socket. For example, Task = VTYD(48) shows that the task named VTYD uses the socket, with task ID 48. |
socketid |
Socket ID. |
Proto |
Protocol ID. |
LA |
Local address and local port number. |
FA |
Remote address and remote port number. |
sndbuf |
Upper limit of the send buffer, in bytes. |
rcvbuf |
Upper limit of the receive buffer, in bytes. |
sb_cc |
Total number of sent bytes. |
rb_cc |
Total number of received bytes. |
socket option |
Socket option that has been set. |
socket state |
Socket status. |