Sunteți pe pagina 1din 2

Home

Search

About Me

My 3D Gallery

Contact
Font Size

Closing ports on HPUX


Monday, 25 April 2011 13:34 Last Updated on Sunday, 01 May 2011 08:07 Written by VladoPortos 0 Comments Hello all,

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)

Feel generous today ?


This should clean it up, check after, and get the program causing this to fix ! By me a beer ! Regards, VladoPortos

Share this:

Print

Email

Reddit

Facebook

Digg

Twitter

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

SEND Notify me of follow-up comments by email. Notify me of new posts by email.

Scroll To Top

Login
Username

Password

Remember Me LOGIN

Forgot your password?

Copyright 2011. WebMaster: VladoPortos

Powered By

vladoportos.sk/scripting/closing-ports-on-hpux/

2/2

S-ar putea să vă placă și