Content-type: text/html
The trpt command, used for debugging sockets, queries the buffer of Transmission Control Protocol (TCP) trace records. The TCP trace record buffer is created when a socket is marked for debugging with the setsockopt(2) subroutine. The trpt command queries the buffer and then prints a description of the trace records.
When you specify no options, the trpt command prints all the trace records found in the system and groups them according to their TCP/IP connection Protocol Control Block (PCB).
If you are debugging a system file other than the default, the system argument can be used to replace the default.
Before you can use the trpt command, you must do the following: Isolate the problem and mark for debugging the socket or sockets involved in the connection. Find the address of the protocol control blocks associated with these sockets by using the netstat -aA command. Then, you can run the trpt command, using the -p flag to supply the associated protocol control block addresses. You can specify multiple -p address flags with a single trpt command.
The -f flag can be used to follow the trace log once it is located. The -j flag can be used to check for the presence of trace records for the socket in question.
If the system image does not contain the proper symbols to find the trace buffer, the trpt command cannot succeed.
Commands: netstat(1)
Functions: setsockopt(2) delim off