Chapter 5
69
5.4.7.16 trace
Syntax:
trace [<option>]
Description:
Turns on an IP tracing option, or lists the available options.
Note: tracing messages are written to background output, so
with the standard console one must use the event commands to
see them.
An option can be:
One of the various keywords. The details of just what tracing
messages are enabled by each keyword are not documented
here; examine the source if needed.
For a TCP association, this turns on detailed tracing of events
(including all packet transmission and reception) on that
association. For a UDP association, it has no effect. The files
command shows (by appending TRACE) whether each
association has tracing enabled.
ip - Turns on tracing for all interfaces.
all - Turns on all tracing.
Note: trace does not display which associations and interfaces
are being traced; one must use the files and device commands.
The trace command is hidden and not shown by ip help. It is
useful mainly for debugging and troubleshooting.
Example:
mymachine> ip trace
ip: try trace - <assoc no> <i/f name> all ip errors resolve ipatm
atmarp
iploop arp ipether icmp udp tcp tcphdr tcpstate routes riptx riprx
names
ip: currently tracing nothing
mymachine> ip trace tcp
ip: currently tracing tcp