< Home

display ipv6 socket

Function

The display ipv6 socket command displays information about IPv6 sockets.

Format

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

Parameters

Parameter Description Value
socktype socket-type Specifies the type of a socket. The value can be:
  • 1: indicates SOCK_STREAM, corresponding to the TCP-based socket.
  • 2: indicates SOCK_DGRAM, corresponding to the UDP-based socket.
  • 3: indicates SOCK_RAW, corresponding to the RawIP-based socket.
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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

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

Item

Description

SOCK_STREAM

One type of socket. Sockets are classified into the following types:
  • SOCK_STREAM

  • SOCK_DGRAM

  • SOCK_RAW

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.

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