Documente Academic
Documente Profesional
Documente Cultură
Search
About Me
My 3D Gallery
Contact
Font Size
Categories
How To Info MacBook and Mac stuff Making Money Online
Dell Malaysia Online Deal
Laptops From R M 1549. W ith Inte l C ore . Buy O nline Now! www.de ll.com /m y
Minecraft news Oxford Scripting Stuff Tokyo and Japan World Of Warcraft
Issue
type: client/server )
You might get to situation when you get your application unresponsive or very slow ( related to application one of the reasons might be that application dont close port properly so you end up with large number of opened ports waiting for closure You can check using this command as root: ndd -get /dev/tcp tcp_status |grep FIN_WAIT
you will get result lines like: e0000007fc036600 010.090.175.039 676b9813 676b9813 00007ff5 00000514 6a6a766c 6a6a766c 00008000 04000 01300 [dfa4,204] TCP_FIN_WAIT_2* Or count the ports waiting for closure: ndd -get /dev/tcp tcp_status |grep FIN_WAIT | wc -l
SONS OF ELLYRION
If you get high number that is not going down, you have a problem
Solution
although not recommended there is temporary workaround to deal with this. Closing the ports manually / with script. We are going to do it in two steps. First we create temporary files with this open ports, and than we will close them one by one with script. 1st ndd -get /dev/tcp tcp_status |grep FIN_WAIT > temp.txt 0 from 416 Pages (0%) Ulthuan is a land at the verge of destruction. At Lothern, a fell army marches against the elven defenders of Prince Imrik and Prince Tyrion. 2nd for i in `cat temp.txt | awk {print $1}`; do ndd -set /dev/tcp tcp_discon 0x${i}; done 1 (Graham McNeill)
Share this:
Digg
vladoportos.sk/scripting/closing-ports-on-hpux/
1/2
StumbleUpon
Tags: client, closed, FIN_WAIT, HPUX, ndd, open, opened, port, server, slow, tcp_discon, tcp_status, Unix, unresponsive, waiting
This entry w as posted on Monday, April 25th, 2011 at 13:34 and is filed under Scripting. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your ow n site.
Leave a Reply
Name (Required)
E-mail (Required)
Website
Scroll To Top
Login
Username
Password
Remember Me LOGIN
Powered By
vladoportos.sk/scripting/closing-ports-on-hpux/
2/2