R2511-HP MSR Router Series Layer 3 - IP Services Command Reference(V5)

259
Views
Any view
Default command level
1: Monitor level
Parameters
socktype socket-type: Displays the socket information of this type. The socket type is in the range of 1 to
3. The value 1 represents a TCP socket, 2 a UDP socket, and 3 a raw socket.
task-id: Displays the socket information of the task. The value range is 1 to 150.
socket-id: Displays the information of the socket. The socket ID is in the range of 0 to 3072.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify any parameter, this command displays information about all the sockets.
If you specify only the socket type, the command displays information about sockets of the specified type.
If you specify the socket type, task ID and socket ID, the command displays information about the
specified socket.
Examples
# Display information about all sockets.
<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:
Task = AGNT(51), socketid = 2, Proto = 17,
LA = ::->161, FA = ::->0,
sndbuf = 9216, rcvbuf = 42080, sb_cc = 0, rb_cc = 0,
socket option = SO_REUSEPORT,
socket state = SS_PRIV SS_NBIO SS_ASYNC