- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TCP Port monitoring
Operating System - HP-UX
1822457
Members
2548
Online
109642
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
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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-07-1999 04:43 AM
тАО12-07-1999 04:43 AM
TCP Port monitoring
I need to find out if there is a way to monitor data coming in to a particular
TCP port. I have a CAD application running a phantom process on port 142 and I
need to see if a different server is sending data to that port. Thanks!
TCP port. I have a CAD application running a phantom process on port 142 and I
need to see if a different server is sending data to that port. Thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-1999 11:00 PM
тАО12-07-1999 11:00 PM
Re: TCP Port monitoring
Hi,
You can use the tool 'tcpdump' for this.
If you are running hp-ux, you can download this tool from
http://hpux.csc.liv.ac.uk
Regards
Sajith
You can use the tool 'tcpdump' for this.
If you are running hp-ux, you can download this tool from
http://hpux.csc.liv.ac.uk
Regards
Sajith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-1999 07:08 AM
тАО12-10-1999 07:08 AM
Re: TCP Port monitoring
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-1999 09:37 PM
тАО12-13-1999 09:37 PM
Re: TCP Port monitoring
tcpdump has some disadvantages on HP-UX.
Use the built in nettl and netfmt like in my scripts "traceon" and "traceoff"
below. To trace port 141 you say:
./traceon 141 | less
and if you're finished use
./traceoff
--- file traceon ---
#! /bin/ksh -p
echo Tracing TCP and UPD port $1 in
echo filter tcp_dport $1 > /root/scripts/netfmt.filter
echo filter udp_dport $1 >> /root/scripts/netfmt.filter
nettl -traceoff -entity all > /dev/null 2> /dev/null
# Turn off all tracing
nettl -traceon pduin -entity all -size 128 -file /tmp/raw
# Turn on tracing for data in (pduin)
netfmt -N -F -l -f /tmp/raw.TRC0 -c /root/scripts/netfmt.filter
# display that
--- end file traceon ---
---file traceoff ---
#! /bin/ksh -p
echo Tracing of TCP and UPD off!
nettl -traceoff -entity all > /dev/null 2> /dev/null
# Turn off all tracing
--- end file traceoff ---
Use the built in nettl and netfmt like in my scripts "traceon" and "traceoff"
below. To trace port 141 you say:
./traceon 141 | less
and if you're finished use
./traceoff
--- file traceon ---
#! /bin/ksh -p
echo Tracing TCP and UPD port $1 in
echo filter tcp_dport $1 > /root/scripts/netfmt.filter
echo filter udp_dport $1 >> /root/scripts/netfmt.filter
nettl -traceoff -entity all > /dev/null 2> /dev/null
# Turn off all tracing
nettl -traceon pduin -entity all -size 128 -file /tmp/raw
# Turn on tracing for data in (pduin)
netfmt -N -F -l -f /tmp/raw.TRC0 -c /root/scripts/netfmt.filter
# display that
--- end file traceon ---
---file traceoff ---
#! /bin/ksh -p
echo Tracing of TCP and UPD off!
nettl -traceoff -entity all > /dev/null 2> /dev/null
# Turn off all tracing
--- end file traceoff ---
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP