- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process and port monitoring
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО09-09-2003 12:57 PM
тАО09-09-2003 12:57 PM
Process and port monitoring
I am in the process of monitoring system activities. I would like to know whether there are any tools available to see which process activates a port for listening to incoming requests
thanks in advance
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 01:00 PM
тАО09-09-2003 01:00 PM
Re: Process and port monitoring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 01:32 PM
тАО09-09-2003 01:32 PM
Re: Process and port monitoring
Have a look at your /etc/services file this will tell you which processes listen on which port
netstat -an will give you in and outbound connection details per ip address
for a more detailed view you I would download a tool called lsof
You can the 64 bit version from here:
http://www.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/
32 bit version from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.64/
Example
# lsof -i tcp:49152
Will dispaly all processes currently attached to that port
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 03:55 PM
тАО09-09-2003 03:55 PM
Re: Process and port monitoring
I'd agree with Steven & get a copy of lsof on your system.
It is far superior to netstat in tracing what processes/applications have got open ports. Often if a service is not listed in /etc/services, then it is difficult with netstat to know what process is using that port.
Useful command:
# lsof -i | grep LISTEN
This will show all ports that are listening & what processes are using them.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2003 05:47 PM
тАО09-09-2003 05:47 PM
Re: Process and port monitoring
LSOF is the answer for your question as per the content of the message. It can help you in finding the processes associated with the ports. /etc/services is only a look up file which may or may not be used by all the processes that listen/connect at/to tcp/udp ports.
But the heading of your question "port monitoring", you will need to either have your corresponding process log the incoming connections or use sniffers. "nettl" is readily available on HP-UX. Look at nettl and netfmt commands for more information. From 11.0 onwards, there is a GUI version of nettl called "nettladm" available that can ease your job. tcpdump,snort,ethereal are few more famous toosl that you can get from HP's porting site.
These sniffers will consume a lot of disk space if you don't use filters.
-Sri