Show / Find Users Currently Logged into Cisco Router/Switch

We can find or see the users currently logged into your Cisco Routers/Switches and also time, from which IP address users logged into Cisco Router/Switches. In Wide area networks are often very wide and installing or troubleshooting remote Routers often requires login from more than one physical location. It is simple to get a listing of the users logged into a Router and it useful to troubleshoot issues some times.

Show Users command on Cisco Router/Switch

To find the users logged into a Cisco Router/Switch, issue show users command:

Cisco-Router#show users

or

Cisco-Router#sh users

Show/Find Users Currently Logged into Cisco Router/Switch

Find below output using show users command on Cisco Router or Switch:

Cisco-Router#sh users

Line       User       Host(s)                  Idle            Location

1 vty 0     John     172.94.0.86      24w2d     10.90.9.252

2 vty 1     John     172.94.0.86      24w2d     10.90.9.252

3 vty 2     Bijju      idle                    00:00:37 10.90.9.64

4 vty 3     Kanth   172.94.0.94     24w2d     10.90.9.252

* 5 vty 4     Jack      idle                    00:00:00 10.90.10.99

Remove/Clear Line vty Users on Cisco Router/Swich

After finding number of logged users on Cisco Router/Switch, We can clear or remove any user from the Router/Switch with clear line command.

Cisco-Router#clear line ?

<0-16>       Line number

async-queue  Clear queued rotary async lines

console      Primary terminal line

vty          Virtual terminal

 

Cisco-Router#clear line 1

[confirm]

[OK]

Cisco-Router#sh users

Line       User       Host(s)                  Idle            Location

2 vty 1     John     172.94.0.86      24w2d     10.90.9.252

3 vty 2     Bijju      idle                    00:00:37 10.90.9.64

4 vty 3     Kanth   172.94.0.94     24w2d     10.90.9.252

* 5 vty 4     Jack      idle                    00:00:00 10.90.10.99

 

Filed Under: Cisco General

Tags:

About the Author:

RSSComments (2)

Leave a Reply | Trackback URL

  1. Hari says:

    Iam able see list of users and time and interface to which they are currently connected. Thanks!

  2. Naresh says:

    It is simple to get a listing of the users logged into a router, Thanks for sharing 🙂

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.