HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
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 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 abbre-
viated 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): 1024
User’s ID: 0 Buffer Size: 32768
User Buffer size(KB) : 128 Number of user buffers: 2
Kernel Buffer size(KB): 32 Number of kernel buffers: 2
Messages Dropped: 0 Messages Queued: 0
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. To capture lossless traces of 500 bytes (for a duration of 5 minutes) on a 8-way 440Mhz N-class and on
a gigabit interface, say lan1, turn on tracing with 5 kernel buffers of 10 MB each and 5 user buffers
of 30 MB each. This example uses abbreviated options and assumes that the -traceon option is
being used for the first time. Binary trace data goes to file
/var/adm/igelan.TRC000
. Note
that the
-tracemax option is also used as maxsize/2 should at least be equal to user_buffersize.
Note: Under some conditions, especially under heavy inbound traffic to the card, trace loss might be seen.
In such cases, the tracing duration has to be reduced and/or buffer configuration has to be increased.
nettl -tn all -e igelan -m 500 -c /dev/lan1 -ks 10M -us 30M
-nk 5 -nu 5 -tm 60M -f /var/adm/igelan
10. Turn on tracing for ns_ls_ip with all kinds and set the combined trace file size to 250 KB. This
example uses abbreviated options and assumes that the -traceon option is being used for the first
time. Please note the warning.
nettl -tn all -e ns_ls_ip -tm 250K -f /tmp/ip
nettl : Warning: Individual trace file size should be a
multiple of user buffer size. Hence, the maximum trace file
size is adjusted to 256 Kilobytes.
11. Terminate the tracing and logging facility.
nettl -stop
(See note for the -start option.)
HP-UX 11i Version 1: September 2005 − 7 − Hewlett-Packard Company Section 1M−−573