HP X.25/9000 User's Guide HP-UX 11i v3 (5900-1523, August 2011)

NOTE: The .TRCX suffix is automatically appended to the output file where X starts at 0 and
changes to 1 when the file becomes full. Traces are always written to the .TRC0 file.
-card(-c) This option is required with the traceon command to specify the X.25 subsystem
interface (port) name. The X.25 device is specified with x25_npx which identifies
the interface defined in your X.25 configuration file.
NOTE: The device file must be called x25_npx, where n represents the mandatory card instance
number (range 0 to 255). The card instance number is the number reported by the ioscan -f
command output (in the “I” column). The (lower case) p is a place holder and x represents the port
number (1 or 2). p and x are required only for systems with dual-port cards.
-traceoff (-tf) This option turns tracing, specified with the -entity option, off.
-status(-ss) trace Use this option to get a report on the tracing/logging status.
Examples
To turn tracing on at Level 3 for device x25_1 (interface number 1) and receive packet header
AND packet data information:
nettl -tn pduin pduout -e SX25L3 -c x25_1 -f /tmp/tracex25
To turn tracing off at Level 3 for the device x25_1:
nettl -tf -e SX25L3 -c x25_1
netfmt
Use this command to format the trace file that was created with nettl. Refer to the man pages
for x25trace for more information and examples on this command
Syntax
netfmt [-c filter file [-p]] [-F] [-t records] [-N] [-v] [-l]
[-1[LT]] [[-f] file_name]
A new -x option has been introduced for formatting a TCP trace output to display the X.25 Level
3 packet content. The syntax for using this option is as follows:
netfmt [x] [-N] [[-f] TCP_trace_file] > [Output_file]
NOTE: The x option is supported by netfmt starting from the HP-UX 11i v3 March 2011
Operating Environment Upgrade Releases (OEUR) release onwards.
Parameters
-c filter file Specifies the name of the file containing the filter configuration commands.
You create this file with your text editor. If this option is omitted, filter
configuration commands are read from the $HOME/.nettr file if it exists.
Refer to “Creating a filter file” (page 123) at the end of this section for an
explanation of filter file syntax.
-p The parse input option lets you do a syntax check on the configuration file
specified with the -c option. If the syntax is correct, netfmt terminates
with no output or warnings.
-F The follow input file option causes netfmt to keep the input file open when
it reaches the end of the file. The file is kept open and netfmt continues
to read from it as new data arrives. This option is useful for troubleshooting
because it lets you monitor events in real time.
120 Tracing and logging utilities