Operating System - HP-UX
1849711 Members
6422 Online
104044 Solutions
New Discussion

Re: how do I match a socket to a process ?

 
SOLVED
Go to solution
Duval Carias
New Member

how do I match a socket to a process ?

Is there a command in HP-UX that lets me match a socket to a process,
such that when I do a netstat, I can then trace which deamon has bound to which port ?
2 REPLIES 2
Andreas Voss
Honored Contributor
Solution

Re: how do I match a socket to a process ?

Hi,

with lsof you can see which process has what opened (including sockets)
You can get it here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.48/

Regards

Andrew
Rick Garland
Honored Contributor

Re: how do I match a socket to a process ?

Get a use lsof. This is not an HP supported app but works well and can give the information you are seeking and more.