?
Solved

How to disconnect idle user on vty line?

Posted on 2010-08-21
8
Medium Priority
?
9,065 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 600 total points
ID: 33493067
try:

clear line 0
0
 
LVL 13

Assisted Solution

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

clear line vty [#]

will kick the user out.
0
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
This program is used to assist in finding and resolving common problems with wireless connections.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

800 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