Operating System - HP-UX
1754294 Members
2822 Online
108813 Solutions
New Discussion юеВ

How to find out what process is utilizing a port

 
Otto Folprecht
Advisor

How to find out what process is utilizing a port

Hi. I need to find out what process is utilizing the port 8080. I do not have lsof (tied to man and run the command). Any suggestions. THX Otto
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: How to find out what process is utilizing a port

You can get lsof from here:
http://hpux.its.tudelft.nl/hppd/hpux/Sysadmin/lsof-4.77/

It's a very easy swinstall.

Run it as "lsof -i :8080".

Netstat -an can find ports in use but cannot tie them to a process.

If you go to www.iana.org, you will find that port 8080 is registered as an alternate http port.

http://www.iana.org/assignments/port-numbers
If it ain't broke, I can fix that.
Steven E. Protter
Exalted Contributor

Re: How to find out what process is utilizing a port

Shalom Otto,

lsof is worth it even if you have to compile it. I've had better luck with compiling it versus swinstall, though we're mostly a PA-RISC 11.11 shop.

Great tool.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skt_skt
Honored Contributor

Re: How to find out what process is utilizing a port

losf is the right tool here.

LSOF_64bit 1.0 lsof the open file utility for hpux 11.00 (64 bit) is what i use for my HP-UX boxes.
skt_skt
Honored Contributor

Re: How to find out what process is utilizing a port

adedd13n:root [/home/kumarts] /usr/local/bin/lsof -v
lsof version information:
revision: 4.73
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
configuration info: PSTAT-based
constructed: Mon Nov 8 11:02:06 GMT 2004
constructed by and on: root@hades
compiler: /usr/local/bin/gcc
compiler version: 3.4.3
compiler flags: -DHAS_CONST -DHPUXV=1111 -D_PSTAT64 -DLSOF_VSTR="B.11.11" -O
loader flags: -L./lib -llsof -lnsl
system info: HP-UX hades B.11.11 U 9000/800 1335053341 unlimited-user license
Only root can list all files.
/dev warnings are disabled.
Kernel ID check is disabled.