Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

trsp(8c) [bsd man page]

TRSP(8c)																  TRSP(8c)

NAME
trsp - transliterate sequenced packet protocol trace SYNOPSIS
trsp [ -a ] [ -s ] [ -t ] [ -j ] [ -p hex-address ] [ system [ core ] ] DESCRIPTION
Trpt interrogates the buffer of SPP trace records created when a socket is marked for "debugging" (see setsockopt(2)), and prints a read- able description of these records. When no options are supplied, trsp prints all the trace records found in the system grouped according to SPP connection protocol control block (PCB). The following options may be used to alter this behavior. -s in addition to the normal output, print a detailed description of the packet sequencing information, -t in addition to the normal output, print the values for all timers at each point in the trace, -j just give a list of the protocol control block addresses for which there are trace records, -p show only trace records associated with the protocol control block who's address follows, -a in addition to the normal output, print the values of the source and destination addresses for each packet recorded. The recommended use of trsp is as follows. Isolate the problem and enable debugging on the socket(s) involved in the connection. Find the address of the protocol control blocks associated with the sockets using the -A option to netstat(1). Then run trsp with the -p option, supplying the associated protocol control block addresses. If there are many sockets using the debugging option, the -j option may be use- ful in checking to see if any trace records are present for the socket in question. If debugging is being performed on a system or core file other than the default, the last two arguments may be used to supplant the defaults. FILES
/vmunix /dev/kmem SEE ALSO
setsockopt(2), netstat(1) DIAGNOSTICS
``no namelist'' when the system image doesn't contain the proper symbols to find the trace buffer; others which should be self explanatory. BUGS
Should also print the data for each input or output, but this is not saved in the race record. The output format is inscrutable and should be described here. 4.2 Berkeley Distribution October 8, 1985 TRSP(8c)

Check Out this Related Man Page

trpt(8) 						      System Manager's Manual							   trpt(8)

NAME
trpt - Transliterates protocol trace SYNOPSIS
trpt [-afjst] [-p address] FLAGS
Print the values of the source and destination addresses for each packet recorded, in addition to the normal output. Follows the trace as it occurs, waiting briefly for additional records each time the end of the log is reached. Lists the protocol control block addresses for which trace records exist. Shows only trace records associated with the protocol control block specified in hexadecimal by the address variable. You must include a space between the -p flag and the address variable when you specify this flag. Prints a detailed description of the packet-sequencing information, in addition to the normal output. Prints the values for all timers at each point in the trace, in addition to the normal output. DESCRIPTION
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. FILES
Specifies the command path RELATED INFORMATION
Commands: netstat(1) Functions: setsockopt(2) delim off trpt(8)
Man Page