display local-user
Use display local-user to display the local user configuration and online user statistics.
Syntax
display local-user [ class { manage | network } | idle-cut { disable | enable } | service-type { ftp |
lan-access | ssh | telnet | terminal } | state { active | block } | user-name user-name | vlan vlan-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
class: Specifies the local user type.
• manage: Device management user.
• network: Network access user.
idle-cut { disable | enable }: Specifies local users with the idle cut function disabled or enabled.
service-type: Specifies the local users who use a specified type of service.
• ftp: FTP users.
• lan-access: LAN users, mainly users accessing the network through an Ethernet, such as 802.1X
users.
• ssh: SSH users.
• telnet: Telnet users.
• terminal: Terminal users, users logging in through a console port.
state { active | block }: Specifies local users in active or blocked state. A local user in active state can
access network services, but a local user in blocked state cannot.
user-name user-name: Specifies all local users using the specified username. The username must be a
case-sensitive string of 1 to 55 characters that does not contain the domain name.
vlan vlan-id: Specifies all local users in a VLAN. The vlan-id argument is in the range of 1 to 4094.
Usage guidelines
If no parameter is specified, the command displays information about all local users.
Examples
# Display information about all local users
<Sysname> display local-user
Total 2 local users matched.
Device management user root:
25