Checking Telnet Users

Checking Telnet Users
You can list all active consoles and VTY ports in use on your router with the show users
command:
Corp#sh users
Line User Host(s) Idle Location
* 0 con 0 10.1.1.2 00:00:01
10.2.2.2 00:01:06
In the command’s output, con represents the local console. In this example, the console is
connected to two remote IP addresses or, in other words, two devices. In the next example, I
typed sh users on the ap device that the Corp router had telnetted into and that is connected
via line 1:
Corp#sh sessions
Conn Host Address Byte Idle Conn Name
1 10.1.1.2 10.1.1.2 0 0 10.1.1.2
* 2 10.2.2.2 10.2.2.2 0 0 10.2.2.2
Corp#1
[Resuming connection 1 to 10.1.1.2 ... ]
ap>sh users
Line User Host(s) Idle Location
* 1 vty 0 idle 00:00:00 10.1.1.1
ap>
This output shows that the console is active and that VTY port 1 is being used. The asterisk
represents the current terminal session from which the show user command was entered.