display local-user
Syntax
display local-user [ idle-cut { disable | enable } | service-type { ftp | lan-access | portal | ssh | telnet | terminal | web } | state { active | block } | user-name user-name | vlan vlan-id ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
idle-cut { disable | enable }: Specifies local users with the idle cut function disabled or enabled.
service-type: Specifies the local users who use a specific type of service.
ftp: FTP users.
lan-access: Users accessing the network through Ethernet, such as 802.1X users.
portal: Portal users. This keyword is available only on the HPE 3100 v2 EI switches.
ssh: SSH users.
telnet: Telnet users.
terminal: Users logging in through the console port.
web: Web users.
state { active | block }: Specifies local users in the state of active or blocked. 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 is a case-sensitive string of 1 to 55 characters and does not contain the domain name.
vlan vlan-id: Specifies all local users in a VLAN. The VLAN ID ranges from 1 to 4094.
slot slot-number: Specifies the local users on the switch by its device ID. The slot-number argument represents the device ID, which must be 1.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display local-user to display configuration and statistics information about local users.
If you do not specify any parameter, the command displays information about all local users.
Related commands: local-user.
Examples
# Display information about all local users.
<Sysname> display local-user The contents of local user abc: State: Active ServiceType: lan-access Access-limit: Enabled Current AccessNum: 0 Max AccessNum: 300 User-group: system Bind attributes: IP address: 1.2.3.4 Bind location: 1/4/1 (SLOT/SUBSLOT/PORT) MAC address: 0001-0002-0003 Vlan ID: 100 Authorization attributes: Idle TimeOut: 10(min) Work Directory: flash:/ User Privilege: 3 Acl ID: 2000 Vlan ID: 100 User Profile: prof1 Expiration date: 12:12:12-2018/09/16 Password aging: Enabled (30 days) Password length: Enabled (4 characters) Password composition: Enabled (4 types, 2 characters per type) Total 1 local user(s) matched.
Table 3: Command output
Field | Description |
---|---|
State | Status of the local user: active or blocked. |
ServiceType | Service types that the local user can use, including FTP, LAN, portal, SSH, Telnet, terminal, and web. |
Access-limit | Whether or not to limit the number of concurrent connections of the username. |
Current AccessNum | Number of connections that currently use the username. |
Max AccessNum | Maximum number of concurrent connections of the username. |
Bind attributes | Binding attributes of the local user. |
VLAN ID | VLAN to which the user is bound. |
Authorization attributes | Authorization attributes of the local user. |
Idle TimeOut | Idle timeout period of the user, in minutes. |
Work Directory | Directory that the FTP user can access. |
VLAN ID | Authorized VLAN of the local user. |
User Profile | User profile for local user authorization. |
Expiration date | Expiration time of the local user. |
Password aging | Aging time of the local user password. |
Password length | Minimum length of the local user password. |
Password composition | Password composition policy of the local user. |