<?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 blocked socket in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651836#M46212</link>
    <description>Is it possible to free a blocked socket without rebooting the machine ?</description>
    <pubDate>Thu, 24 Jan 2002 07:51:53 GMT</pubDate>
    <dc:creator>Andreas Bednarz</dc:creator>
    <dc:date>2002-01-24T07:51:53Z</dc:date>
    <item>
      <title>blocked socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651836#M46212</link>
      <description>Is it possible to free a blocked socket without rebooting the machine ?</description>
      <pubDate>Thu, 24 Jan 2002 07:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651836#M46212</guid>
      <dc:creator>Andreas Bednarz</dc:creator>
      <dc:date>2002-01-24T07:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: blocked socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651837#M46213</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;The unorthodox method of using tcp_discon or tcp_discon_by_addr allows terminating of connections in the connections table without the need for a reboot. However, my advice is to use it only as a last resort. &lt;BR /&gt;&lt;BR /&gt;To use the ndd -set /dev/tcp tcp_discon, you need the pointer to the TCP instance data. You can retrieve this via the ndd command tcp_status. &lt;BR /&gt;&lt;BR /&gt;So, the scenario to find the TCP instance data and then use tcp_discon to remove the instance is as follows: &lt;BR /&gt;&lt;BR /&gt;# ndd -get /dev/tcp tcp_status &lt;BR /&gt;TCP dest snxt suna swnd cwnd rnxt rack rwnd rto mss [lport,fport] state &lt;BR /&gt;&lt;BR /&gt;0183b8b4 015.043.233.086 533cb8ce 533cb8ce 00008000 00003000 533bc583 533bc583 00000000 02812 04096 [c00a,cea9] TCP_CLOSE_WAIT &lt;BR /&gt;&lt;BR /&gt;So, if you wanted to remove this connection: &lt;BR /&gt;# ndd -set /dev/tcp tcp_discon 0x0183b8b4 &lt;BR /&gt;&lt;BR /&gt;If you want to use the tcp_discon_by_addr, you use a 24 byte string that contains the hex representation of the quadruple. &lt;BR /&gt;&lt;BR /&gt;For example, if the connection that I want to delete is: &lt;BR /&gt;&lt;BR /&gt;Local IP: 192.1.2.3 (0xc0010203) &lt;BR /&gt;Local Port: 1024 (0x0400) &lt;BR /&gt;Remote IP : 192.4.5.6 (0xc0040506) &lt;BR /&gt;Remote Port: 2049 (0x0801) &lt;BR /&gt;&lt;BR /&gt;The "hex" string you pass to tcp_discon_by_addr is: &lt;BR /&gt;&lt;BR /&gt;# ndd -set /dev/tcp tcp_discon_by_addr "c00102030400c00405060801" &lt;BR /&gt;&lt;BR /&gt;NOTE: the preceding 0x that typically indicates a Hex number is NOT part of the string passed. &lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards. &lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong &lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jan 2002 08:00:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651837#M46213</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-24T08:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: blocked socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651838#M46214</link>
      <description>I can't find ndd command on my server. We're working with HP-UX 10.20.</description>
      <pubDate>Thu, 24 Jan 2002 08:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651838#M46214</guid>
      <dc:creator>Andreas Bednarz</dc:creator>
      <dc:date>2002-01-24T08:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: blocked socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651839#M46215</link>
      <description>&lt;BR /&gt;For 10.20 you need to use adb to kill them instead of ndd. Theres all sorts of scripts to do this, including one from HP themselves. They are all in the answer;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=25109&amp;amp;q=blocked%20socket&amp;amp;fh" target="_blank"&gt;http://www.dutchworks.nl/htbin/hpsysadmin?h=3&amp;amp;dn=25109&amp;amp;q=blocked%20socket&amp;amp;fh&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jan 2002 08:42:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651839#M46215</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-01-24T08:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: blocked socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651840#M46216</link>
      <description>If your blocked sockets are being caused by connections to a WinNT box then you can keep them from happening with the WinNT patch mentioned in Microsoft Knowledge Base article: Q254930.  You have to call MS support and beg them for it or you can email me. (rkinner@att.net)  Seems WinNT does a poor job of closing a connection especially if a packet gets lost.  netstat -a on the WinNT will show lots of connections in Last ACK if this is your problem.&lt;BR /&gt;&lt;BR /&gt;Ron</description>
      <pubDate>Fri, 25 Jan 2002 15:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/blocked-socket/m-p/2651840#M46216</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2002-01-25T15:00:51Z</dc:date>
    </item>
  </channel>
</rss>

