HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
n
nettl(1M) nettl(1M)
(See note for the -start option.)
2. Display the status of the tracing/logging facility.
nettl -status all
3. Change log class to
error and warning for all the subsystems. disaster logging is always on
for all subsystems.
nettl -logew-eall
4. Turn on inbound and outbound PDU tracing for the
transport and session (OTS/9000) subsys-
tems and send binary trace messages to file
/var/adm/trace.TRC000
.
nettl -traceon pduin pduout -entity transport session \
-file /var/adm/trace
5. Turn on outbound PDU tracing for X.25 level two and subsystems
ns_ls_ipv6 and 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 SX25L2 ns_ls_ipv6 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
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 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.
Section 1M−−520 Hewlett-Packard Company − 7 − HP-UX 11i Version 2: August 2003