<?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 Hi devils_advocate,Take a in Switching</title>
    <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747993#M333039</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;&lt;A class="username" href="https://supportforums.cisco.com/users/devilsadvocate" title="View user profile."&gt;devils_advocate,&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;Take a read of &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/61860-fixTCPhang.html"&gt;How to Detect and Clear Hung TCP Connections using SNMP &lt;/A&gt;&lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;that I posted earlier. It shows how to clear VTY sessons using SNMP, which I summarised in a later response.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2015 13:53:44 GMT</pubDate>
    <dc:creator>Steve Fuller</dc:creator>
    <dc:date>2015-09-22T13:53:44Z</dc:date>
    <item>
      <title>Unable to SSH switch due to no exec timeout set</title>
      <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747987#M333033</link>
      <description>&lt;P&gt;Hi, it looks as though someone as set no exec timeout on the VTY lines of a remote switch.&amp;nbsp; We are unable to connect to this now via SSH even though it is up and running.&amp;nbsp; Looking at the configuration backups I can see that the no exec timeout command has been set on the VTY lines.&amp;nbsp; We don't have any IT presence on site at the moment and it looks as though the reason that we can't log on is due to idle users sessions using up all of the lines, would be my guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any one know of a way we can remotely clear these sessions without having to console onto this device or if this is in fact what is most likely the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 09:53:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747987#M333033</guid>
      <dc:creator>chrismalone07</dc:creator>
      <dc:date>2019-03-08T09:53:51Z</dc:date>
    </item>
    <item>
      <title>If you're not able to get a</title>
      <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747988#M333034</link>
      <description>&lt;P&gt;If you're not able to get a connection at all (your window pops up and then goes away - in the case of using putty), I'd venture to guess that it's due to the lines being taken up. No exec-timeout shouldn't have any effect on you being able to get into the device.&amp;nbsp;There's no way that I know of to remotely clear them without being able to get into the device aside from rebooting it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 10:44:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747988#M333034</guid>
      <dc:creator>John Blakley</dc:creator>
      <dc:date>2015-09-22T10:44:18Z</dc:date>
    </item>
    <item>
      <title>Hi,Do you have SNMP Read</title>
      <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747989#M333035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you have SNMP Read-Write access? If so then follow the procedure in &lt;A href="http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/61860-fixTCPhang.html"&gt;How to Detect and Clear Hung TCP Connections using SNMP&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 10:48:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747989#M333035</guid>
      <dc:creator>Steve Fuller</dc:creator>
      <dc:date>2015-09-22T10:48:15Z</dc:date>
    </item>
    <item>
      <title>Hi Steve, Thanks for your</title>
      <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747990#M333036</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; We have SNMP R/W access, however, do I need to install Perl in order to run this clear TCP session command?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 11:07:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747990#M333036</guid>
      <dc:creator>chrismalone07</dc:creator>
      <dc:date>2015-09-22T11:07:51Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747991#M333037</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You don't need Perl. As long as you have a host with &lt;STRONG&gt;snmpwalk&lt;/STRONG&gt; and &lt;STRONG&gt;snmpset&lt;/STRONG&gt; you should be OK. The process is essentially the following:&lt;/P&gt;

&lt;PRE&gt;
snmpget -c &amp;lt;rw_community&amp;gt; &amp;lt;device_name&amp;gt; .1.3.6.1.4.1.9.9.6.1.1.1.9&lt;/PRE&gt;

&lt;P&gt;This will return a value that is the concatenation of the destination and source IP address and TCP ports. For example:&lt;/P&gt;

&lt;PRE&gt;
CISCO-SMI::ciscoMgmt.6.1.1.9.D.D.D.D.22.S.S.S.S.60239 = INTEGER: 376&lt;/PRE&gt;

&lt;P&gt;In the above D.D.D.D is the destination IP address and S.S.S.S is the source IP address. The 22 is the destination TCP port (SSH in this case) and 60239 is the source TCP port.&lt;/P&gt;
&lt;P&gt;You then run &lt;STRONG&gt;snmpset&lt;/STRONG&gt; against the tcpConnState OID (.1.3.6.1.2.1.6.13.1.1) with the value from the &lt;STRONG&gt;snmpwalk&lt;/STRONG&gt; concatenated. For example:&lt;/P&gt;

&lt;PRE&gt;
snmpset –c &amp;lt;rw_community&amp;gt; &amp;lt;device&amp;gt; .1.3.6.1.2.1.6.13.1.1.D.D.D.D.22.S.S.S.S.60239 integer deleteTCB&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 12:15:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747991#M333037</guid>
      <dc:creator>Steve Fuller</dc:creator>
      <dc:date>2015-09-22T12:15:41Z</dc:date>
    </item>
    <item>
      <title>A reboot or a console would</title>
      <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747992#M333038</link>
      <description>&lt;P&gt;A reboot or a console would be the only thing I can think of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 13:45:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747992#M333038</guid>
      <dc:creator>devils_advocate</dc:creator>
      <dc:date>2015-09-22T13:45:06Z</dc:date>
    </item>
    <item>
      <title>Hi devils_advocate,Take a</title>
      <link>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747993#M333039</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;&lt;A class="username" href="https://supportforums.cisco.com/users/devilsadvocate" title="View user profile."&gt;devils_advocate,&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;Take a read of &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/61860-fixTCPhang.html"&gt;How to Detect and Clear Hung TCP Connections using SNMP &lt;/A&gt;&lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;that I posted earlier. It shows how to clear VTY sessons using SNMP, which I summarised in a later response.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="fullname"&gt;&lt;SPAN rel="sioc:has_creator"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 13:53:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/switching/unable-to-ssh-switch-due-to-no-exec-timeout-set/m-p/2747993#M333039</guid>
      <dc:creator>Steve Fuller</dc:creator>
      <dc:date>2015-09-22T13:53:44Z</dc:date>
    </item>
  </channel>
</rss>

