HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
n
netfmt(1M) netfmt(1M)
filter tcp_sport shell
filter udp_dport 777
5. Format a TCP connection from local node
node2 to 192.6.1.3 which uses node2 service port
ftp and remote port 1198.
filter connection node2:ftp 192.6.1.3:1198
6. Format all packets except those that use interface
lan0:
filter interface ! lan0
7. Format all logged events for subsystem
ip. No other events are formatted. (By default, all
events are formatted):
filter subsystem ip event *
8. Format only event
5003 for subsystem ip. Format all events except 3000
for subsystem tcp.
No other events are formatted.
filter subsystem ip event 5003
filter subsystem tcp event *,!3000
9. Format only events 5003, 5004, 5005, and
5006 for subsystem ip. Format all events except
events
3000, 3002, and 3003 for subsystem tcp. No other events are formatted:
filter subsystem ip event 5003-5006
filter subsystem tcp event *,!3000,!3002-3003
10. Format only those records containing message IDs 9973
and 9974 for subsystem session and
those not containing message ID
9974 for subsystem transport . All records from other sub-
systems are formatted:
ots session msgid !*
ots session msgid 9973
ots session msgid 9974
ots transport msgid !9974
11. Combine LAN and general filtering options into one configuration file. Format 15 minutes of
pduin and pduout data starting at 3:00 PM on 2 April 1990 for data from lan0
interface.
formatter filter kind 0x30000000
formatter filter time_from 15:00:00 04/02/90
formatter filter time_through 15:15:00 04/02/90
filter interface !*
filter interface lan0
AUTHOR
netfmt was developed by HP.
FILES
/etc/nettlgen.conf
default subsystem configuration file
/var/adm/conslog.opts default console logging options filter file
$HOME/.netfmtrc default filter configuration file if the -c config_file option is not used
on the command line.
SEE ALSO
nettl(1M), nettlconf(1M), nettlgen.conf(4), strlog(7).
48 Hewlett-Packard Company − 9 − HP-UX 11i Version 3: February 2007