HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
n
nettl(1M) nettl(1M)
All log messages written to the console as a result of this configuration information are in a special short
form. If more information is desired on the console, the
netfmt formatter can be used to direct output to
the console device. This may be most useful in an X windows environment.
Console logging may be disabled if conservation of system resources is valued more than notification of log
events.
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 -log e w -e all
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 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): 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.
60 Hewlett-Packard Company − 7 − HP-UX 11i Version 2: December 2007 Update