Command:

show users


Mode:

Router#


Syntax:

show users [all]

 

Syntax Description:

all

(Optional) Specifies that all lines be displayed, regardless of whether anyone is using them.

 

Command Description:

 

To display information about the active lines on the router, use the show users command in EXEC mode.  This command displays the line number, connection name, idle time, hosts (including virtual access interfaces), and terminal location. An asterisk (*) indicates the current terminal session.


Example:

The following is sample output from the show users command:

Router# show users

      Line           User            Host(s)        Idle Location

      0 con 0                        idle

*     2 vty 0        rose            idle            0   BASHFUL.CISCO.COM

The following is sample output identifying an active virtual access interface:

Router# show users

Line         User      Host(s)                 Idle    Location

*  0 con 0             idle                    01:58

  10 vty 0             Virtual-Access2          0      1212321

The following is sample output from the show users all command:

Router# show users all

   Line       User          Host(s)      Idle  Location

*   0 vty 0    rose          idle         0    BASHFUL.CISCO.COM

    1 vty 1

   2 con 0

   3 aux 0

   4 vty 2

Table 30 describes the significant fields shown in the displays.

Table 30   show users Field Descriptions

Field

Description

Line

Contains three subfields:

  • The first subfield (0 in the sample output) is the absolute line number.
  • The second subfield (vty) indicates the type of line. Possible values follow:

con�console

aux�auxiliary port

tty�asynchronous terminal port

vty�virtual terminal

  • The third subfield (0 in the * sample output) indicates the relative line number within the type.

User

User using the line. If no user is listed in this field, no one is using the line.

Host(s)

Host to which the user is connected (outgoing connection). A value of idle means that there is no outgoing connection to a host.

Idle

Interval (in minutes) since the user has entered something.

Location

Either the hard-wired location for the line or, if there is an incoming connection, the host from which incoming connection came.

 


Misconceptions:

           None.


Related Commands:

line
show line

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)