display users

Function

The display users command displays the login information on each user interface.

Format

display users [ all ]

Parameters

Parameter Description Value
all

Displays information about all users who log in through a user interface.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
config execute

Usage Guidelines

If the parameter all is not configured, this command displays information about the users whose connections are set up; if the parameter all is configured, this command displays information about all users, including the users whose connections are not set up.

After the display users command is run, the login information (such as the user name and address) and the authentication and authorization information about the users that log in to the device are displayed.

Example

The actual command output varies according to the device. The command output here is only an example.

# Run the display users command on the console interface.
<HUAWEI> display users
User-Intf    Delay    Type   Network Address     AuthenStatus    AuthorcmdFlag
+ 34  VTY 0   00:00:00  TEL    10.134.146.150            pass           yes     
  Username : huawei_123                                                         
                                                                                
  35  VTY 1   00:12:17  TEL    10.179.179.127            pass           yes     
  Username : huawei_123                                                         
                                                                                
  36  VTY 2   00:00:00  TEL    10.136.138.221            not pass       no      
  Username : Unspecified
Table 1 Description of the display users command output
Item Description
User-Intf

Indicates the absolute number (in the first column) and the relative number (in the second column) of a user interface.

Delay

Indicates time elapsed since the last user input, in seconds.

Type

Indicates the connection type that can be Telnet, Console, or SSH.

Network Address

Indicates the IP address of the host that initiates a connection.

Username

Indicates the name of a user who uses this interface, that is, the login user name. If AAA authentication is not configured, the user name displays Unspecified.

AuthenStatus

Indicates whether authentication passes.

AuthorcmdFlag

Indicates whether a user is authorized to use a command line:

  • yes: indicates that the user is authorized to use the command.
  • no: indicates that the user is not authorized to use the command.
+

Indicates the terminal line in use.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >