< Home

display ipv6 socket

Function

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.

Format

display ipv6 socket [ socktype socket-type | task-id task-id socket-id socket-id ]

Parameters

Parameter Description Value
socket-type socket-type Specifies the type of the socket to be displayed. Each value represents the following meaning:
  • 1: SOCK_STREAM, corresponding to the sockets of TCP streams.

  • 2: SOCK_DGRAM, corresponding to the sockets of UDP packets.

  • 3: SOCK_RAW, corresponding to the sockets of RAWIP.

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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display ipv6 socket command to view all sockets or the socket of a certain type.

Example

# 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
Table 1 Description of the display ipv6 socket command output

Item

Description

SOCK_STREAM

Type of socket:

  • SOCK_STREAM

  • SOCK_DGRAM

  • SOCK_RAW

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

  • LA: the local address and local port number.

  • FA: the remote address and remote port number.

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

  • sndbuf: the upper limit of the cache of packet sending.

  • rcvbuf: the upper limit of the cache of packet receiving.

  • sb_cc: the number of the sent packets.

  • rb_cc: the number of the received packets.

socket option

Socket options that have been set.

socket state

Socket status.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >