1832600 Members
3000 Online
110043 Solutions
New Discussion

Re: Port in use

 
SOLVED
Go to solution
Francois Rabe
Advisor

Port in use

How do I find what process is using what port? When I try and start Oracle I get a "port in use message". I have used netstat -an and this does not show the port or process it is complaining about I also tried netstat -u, but this gives some funny numbers in hex or so. Is there something in Tru64 Unix similar to lsof for TRU64?
6 REPLIES 6
Bharat Katkar
Honored Contributor

Re: Port in use

Hi,
If you are looking for lsof then i have attached herewith.
Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor
Solution

Re: Port in use

for more info:
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/
You need to know a lot to actually know how little you know
Anil C. Sedha
Trusted Contributor

Re: Port in use

Francois,

run lsof as below, and you will get enough info to fix the issue

lsof -i@hostname:port

it will give you details on the process using the port number, and you can kill it.

-willy
If you need to learn, now is the best opportunity
Gerhard Roets
Esteemed Contributor

Re: Port in use

Hi Francios

Well if im reading your question correctly you are running tru64 ... thats what the last line implies i assume.

Here is a link for it. it might help you out. It is on the page.

http://www.tru64.org/pages.php?page=Software

Regards
Gerhard
Ivajlo Yanakiev
Respected Contributor

Re: Port in use

lsof is your tool.
It show all socket and open ports and files.
The problem is that lsof isn't in your HPUX OS.
you need download lsof.depot form this site:
http://hpux.cs.utah.edu/
/use search area and write lsof /
make sure that you install all reguared software !!!
Francois Rabe
Advisor

Re: Port in use

Thanks all the responded.It seems like lsof is the tool. Thanks!