Solved

How to disconnect idle user on vty line?

Posted on 2010-08-21
8
7,591 Views
Last Modified: 2012-05-10
After running the 'show users' command in the Cisco IOS, it appears on one of our Cisco 3560 switches, I have a user who has been idle on 'vty 0' for many weeks (we don't reload the switches often).  What command can I run to disconnect them? I am currently logged in over telnet to vty1 - they are connected to vty 0
0
Comment
Question by:davis
  • 3
  • 3
  • 2
8 Comments
 
LVL 13

Expert Comment

by:luc_roy
ID: 33493064
disconnect [session number]
0
 
LVL 24

Accepted Solution

by:
rfc1180 earned 150 total points
ID: 33493067
try:

clear line 0
0
 
LVL 13

Assisted Solution

by:luc_roy
luc_roy earned 100 total points
ID: 33493074
sorry that is for suspended session

clear line vty [#]

will kick the user out.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Author Comment

by:davis
ID: 33493085
luc roy - What do you mean by suspended session?  I am not sure if I have a 'suspended' or 'idle' session?  
0
 
LVL 13

Expert Comment

by:luc_roy
ID: 33493103
clear line vty [#]
 will do it without haveing to first suspend it
0
 
LVL 24

Expert Comment

by:rfc1180
ID: 33493116
as I stated in the begging:

edge01.lax01#show user
*Aug 21 16:22:18.959: %SYS-5-CONFIG_I: Configured from console by console
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00  
   2 vty 0                idle                 00:00:04 192.168.1.30

  Interface    User               Mode         Idle     Peer Address

edge01.lax01#clear line 2
[confirm]
 [OK]
edge01.lax01#show user
    Line       User       Host(s)              Idle       Location
*  0 con 0                idle                 00:00:00  

  Interface    User               Mode         Idle     Peer Address
0
 
LVL 1

Author Closing Comment

by:davis
ID: 33493144
worked perfectly - thanks!
0
 
LVL 24

Expert Comment

by:rfc1180
ID: 33493148
just to add, luc roy provides a better solution as the VTY is the correct method for telnet/ssh sessions. I have just always used clear line # as it has always worked in the past. clear line # may not work on all versions, as it honestly applies to async lines.

Billy
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Port Forwarding on Cisco 881 14 57
Fiber optic multimode cable issue 6 31
Cisco switch suggestion 5 49
Wireless scope on sever with DSL connection 9 23
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question