<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reset / reclaim port in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410067#M352912</link>
    <description>all,&lt;BR /&gt;&lt;BR /&gt;I have an application running on my server rp4440, run hp-ux 11.11 with port 5501. The application is become hang and cannot be shutdown and kill. &lt;BR /&gt;&lt;BR /&gt;# netstat -an |grep 5501&lt;BR /&gt;tcp        0      0  10.2.245.13.63151      10.2.224.49.5501        FIN_WAIT_2&lt;BR /&gt;        55013540 stream      0      0                0         5b5de9c0                0                0&lt;BR /&gt;        550139c0 stream      0      0                0         54e14680                0                0&lt;BR /&gt;        55013b40 stream      0      0                0         54e14600                0                0 /tmp/.AgentSockets/A&lt;BR /&gt;# lsof -i:5501&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;how to reset this port ? should i reboot my server ?</description>
    <pubDate>Wed, 29 Apr 2009 08:06:56 GMT</pubDate>
    <dc:creator>yulianto piyut</dc:creator>
    <dc:date>2009-04-29T08:06:56Z</dc:date>
    <item>
      <title>Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410067#M352912</link>
      <description>all,&lt;BR /&gt;&lt;BR /&gt;I have an application running on my server rp4440, run hp-ux 11.11 with port 5501. The application is become hang and cannot be shutdown and kill. &lt;BR /&gt;&lt;BR /&gt;# netstat -an |grep 5501&lt;BR /&gt;tcp        0      0  10.2.245.13.63151      10.2.224.49.5501        FIN_WAIT_2&lt;BR /&gt;        55013540 stream      0      0                0         5b5de9c0                0                0&lt;BR /&gt;        550139c0 stream      0      0                0         54e14680                0                0&lt;BR /&gt;        55013b40 stream      0      0                0         54e14600                0                0 /tmp/.AgentSockets/A&lt;BR /&gt;# lsof -i:5501&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;how to reset this port ? should i reboot my server ?</description>
      <pubDate>Wed, 29 Apr 2009 08:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410067#M352912</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2009-04-29T08:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410068#M352913</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;reboot is always a clean solution.&lt;BR /&gt;You also can try to change boot level to 'init 2' or 'init 1', then go back to 'init 3'.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Volkmar</description>
      <pubDate>Wed, 29 Apr 2009 08:52:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410068#M352913</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2009-04-29T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410069#M352914</link>
      <description>oo...only reboot server to reset the port ? hmm...not good for my production server.</description>
      <pubDate>Wed, 29 Apr 2009 08:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410069#M352914</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2009-04-29T08:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410070#M352915</link>
      <description>Your socket is in FIN_WAIT_2 state and the process associated with the socket has already died. This means the socket is in "detached" state.&lt;BR /&gt;&lt;BR /&gt;With default settings, the solution should be simple: just wait 2 minutes. The system should automatically remove this socket in that time.&lt;BR /&gt;&lt;BR /&gt;This behaviour is controlled by the ndd parameter "tcp_keepalive_detached_interval". To check it, run:&lt;BR /&gt;&lt;BR /&gt;ndd -get /dev/tcp tcp_keepalive_detached_interval&lt;BR /&gt;&lt;BR /&gt;The default value for this parameter is 120000, which means 120 seconds (=2 minutes).&lt;BR /&gt;&lt;BR /&gt;If the socket does not go away and/or your tcp_keepalive_detached_interval is currently set to an unreasonably long time, you might use the attached Perl script. It will use an *unsupported* ndd parameter "tcp_discon_by_addr" to force disconnect *all* connections that are currently in state FIN_WAIT_2. It was originally created for HP-UX 11.00, but should work on 11.11 too.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 29 Apr 2009 10:01:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410070#M352915</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-04-29T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410071#M352916</link>
      <description>hi matti, how to use tcp_discon_by_addr?&lt;BR /&gt;the port state of 5501 still FIN_WAIT_2. it's happened for about 1 month ago.&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Apr 2009 10:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410071#M352916</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2009-04-29T10:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410072#M352917</link>
      <description>The easiest way would be to just run the script I attached: it does not require any parameters.&lt;BR /&gt;&lt;BR /&gt;To use tcp_discon_by_addr directly, you would have to convert the local IP address, local port number, remote IP address and remote port number to hexadecimal and concatenate all of them together in this order. (always 2 hex digits for each part of an IP address, and always 4 hex digits for the port number; add leading zeroes if necessary)&lt;BR /&gt;&lt;BR /&gt;For your specific case, the command line would be:&lt;BR /&gt;&lt;BR /&gt;ndd -set /dev/tcp tcp_discon_by_addr 0a02f50df6af0a02e031157d&lt;BR /&gt;&lt;BR /&gt;The conversion:&lt;BR /&gt;10.2.245.13 = 0a 02 f5 0d&lt;BR /&gt;63151 = f6af&lt;BR /&gt;10.2.224.49 = 0a 02 e0 31&lt;BR /&gt;5501 = 157d&lt;BR /&gt;&lt;BR /&gt;(I was hoping I would not have to do this conversion by hand by providing the script. Oh well, slow day... :-)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 29 Apr 2009 10:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410072#M352917</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-04-29T10:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410073#M352918</link>
      <description>hi, after i run script in your attachment:&lt;BR /&gt;&lt;BR /&gt;# netstat -an |grep 5501&lt;BR /&gt;tcp        0      0  10.2.245.13.1556       10.2.245.13.55010       ESTABLISHED&lt;BR /&gt;tcp        0      0  10.2.245.13.55010      10.2.245.13.1556        ESTABLISHED&lt;BR /&gt;        550139c0 stream      0      0                0         54e14680                0                0&lt;BR /&gt;        55013b40 stream      0      0                0         54e14600                0                0 /tmp/.AgentSockets/A&lt;BR /&gt;&lt;BR /&gt;hmm...i'm confuse, how to use port 5501 again ?</description>
      <pubDate>Thu, 30 Apr 2009 06:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410073#M352918</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2009-04-30T06:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410074#M352919</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;not all ports are used every time.&lt;BR /&gt;The port will be used again after restart of your application.&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Apr 2009 07:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410074#M352919</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2009-04-30T07:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410075#M352920</link>
      <description>hi nyga,&lt;BR /&gt;&lt;BR /&gt;the applicaiton cannot be killed or shutdown and port 5501 is used for it.</description>
      <pubDate>Thu, 30 Apr 2009 07:54:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410075#M352920</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2009-04-30T07:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410076#M352921</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;yes, but you says it's hanging ....&lt;BR /&gt;so it can't (and don't need to) use the port now.&lt;BR /&gt;It seems like you have to investigate how to stop the application.&lt;BR /&gt;Have you tried 'kill -9 &lt;PID&gt;'?&lt;BR /&gt;Any error message?&lt;BR /&gt;&lt;BR /&gt;What kind of application?&lt;BR /&gt;Have you tried to kill the parent process?&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;/PID&gt;</description>
      <pubDate>Thu, 30 Apr 2009 08:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410076#M352921</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2009-04-30T08:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410077#M352922</link>
      <description>I have tried to kill -9 (PID) and parent process, but the application daemon still run. The application is replication software, Repx, called topio software from netapp. Netapp engineer said this application use port 5501 and this port is going down.</description>
      <pubDate>Thu, 30 Apr 2009 08:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410077#M352922</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2009-04-30T08:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410078#M352923</link>
      <description>Well, Netapp should be able to tell you how to stop it :-)&lt;BR /&gt;Is there a replication hardware involved?&lt;BR /&gt;Can you switch it off?&lt;BR /&gt;Or:&lt;BR /&gt;Can you restart the application?&lt;BR /&gt;&lt;BR /&gt;Else I think your only option is a restart of your server during a maintenance window, or at least change to init 2, but this if of course similar to a reboot, only shorter.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Apr 2009 08:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410078#M352923</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2009-04-30T08:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410079#M352924</link>
      <description>hehehe...no hardware involved in this application. I think, application going to hang and should reboot my server.  I can not kill, restart, &amp;amp; shutdown this application and in hp-ux, there is no command to kill zombie process. in sun, there is command "preape" to kill zombie process. isn't it ?</description>
      <pubDate>Thu, 30 Apr 2009 09:14:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410079#M352924</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2009-04-30T09:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reset / reclaim port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410080#M352925</link>
      <description>&amp;gt;there is no command to kill zombie process.&lt;BR /&gt;&lt;BR /&gt;You can kill zombies by killing the zombie master.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I have tried to kill -9 (PID) and parent process,&lt;BR /&gt;&lt;BR /&gt;Then this isn't a zombie, it is hung.</description>
      <pubDate>Fri, 01 May 2009 03:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/reset-reclaim-port/m-p/4410080#M352925</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-01T03:39:16Z</dc:date>
    </item>
  </channel>
</rss>

