Solved

How to disconnect idle user on vty line?

Posted on 2010-08-21
8
7,094 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
 
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Eigrp Router 5 49
Trying to make SNMP connection work 7 44
Sonicwall routing between VPNs 5 28
cisco nexus experiance 2 30
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now