nettl.1m (2010 09)

n
nettl(1M) nettl(1M)
NS_LS_IP ip_src, ip_dst, ip_proto, icmp_type, icmp_code
NS_LS_TCP th_sport, th_dport, th_flags
NS_LS_UDP uh_sport, uh_dport
NS_LS_ICMP icmp_type, icmp_code
EXTERNAL INFLUENCES
International Code Set Support
Single and multibyte character code sets are supported in data; single-byte character code sets are sup-
ported in file names.
EXAMPLES
1. Initialize the tracing/logging facility:
nettl -start
(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
HP-UX 11i Version 3: September 2010 9 Hewlett-Packard Company 9