HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
n
nettl(1M) nettl(1M)
nettl -traceon pduin pduout -entity transport session \
-file /var/adm/trace
5. Turn on outbound PDU tracing for X.25 level two, and subsystem ns_ls_ip. Trace messages go to
the trace file set up in the previous example. This example also uses the abbreviated options. Tracing
for X.25 requires a -card option to indicate which X.25 card to trace.
nettl -tn pduout -e X25L2 ns_ls_ip -c x25_0
6. Determine status of tracing from the previous two examples.
nettl -status trace
The output should resemble the following:
Tracing Information:
Trace Filename: /var/adm/trace.TRC*
Trace file size(Kbytes): 1000
User’s ID: 0 Buffer Size: 32768
Messages Dropped: 0 Messages Queued: 0
Subsystem Name: Trace Mask: Card:
TRANSPORT 0x30000000
SESSION 0x30000000
NS_LS_IP 0x10000000
X25L2 0x10000000 x25_0
7. Stop tracing for all subsystems.
nettl -traceoff -e all
8. Enable pduin and pduout tracing for ns_ls_driver (LAN driver) subsystem. Binary trace
data goes to file
/var/adm/LAN.TRC0
.
The
-file option of this command is only valid the first time tracing is called. The trace file is not
automatically reset with the -file option. To change the trace output file, stop tracing and start up
again. This example assumes that the -traceon option is being used for the first time.
nettl -tn pduin pduout -e ns_ls_driver -file /var/adm/LAN
9. Terminate the tracing and logging facility.
nettl -stop
(See note for the -start option.)
WARNINGS
Although the nettl command allows the specification of all log classes and all trace kinds for all subsys-
tems, many subsystems do not support all log classes and all trace kinds. No error or warning will be
issued if a subsystem does not support a log class or trace kind. Refer to the product documentation of the
subsystem for information on supported log classes and trace kinds.
Tracing to a file that resides on a NFS file system can impact system performance and result in loss of trace
data. It is recommended that NFS file systems not be used to contain tracing output files.
Tracing to a file may not be able to keep up with a busy system, especially when extensive tracing informa-
tion is being gathered. If some data loss is encountered, the trace buffer size can be increased. Be selective
about the number of subsystems being traced, as well as the kinds of trace data being captured.
The nettl and netfmt commands read the /etc/nettlgen.conf
file each time they are run (see
nettl(1M) and netfmt(1M)). If the file becomes corrupted, these commands will no longer be operational.
FILES
/dev/netlog Kernel log pseudo-device file.
/dev/nettrace Kernel trace pseudo-device file.
/etc/nettlgen.conf Tracing and logging subsystem configuration file.
/etc/rc.config.d/nettl Contains variables which control the behavior of nettl during sys-
tem startup.
HP-UX Release 11i: December 2000 6 Section 1M553
___
___