Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Closing Ports on HPUX _ Mac - Android - Scripting

Closing Ports on HPUX _ Mac - Android - Scripting

Ratings: (0)|Views: 0|Likes:
Published by Syahmie Ramley

More info:

Published by: Syahmie Ramley on Oct 09, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/13/2014

pdf

text

original

 
1/2vladoportos.sk/scripting/closing-ports-on-hpux/ 
Search
Font Size
 
Share this:
ClosingClosingports on HPUXports on HPUX
Monday, 25 April 2011 13:34Last Updated on Sunday, 01 May 2011 08:07Written by VladoPortos0 Comments
Hello all,
Issue
You might get to situation when you get your application unresponsive or very slow ( related to applicationtype: client/server )one of the reasons might be that application don’t 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_WAITyou will get result lines like:
e0000007fc036600 010.090.175.039 676b9813 676b9813 00007ff5 00000514 6a6a766c 6a6a766c00008000 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 -lIf 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 / withscript.We are going to do it in two steps. First we create temporary files with this open ports, and than we will closethem one by one with script.
1st
ndd -get /dev/tcp tcp_status |grep FIN_WAIT > temp.txt
2nd
for i in `cat temp.txt | awk ‘{print $1}’`; do ndd -set /dev/tcp tcp_discon 0x${i}; doneThis should clean it up, check after, and get the program causing this to fix !Regards,
VladoPortos
Dell Malaysia Online Deal
Laptops From RM 1549. With Intel®Core™. Buy Online Now!www.dell.com/my
 
CategoriesCategories
How ToHow ToInfoInfoMacBook and Mac stuff MacBook and Mac stuff Making Money OnlineMaking Money OnlineMinecraftMinecraftnewsnewsOxfordOxfordScriptingScriptingStuff Stuff Tokyo and JapanTokyo and JapanWorld Of WarcraftWorld Of Warcraft
SONSSONSOF ELLYRIONOF ELLYRION
1(Graham McNeill)
0 from 416 Pages (0%)Ulthuan is a land at the verge of destruction. AtLothern, a fell army marches against the elvendefenders of Prince Imrik and Prince Tyrion.
FeelFeelgenerous today ?generous today ?
By me a beer !
HomeHomeAbout MeAbout MeMy 3D GalleryMy 3D GalleryContactContact

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->