how to clear particular port

Hi Everyone,

How to check the status of the particular port and also clear it if it is locked without reboot?

Please suggest.

Thank you.

use netstat and ndd...

Thanks vbe..
though i could find the status of the port whether it is listening or not for particular service, i wonder if there is any direct command that could clear the port.

In my experience of HP-UX only a reboot will work. The stuck processes themselves are usually harmless.

What are you looking for?
CLOSE_WAIT or FIN_WAIT issues?

You could use lsof to determinate wich PIDs are use the port you want and then try to kill it instead of reboot.

Thanks methyl,vbe and Rubick for your help.

I found the process,killed it and again started,that solved the problem.

Thank you.