HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using nettl to filter on IP address and TCP port
Operating System - HP-UX
1838727
Members
6488
Online
110129
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
12-23-2003 09:35 PM
12-23-2003 09:35 PM
I would like to use nettl to try and capture connections into one of my unix servers
I would like to filter on
tcp port 12670
and one IP address..
What is the best way to go about doing this ?
Oh, and Merry Christmas to all.
Paul
I would like to filter on
tcp port 12670
and one IP address..
What is the best way to go about doing this ?
Oh, and Merry Christmas to all.
Paul
Argh ye land lovers !
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2003 09:56 PM
12-23-2003 09:56 PM
Solution
Hi Paul,
It is not possible to filter at nettl level
you can only filter in netfmt.
If you want to be able to filter on IP address, you must take the trace at ip level:
nettl -tn -e NS_LS_IP -f youroutputfile
nettl -tf -e all #stop the trace
netfmt -n -1LT -c myfilter myoutputfile.TR000
with myfilter containing:
FILTER ip_saddr theipyouwant
FILTER tcp_sport 12670
If you don't want to stop the trace you can
use the option -f of netfmt.
If the volume of data is to high, you can
reduce the size of each record with the nettl option -m 128 for instance which will keep only the first 128 bytes of each messages.
You can also enlarge the resulting files with
the option -tm
It is not possible to filter at nettl level
you can only filter in netfmt.
If you want to be able to filter on IP address, you must take the trace at ip level:
nettl -tn -e NS_LS_IP -f youroutputfile
nettl -tf -e all #stop the trace
netfmt -n -1LT -c myfilter myoutputfile.TR000
with myfilter containing:
FILTER ip_saddr theipyouwant
FILTER tcp_sport 12670
If you don't want to stop the trace you can
use the option -f of netfmt.
If the volume of data is to high, you can
reduce the size of each record with the nettl option -m 128 for instance which will keep only the first 128 bytes of each messages.
You can also enlarge the resulting files with
the option -tm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2003 10:02 PM
12-23-2003 10:02 PM
Re: Using nettl to filter on IP address and TCP port
Thats brilliant.
I just wish to filter incoming to 12670, as the IP address in the filter will beconnecting into the server.
Something similar in netstat -an to..
tcp 0 0 164.39.8.115.12670 164.39.11.99.4646 ESTABLISHED
So I would still use TCP_SPORT and not TCP_DPORT ?
Many thanks
I just wish to filter incoming to 12670, as the IP address in the filter will beconnecting into the server.
Something similar in netstat -an to..
tcp 0 0 164.39.8.115.12670 164.39.11.99.4646 ESTABLISHED
So I would still use TCP_SPORT and not TCP_DPORT ?
Many thanks
Argh ye land lovers !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2003 08:19 PM
12-24-2003 08:19 PM
Re: Using nettl to filter on IP address and TCP port
Tommo
Yes, it;s crimbo day, and yes i'm at work!!!!!!
Anyway
I've mailed you a doc I put together last year with regard to taking traces. It covers in and outbound ports etc
Have a good new year
Steve
Yes, it;s crimbo day, and yes i'm at work!!!!!!
Anyway
I've mailed you a doc I put together last year with regard to taking traces. It covers in and outbound ports etc
Have a good new year
Steve
take your time and think things through
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