< Home

display users

Function

The display users command displays login information of each user interface.

Format

display users [ all ]

Parameters

Parameter Description Value
all Displays information about all users who log in to a device through user interfaces, including information about user interfaces that are not connected. If the all parameter is not used, the command displays information only about user interfaces that have been connected. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to view information about users who are connected to a device. The information includes the user name, IP address, and authentication and authorization information.

The user with a level of 0, 1, or 2 can only view related information about users of the same or a lower level. A user with a level of 3 or above can view login information of all users.

Example

# Display information about users who log in to the device through user interfaces.

<HUAWEI> display users
  User-Intf   Delay     Type   Network Address     AuthenStatus    AuthorcmdFlag
  34 VTY 0   00:00:00  TEL    10.164.6.10            pass            no
  Username : user1
+ 35 VTY 1   00:00:00  TEL    10.164.6.15            pass            no
  Username : user2
Table 1 Description of the display users command output

Item

Description

+

User interface in use.

User-Intf

The number in the first column under User-Intf indicates the absolute number of the user interface, and the number in the second column under User-Intf indicates the relative number of the user interface.

User Interface type.
  • Console: Users who log in through the console port
  • VTY: Users who log in using VTY
  • LTT: User logs in stack system through the non-master switch console port
  • WEB: Users who log in through Web system

Delay

Interval from the user's latest input to the current time, in seconds.

Type

Connection type.
  • Console
  • Telnet
  • SSH
  • Web

Network Address

IP address of the login user.

Username

User name for logging in to the device. If the user name is not specified, Unspecified is displayed.

AuthenStatus

Whether the authentication succeeds.

AuthorcmdFlag

Command line authorization status.
  • yes: Command line authentication is enabled.
  • no: Command line authentication is disabled.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >