HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
n
nettl(1M) nettl(1M)
Filter Configuration File
This file is used to configure the filters. Entries in the file have the following syntax:
Subsystem subsystem_name filter expression
The filter expression can be constructed using operands and operators.
The supported filter operands are:
Operand Description
mac_src Source Mac Address
mac_dst Destination Mac Address
mac_type Ethernet type
ip_src Source IP Address
ip_dst Destination IP Address
ip_p IP Protocol
th_sport TCP source port
th_dport TCP destination port
th_flags TCP flags
uh_sport UDP source port
uh_dport UDP destination port
icmp_type ICMP type
icmp_code ICMP code
The supported operators are ==, !=, <, <=, >, and >=
.
Note that the
= (single equal) operator is not supported.
Logical operators that are supported are || and &&. The logical operators are used to combine the indivi-
dual filters for a subsystem.
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*
56 Hewlett-Packard Company − 8 − HP-UX 11i Version 3: February 2007