display users
Use display users to display online CLI user information.
Syntax
display users [ all ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
all: Displays all user lines supported by the device.
Examples
# Display online user information.
<Sysname> display users Idx Line Idle Time Pid Type 10 VTY 0 00:10:49 Jun 11 11:27:32 320 TEL + 11 VTY 1 00:00:00 Jun 11 11:39:40 334 TEL Following are more details. VTY 0 : Location: 192.168.1.12 VTY 1 : Location: 192.168.1.26 + : Current operation user. F : Current operation user works in async mode.
The output shows that two users have logged in to the device: one is using user line VTY 0 and the other (yourself) is using VTY 1. Your IP address is 192.168.1.26.
Table 6: Command output
Field | Description |
---|---|
Idx | Absolute number of the user line. |
Line | Type and relative number of the user line. |
Idle | Time elapsed after the user's most recent input, in the format hh:mm:ss. |
Time | Login time of the user. |
Pid | Process ID of the user session. |
Type | User type, such as Telnet, SSH. |
+ | Indicates the user line you are using. |
Location | IP address of the user. |