HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Nettl filters
Operating System - HP-UX
1833571
Members
3493
Online
110061
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 12:25 AM
07-29-2003 12:25 AM
Hi,
How do I specify in nettl to monitor packets only in a particular port of a quad ethernet nic?
Also can anyone show me a sample filter I can use and how to use it with nettl so that I could capture packets based on particular ip addresses or port numbers only.
Thanks in advance.
How do I specify in nettl to monitor packets only in a particular port of a quad ethernet nic?
Also can anyone show me a sample filter I can use and how to use it with nettl so that I could capture packets based on particular ip addresses or port numbers only.
Thanks in advance.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 04:16 AM
07-29-2003 04:16 AM
Solution
I assume you're talking about tcp / udp port numbers here? If so, and you must use nettl/netfmt, the following netfmt filters will work:
filter ip_daddr # destination addr
filter ip_saddr # source addr
filter tcp_sport # source tcp port
filter tcp_dport # dest tcp port
filter udp_sport # source udp port
filter udp_dport # dest udp port
Run man netfmt for a full list. Just put whatever combination of the above you need into a file (remembering that a packet needs to match ALL filters to be allowed through), and then start tracing as follows:
# nettl -tn pduin pduout -e ns_ls_ip -s 1024 | netfmt -lnNF -c
That will dump packets to stdout, you can redirect to a file if necessary. Don't forget to turn off tracing when done with the following command:
# nettl -tf -e ns_ls_ip
Alternatively, get tcpdump or ethereal from the porting centre as I find these tools a lot easier to use on a busy system than nettl:
http://hpux.connect.org.uk/
Regards,
Steve
filter ip_daddr
filter ip_saddr
filter tcp_sport
filter tcp_dport
filter udp_sport
filter udp_dport
Run man netfmt for a full list. Just put whatever combination of the above you need into a file (remembering that a packet needs to match ALL filters to be allowed through), and then start tracing as follows:
# nettl -tn pduin pduout -e ns_ls_ip -s 1024 | netfmt -lnNF -c
That will dump packets to stdout, you can redirect to a file if necessary. Don't forget to turn off tracing when done with the following command:
# nettl -tf -e ns_ls_ip
Alternatively, get tcpdump or ethereal from the porting centre as I find these tools a lot easier to use on a busy system than nettl:
http://hpux.connect.org.uk/
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 04:31 AM
07-29-2003 04:31 AM
Re: Nettl filters
this doc should help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 05:08 AM
07-29-2003 05:08 AM
Re: Nettl filters
Thanx TG,
great stuff for nettl.
That saves me to write it down. =;-}}
Thanx.
NO POINTS PLEASE!! ONLY COMMENT
Roland
great stuff for nettl.
That saves me to write it down. =;-}}
Thanx.
NO POINTS PLEASE!! ONLY COMMENT
Roland
Sometimes you lose and sometimes the others win
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP