HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
n
netfmt(1M) netfmt(1M)
LAN trace and log filters use the following format:
filter type [!] value *
filter
is the keyword identifying the filter as a LAN subsystem filter.
The following filters are available for LAN tracing.
filter connection value
value takes the form:
local_addr:port remote_addr:port
where local_addr and remote_addr can be a hostname or a 4-byte Internet address specified in
decimal dot notation (see inet(3N) for more information on Internet addresses and decimal dot
notations). port can be a service name or an integer. integer represents a port and can be desig-
nated by a hexadecimal integer (
0xdigits), an octal integer (
0digits), or base-10 integers (0
through 65535).
filter connection6 value
value takes the form:
local_IPv6addr|port remote_IPv6addr
|port
where local_IPv6addr and remote_IPv6addr can be a hostname or a 16-byte Internet address
specified in colon notation (see inet6(3N) for more information on IPv6 Internet addresses and
colon notations). port can be a service name or an integer. integer represents a port and can be
designated by a hexadecimal integer (
0xdigits), an octal integer (0digits), or base-10 integers (0
through 65535).
filter dest value
filter source value
value is a hardware address consisting of 6 bytes specified in hexadecimal (without leading 0x
),
optionally separated by
-.
filter dsap value
filter ssap value
value is a hexadecimal integer of the form: 0xdigit; an octal integer of the form:
0digits;ora
base-ten integer, 0 through 255.
filter interface value
value identifies a network interface and takes the form: lann for LAN interface, or
lon for
loopback interface, where n is the logical unit number, as in
lan0.
filter ip_daddr value
filter ip_saddr value
value is a hostname or a 4-byte Internet address specified in decimal dot notation (see inet(3N)
for more information on Internet addresses and decimal dot notations).
filter ip6_daddr value
filter ip6_saddr value
value is a hostname or a 16-byte Internet address specified in colon notation (see inet6(3N) for
more information on Internet addresses and colon notations).
filter ip_proto value
filter ip6_proto value
value is a hexadecimal integer of the form: 0xdigit; an octal integer of the form: 0digits;ora
base-ten integer, 0 through 255 (see protocols(4) for more information on protocol numbers).
filter tcp_dport value
filter tcp_sport value
filter udp_dport value
filter udp_sport value
value is a port number designated as a 2-byte integer value or a service name. The integer value
can be designated by a hexadecimal integer (0xdigits), an octal integer (0digits), or a base-10
integer (0 through 65535).
filter rpcprogram value
value is a RPC program name or an integer RPC program number (see rpc(4) for more informa-
tion on RPC program names). The integer value can be designated by a hexadecimal integer
(0xdigits), an octal integer (0digits), or a base-10 integer (0 through 65535).
50 Hewlett-Packard Company − 7 − HP-UX 11i Version 2: December 2007 Update