Operating System - HP-UX
1827136 Members
2995 Online
109716 Solutions
New Discussion

which program use the special port

 
SOLVED
Go to solution
benseghir_1
Advisor

which program use the special port


hello,

i do netsat -na ,i got a listing of open ports,but haven't a complete informations,ei
which program use this open port.

thanks in advance
6 REPLIES 6
RAC_1
Honored Contributor
Solution

Re: which program use the special port

Get lsof tool.
(lsof- list open files) From http://hpux.connect.org.uk

lsof -p tcp:80
Will list the progrm that is using the tcp port 80
lsof -p udp:54

Anil
There is no substitute to HARDWORK
harry d brown jr
Honored Contributor

Re: which program use the special port

anil,

you mean ("dash eye" aka -i ) :

lsof -i tcp:80

lsof -i udp:54

here's the full path to lsof http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.74/

live free or die
harry d brown jr
Live Free or Die
benseghir_1
Advisor

Re: which program use the special port

thank for your help:
i have dowload lsof 4.47 when i install it,it didn' work , when i execute lsof i got
segmentation fault; when i search in internet , it write that this version isn't stable, then if you have a link for old version, please transmit it ....
i have HPUX 11.11 64bits

thank in advance for your help
harry d brown jr
Honored Contributor

Re: which program use the special port

This is the 11.11 64bit version:

http://hpux.ee.ualberta.ca/ftp/hpux/Sysadmin/lsof-4.74/lsof-4.74-sd-11.11.depot.gz

live free or die
harry d brown jr
Live Free or Die
benseghir_1
Advisor

Re: which program use the special port


hello all,

i load the source of lsof in the link ,i compiled it , it fonctionne very well
thanks a lot for all.
harry d brown jr
Honored Contributor

Re: which program use the special port

Glad we could help!

have a look at: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

live free or die
harry d brown jr
Live Free or Die