HP X.25/9000 User's Guide HP-UX 11i v3 (5900-1523, August 2011)
-t records Lets you specify how many records you want to format from the end of the
file. This enables you to get the most recent information. The maximum
number of records is 1000. By default, all records are formatted.
-f file_name Use this option to specify the binary file containing the log or trace data.
This is the name of the .TRC0 file that was specified when nettl was run
the first time with the -traceon and -file options. By default, data is
read from standard input.
-v Enables “verbose” mode, but also gives the full data output for each packet
header (see “Examples” (page 121) section below).
-N Enables “Nice” formatting of output. Only packet headers and the first few
lines of the main data output are displayed. Only the data length is provided
in addition to the packet header to make the output easier to read (see
“Examples” (page 121) section below).
-1 (one) Enables “terse” (short) mode formatting of each traced packet on a
single line. Output lines will be more than 80 characters long if the -L and/or
-T options are used (see “Examples” (page 121) section below).
-l (small letter “l”) Use this option when you send formatted trace data to a
line printer to turn off inverse video highlighting of all trace fields.
-x Enables parsing of TCP Payload to display the contents of the encapsulated
X.25 Level 3 packet.
Examples
Example 1:
This example explains how to format the trace file in “verbose” mode (packet headers plus full
data output for each header) with no filtering.
To format the file /tmp/tracex25.TRC0 in “verbose” mode with no filtering:
/etc/netfmt -v -f /tmp/tracex25.TRC0 | more
The output will resemble the following:
vvvvvvvvvvvvvvvvvvvvvvLAN/X.25NETWORKINGvvvvvvvvvvvvvvvvvvvvvvvvv
Timestamp : Wed Sep 28 1994 10:16:19.696042
Process ID : 10 Subsystem : SX25L3
User ID ( UID ) : 0 Trace Kind : 0x10000000
Device ID : 0 Path ID : -1
Connection ID : 0
Location : 00123
Tx board: 0 at Wed Sep 28 1994 10:16:19.689181 Data Packet lci 64
Q-bit : 0 D-bit : 0 M-bit : 0
P(R) : 0 P(S) : 0
User Data = 20 bytes
0: 00 00 00 01 61 61 61 61 61 61 61 61 61 61 61 61 ...aaaaaaaaaaaa
16: 61 61 61 61 -- -- -- -- -- -- -- -- -- -- -- -- aaaa..........
Example 2:
This example explains how to format the trace file in “Nice” mode (output is mainly packet headers)
with no filtering.
To format the file /tmp/tracex25.TRC0 in “Nice” mode with no filtering:
/etc/netfmt -N -f /tmp/tracex25.TRC0 | more
The output will resemble the following:
Tx board: 0 at Wed Sep 28 1994 10:16:19.689181 Data Packet lci 64
Q-bit : 0 D-bit : 0 M-bit : 0
P(R) : 0 P(S) : 0
User Data = 20 bytes
netfmt 121










