
Tracing and Logging Utilities
netfmt
Chapter 7182
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 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 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 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.
Examples
To format the file /tmp/tracex25.TRC0 in “verbose” mode (packet
headers plus full data output for each header) 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
Comentários a estes Manuais