Operating System - HP-UX
1834481 Members
3429 Online
110067 Solutions
New Discussion

Re: How to release a port

 
Platinum
Occasional Advisor

How to release a port

In our system, a port is always occupied by a dead process, the process is a non-hp application. How to release the port?
4 REPLIES 4
Tim D Fulford
Honored Contributor

Re: How to release a port

ndd /dev/tcp/tcp_discon

I use the above to disconnect FIN_WAIT_2's the socket is a hex number, from memory you can use something like printf "x\n", to get the hex worked out.

Also see James & Stefan's answers

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x8f1acb60e503d6118ff40090279cd0f9,00.html
-
Rajeev  Shukla
Honored Contributor

Re: How to release a port

See the application has to be seen more carefully as why it doesn't release the port. Though you can release the port by ndd but its not the appropriate way to do every time.

Cheers
Rajeev

Re: How to release a port

You can find out the process associated with the port using a utility called lsof.

you can get it from ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
It Has Been...
KapilRaj
Honored Contributor

Re: How to release a port

use lsof to find out the parent process who own's the port. then terminate them (if theyare not important)

kaps
Nothing is impossible