HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
n
nettl(1M) nettl(1M)
Trace file size(Kbytes): 1000
Trace memory allocated(KB): 512
Trace memory to be allocated(KB): 0
Messages Dropped: 0
Processor ID: -1
Subsystem Name: Trace Mask: Card:
TRANSPORT 0x30000000
SESSION 0x30000000
NS_LS_IP 0x10000000
NS_LS_IPV6 0x10000000
SX25L2 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.TRC000
.
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. Enable all kinds of tracing for gelan (GELAN driver) with initial trace memory being 256 MB. Binary
trace data goes to file /tmp/gelan.TRC000
and combined file size being 128 MB. 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 128 MB and
maximum memory that can be allocated being 512 MB. 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 64 MB (as buffer size = 64 MB/2).
11. Terminate the tracing and logging facility.
nettl -stop
(See note for the -start option.)
12. Add a filter configuration file entry to capture packets that have the Syn and Ack flags set.
subsystem NS_LS_TCP th_flags==SA
13. Turn the filter on for the NS_LS_TCP subsystem.
nettl -flon NS_LS_TCP
14. Turn the filter off for the NS_LS_TCP subsystem.
nettl -floff NS_LS_TCP
HP-UX 11i Version 3: February 2007 − 9 − Hewlett-Packard Company 57