The display ipv6 socket command displays the information related to sockets, such as the socket type, socket ID, and the associated task ID. The information includes:
Send-buffer
Receive-buffer
All socket-level options set for this particular socket
Socket pair
If no parameter of the command is specified, all types of sockets are displayed.
| Parameter | Description | Value |
|---|---|---|
| socket-type socket-type | Specifies the type of the socket to be displayed. Each value represents the following meaning:
|
The value is an integer ranging from 1 to 3. |
| task-id task-id | Specifies the ID of the task to be displayed. | The task ID must already exist. |
| socket-id socket-id | Specifies the ID of the socket to be displayed. | The socket ID must already exist. |
You can run the display ipv6 socket command to view all sockets or the socket of a certain type.
# Display the related socket information about the socket type, socket ID, and the associated task ID.
<sysname> display ipv6 socket SOCK_STREAM: Task = VTYD (14), socketid = 4, Proto = 6, LA = ::->22, FA = ::->0, sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID, socket state = SS_PRIV SS_ASYNC Task = VTYD (14), socketid = 3, Proto = 6, LA = ::->23, FA = ::->0, sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID, socket state = SS_PRIV SS_ASYNC SOCK_DGRAM: SOCK_RAW:
# Display the related socket information about the socket type 1.
<sysname> display ipv6 socket sock-type 1 SOCK_STREAM: Task = VTYD (14), socketid = 4, Proto = 6, LA = ::->22, FA = ::->0, sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID, socket state = SS_PRIV SS_ASYNC Task = VTYD (14), socketid = 3, Proto = 6, LA = ::->23, FA = ::->0, sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, socket option = SO_ACCEPTCONN SO_REUSEPORT SO_SENDVPNID, socket state = SS_PRIV SS_ASYNC
Item |
Description |
|---|---|
SOCK_STREAM |
Type of socket:
|
Task = VTYD (14) |
Type and ID of the task that uses the socket. For example, the preceding display shows that the task named VTYD uses the socket, with the task ID being 14. |
socketid = 4 |
Socket ID. |
Proto = 6 |
Protocol ID. |
LA = ::->22, FA = ::->0 |
|
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0, |
|
socket option |
Socket options that have been set. |
socket state |
Socket status. |