Sets or unsets the socket debug flag (SO_DEBUG socket option) and trace level on sockets.
The sodebug command sets, unsets, or lists the socket debug flag and trace level on active sockets
If the socket debug flag (also known as the SO_DEBUG socket option) is set for a socket, the events on this socket can be traced using the trace command.
You can use the -l option to set the socket debug flag on sockets that already exist on a system. The -l option also sets the trace level for a given socket.
If the sodebug command is run without any options, the socket debug flag status and trace level for each active socket displays.
The trace and trpt commands collect information based on the trace level.
min | normal | detail | |
---|---|---|---|
tcp_debug data (td_time, td_act, td_ostate, td_tcb, family and td_req) | X | X | |
tcpip header | X | X | |
Address of tcpcb | X | X | |
All tcpcb fields | X | ||
Address of socket | X | X | |
All socket fields | X |
no -o sodebug=1
Item | Description |
---|---|
-h | Displays help for the sodebug command. |
-l [level] | Specifies the trace level. Valid values for level are none, min, normal, and detail. If no level is specified, the default trace level is normal. |
-p pid | Specifies the process ID of a process. |
-s sockaddr | Specifies a socket by the socket address, the address of the socket's inpcb, or the address of the socket's tcpcb. |
-t type | Specifies the type of address that is specified by the -s sockaddr option. Valid values are socket, inpcb, and tcpcb. The default value is socket. |
You must have root authority to run the sodebug command.
sodebug -s f100090002d0a800
socket address : f100090002d0a800 , sodebug flag : 0 , trace level : none(0)
sodebug -s f100090002d0a800 -l normal
Setting new values for trace level and debug flag
socket address : f100090002d0a800 , sodebug flag : 1 , trace level : normal(3)