Operating System - HP-UX
1833718 Members
2560 Online
110063 Solutions
New Discussion

is it possable to find the process occupied a port?

 
SOLVED
Go to solution
faust2004
Regular Advisor

is it possable to find the process occupied a port?

Hi, export,
using netstat -r , I can get this message:
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 0 client1.3480 gs80.polyserv ESTABLISHED
is it possable to find out the process
occupied port 3480 ?

Thanks
Sunny
6 REPLIES 6
Steven Sim Kok Leong
Honored Contributor
Solution

Re: is it possable to find the process occupied a port?

Hi,

Use lsof. You can get lsof from:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.61/

Hope this helps. Regards.

Steven Sim Kok Leong
James R. Ferguson
Acclaimed Contributor

Re: is it possable to find the process occupied a port?

Hi Sunny:

The best tool is 'lsof':

http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/

Regards!

...JRF...
Niraj Kumar Verma
Trusted Contributor

Re: is it possable to find the process occupied a port?

hi,

lsof is the best tool to find it

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.61/


-Niraj
Niraj.Verma@philips.com
Wodisch
Honored Contributor

Re: is it possable to find the process occupied a port?

Hi Sunny,

the syntax for using "lsof" is:

lsof -i tcp:3480
or
lsof -i udp:3480

if you are interested in port 3480, over the appropriate protocol, TCP or UDP...

HTH,
Wodisch
faust2004
Regular Advisor

Re: is it possable to find the process occupied a port?

Thanks all
is there similar tools in dec box (alpha 4.0d)

Thanks
Sunny

Steven Sim Kok Leong
Honored Contributor

Re: is it possable to find the process occupied a port?

Hi,

You should be able to compile the source on DG-UX.

Hope this helps. Regards.

Steven Sim Kok Leong