R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
17
Examples
# Display the current forwarding mode and the forwarding mode used for the next system startup.
[Sysname] display ip forwarding mode
Current forwarding mode is per-packet.
Next forwarding mode is per-flow after reboot.
display ip socket
Syntax
display ip socket [ socktype sock-type ] [ task-id socket-id ] [ | { begin | exclude | include }
regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
socktype sock-type: Displays the socket information of this type. The sock type is in the range of 1 to 3,
corresponding to TCP, UDP and raw IP respectively.
task-id: Displays the socket information of this task. Task ID is in the range of 1 to 180.
socket-id: Displays the information of the socket. 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 Getting Started 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.
Description
Use display ip socket to display socket information.
Examples
# Display the TCP socket information.
<Sysname> display ip socket
SOCK_STREAM:
Task = VTYD(38), 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_KEEPALIVE SO_REUSEPORT SO_SENDVPNID(3073)
SO_SETKEEPALIVE,
socket state = SS_PRIV SS_ASYNC
Task = HTTP(36), socketid = 1, Proto = 6,
LA = 0.0.0.0:80, FA = 0.0.0.0:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,