HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
n
nettl(1M) nettl(1M)
nettl -tn pduin pduout -e ns_ls_driver -file /var/adm/LAN
9. Enable all kinds of tracing for gelan (GELAN driver) with initial trace memory being 256MB. Binary
trace data goes to file /tmp/gelan.TRC000
and combined file size being 128MB. This example
assumes that the
-traceon option is being used for the first time.
nettl -tn all -e gelan -mem 256M -tm 128M -f /tmp/gelan
10. Enable all kinds of tracing for igelan (IGELAN driver) with initial trace memory being 128MB and
maximum memory that can be allocated being 512MB. Binary trace data goes to file
/tmp/igelan.TRC000
. Also, bind the disk-write process to processor 1. This example assumes
that the
-traceon option is being used for the first time.
nettl -tn all -e gelan -mem 128M 512M -b 1 -f /tmp/gelan
Warning: Trace file size is less than that required by the
tracing framework. Use ’nettl -status TRACE’ to see the actual
trace file size that is used.
nettl -ss TRACE
Tracing Information:
Trace Filename: /tmp/gelan.TRC*
Max Trace file size(Kbytes): 65536
Trace memory allocated(KB): 131072
Trace memory to be allocated(KB): 393216
Messages Dropped: 0
Processor ID: -1
Note that the combined trace file size used is 64MB (as buffer size = 64MB/2).
11. 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.
/var/adm/conslog.opts Default console logging options filter file as specified in
/etc/nettlgen.conf.
/var/adm/nettl.LOG000 Default log file as specified in /etc/nettlgen.conf
.
AUTHOR
nettl was developed by HP.
HP-UX 11i Version 2: December 2007 Update − 8 − Hewlett-Packard Company 61