<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Hung - Tag - Fryguy's Blog</title><link>https://hugo.fryguy.net/tags/hung/</link><description>Hung - Tag - Fryguy's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 06 Mar 2013 23:15:14 +0000</lastBuildDate><atom:link href="https://hugo.fryguy.net/tags/hung/" rel="self" type="application/rss+xml"/><item><title>VTY Session on a Router Won't Clear?</title><link>https://hugo.fryguy.net/2013/03/06/vty-session-on-a-router-wont-clear/</link><pubDate>Wed, 06 Mar 2013 23:15:14 +0000</pubDate><author>Fryguy</author><guid>https://hugo.fryguy.net/2013/03/06/vty-session-on-a-router-wont-clear/</guid><description><![CDATA[<p>[<a href="/wp-content/uploads/2013/03/MyView.jpg" rel=""></a>]<a href="/wp-content/uploads/2013/03/MyView.jpg" rel="">2</a><br>
Had a small problem today that was interesting, but not unique.  I have seen this problem before, but realized that maybe most people might not know how to fix it. I think the normal approach that people take is a reload of the device, not always a good thing to do on a production network in the middle of the day.<br>
So the  depicts is a VTY session that is unclearable via the normal <em>clear</em> command route.  When you do a <em>who</em>, you see that someone is connected to VTY 0 for an extended period of time:</p>
<pre>Switch1#<span style="color: #0000ff;">who</span>
    Line       User       Host(s)              Idle       Location
   1 vty 0                idle                     6w4d HackerHost.virtua.com.br
*  2 vty 1     jfry       idle                 00:00:00 192.168.0.1
  Interface      User        Mode                     Idle     Peer Address
Switch1#</pre>
<p>They are not logged in as there is no User listed, but you can see they have been idle for 6 weeks and 4 days.<br>
So the first think that you would do would be to <em>clear</em> the session and do a <em>who</em> again to make sure they are gone.</p>
<pre>Switch1#<span style="color: #0000ff;">clear line vty 0</span>
[confirm]<span style="color: #0000ff;">y</span> [OK]
Switch1#who
    Line       User       Host(s)              Idle       Location
   1 vty 0                idle                     6w4d HackerHost.virtua.com.br
*  2 vty 1     jfry       idle                 00:00:00 192.168.0.1
  Interface      User        Mode                     Idle     Peer Address
Switch1#</pre>
<p>Odd, they are still there.  Well, maybe its <em>VTY 1</em> and not __, lets clear that one instead:</p>]]></description></item></channel></rss>