< Home

display local-user

Function

The display local-user command displays information about local users.

Format

display local-user [ domain domain-name | state { active | block } | username user-name ] *

Parameters

Parameter

Description

Value

domain domain-name

Displays information about local users in a specified domain.

The domain name must already exist.

state { active | block }

Displays the attributes of local users in the specified state.
  • active: indicates the active state.
  • block: indicates the blocking state.

-

username user-name

Displays information about a specified local user name.

The user name must already exist.

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The display local-user command output helps you check the configuration of local users and isolate faults related to the local users.

Precautions

If no parameter is specified, brief information about all local users is displayed. If a parameter is specified, detailed information about the specified local user is displayed.

Low-level users cannot view information about high-level users.

Example

# Display brief information about local users.

<HUAWEI> display local-user
  ----------------------------------------------------------------------------
  User-name                      State  AuthMask  AdminLevel
  ----------------------------------------------------------------------------
  user-a                         A      A         0
  user-c                         A      A         0
  ----------------------------------------------------------------------------
  Total 2 user(s) 
# Display detailed information about the local user user-a.
<HUAWEI> display local-user username user-a
  The contents of local user(s):
  Password             : ****************
  State                : active
  Service-type-mask    : A
  Privilege level      : -
  Ftp-directory        : -
  HTTP-directory       : -       
  Access-limit         : Yes
  Access-limit-max     : 4294967295
  Accessed-num         : 0
  Idle-timeout         : -
  User-group           : -
  Original-password    : No
  Password-set-time    : 2019-12-01 18:42:57+01:00 DST
  Password-expired     : No 
  Password-expire-time : - 
  Account-expire-time  : -   
  Last login ip        : 192.173.240.235
  Last login time      : 2019-03-21 09:38:24+08:00
  Login fail count     : 0 

For a local user who fails to log in to the device but is not locked, Retry-time-left is displayed. For a local user whose initial password is changed, Change password retry-count-left is displayed. When the number of continuous login failures or the number of initial password change failures reaches the limit specified using the local-aaa-user wrong-password command, the user is locked.

When the number of user login failures or the number of initial password change failures does not reach the limit specified using the local-aaa-user wrong-password command, the user is not locked. If the limit is changed using the local-aaa-user wrong-password command, and the new limit is smaller than the number of user login failures or the number of initial password change failures, the user still has a change to try to log in to the device or change the password. In this case, Retry-time-left or Change password retry-count-left is displayed as 1.

# Display information about local user user1 who fails to log in to the device.
<HUAWEI> display local-user username user1                                                                                               
  The contents of local user(s):                                                                                                    
  Password             : ****************                                                                                           
  State                : active                                                                                                     
  Service-type-mask    : T                                                                                                          
  Privilege level      : 0                                                                                                          
  Ftp-directory        : -                                                                                                          
  HTTP-directory       : -                                                                                                          
  Access-limit         : -                                                                                                          
  Accessed-num         : 0                                                                                                          
  Idle-timeout         : -                                                                                                          
  Retry-interval       : 4 Min(s)                                                                                                   
  Retry-time-left      : 1                                                                                                          
  Original-password    : Yes                                                                                                        
  Password-set-time    : 2019-01-27 13:26:55+08:00                                                                                  
  Password-expired     : No                                                                                                         
  Password-expire-time : -                                                                                                          
  Account-expire-time  : -
# Display information about local user user1 whose initial password fails to be changed.
<HUAWEI> display local-user username user1
  The contents of local user(s):                                                                                                    
  Password             : ****************                                                                                           
  State                : active                                                                                                     
  Service-type-mask    : T                                                                                                          
  Privilege level      : 0                                                                                                          
  Ftp-directory        : -                                                                                                          
  HTTP-directory       : -                                                                                                          
  Access-limit         : -                                                                                                          
  Accessed-num         : 1                                                                                                          
  Idle-timeout         : -                                                                                                          
  Change password retry-interval  : 4 Min(s)                                                                                        
  Change password retry-count-left: 3                                                                                               
  Original-password    : Yes                                                                                                        
  Password-set-time    : 2019-01-27 13:26:55+08:00                                                                                  
  Password-expired     : No                                                                                                         
  Password-expire-time : -                                                                                                          
  Account-expire-time  : -
# Display information about local users in blocking state.
<HUAWEI> display local-user state block
  ----------------------------------------------------------------------------                                                      
  User-name                      State  AuthMask  AdminLevel  BlockTime                                                             
  ----------------------------------------------------------------------------                                                      
  test2                          B      T         0           2018-04-10 01:55:11-00:00                                             
  ---------------------------------------------------------------------------- 
  Total 1 user(s) 
# Display information about local user test2 in blocking state.
<HUAWEI> display local-user state block username test2
  The contents of local user(s):                                                                                                    
  Password             : ****************                                                                                           
  State                : block                                                                                                      
  Service-type-mask    : T                                                                                                          
  Privilege level      : 0                                                                                                          
  Ftp-directory        : -                                                                                                          
  HTTP-directory       : -                                                                                                          
  Access-limit         : -                                                                                                          
  Accessed-num         : 0                                                                                                          
  Idle-timeout         : -                                                                                                          
  Block-time-left      : 8 Min(s)                                                                                                   
  Original-password    : Yes                                                                                                        
  Password-set-time    : 2019-01-27 13:26:55+08:00                                                                                  
  Password-expired     : No                                                                                                         
  Password-expire-time : -                                                                                                          
  Account-expire-time  : -
Table 1 Description of the display local-user command output

Item

Description

User-name

Name of the local user.

To configure this parameter, run the local-user command.

State

State of the local user:

  • A: Active
  • B: Block

To configure this parameter, run the local-user command.

AuthMask

Access type of the local user.

  • T: indicates the Telnet users.
  • M: indicates the terminal users, which usually refer to the console users.
  • S: indicates the SSH users.
  • F: indicates the FTP users.
  • W: indicates the web users.
  • X: indicates the 802.1X users.
  • A: indicates all access types.
  • H: indicates the HTTP users.
  • D: indicates the X25-PAD users.
  • P: indicates the PPP users.
  • Combination: For example, MH indicates either a terminal user or an HTTP user.

To configure this parameter, run the local-user service-type command.

AdminLevel

Local user level.

To configure this parameter, run the local-user command.

Password

Password of the local user.

To configure this parameter, run the local-user command.

Service-type-mask

Service type of the local user. Same as the AuthMask type.

To configure this parameter, run the local-user service-type command.

Privilege level

Local user level.

To configure this parameter, run the local-user command.

Ftp-directory

FTP directory of the local user.

To configure this parameter, run the local-user command.

HTTP-directory

HTTP directory of the local user.

To configure this parameter, run the local-user command.

Access-limit

Whether the maximum number of sessions of the local user is configured.

To configure this parameter, run the local-user command.

Access-limit-max

Maximum number of sessions of the local user.

To configure this parameter, run the local-user command.

Accessed-num

Number of established sessions.

Idle-timeout

Idle timeout interval.

To configure this parameter, run the local-user command.

User-group

Authorization information of the user group to which the local user is bound.

To configure this parameter, run the local-user command.

Original-password

Whether the password of a local user is the initial password:
  • Yes
  • No

To configure this parameter, run the password alert original command.

Password-set-time

Time when the local user's password is created. The value is in format local time + DST offset.

Password-expired

Whether a local user's password has expired:
  • Yes
  • No

Password-expire-time

Time when the local user's password expires. The value is in format local time + DST offset.

To configure this parameter, run the password expire command.

Account-expire-time

Expiry time of a local user account. The value is in format local time + DST offset.

To configure this parameter, run the local-user expire-date command.

Last login ip

IP address for user login.

This item can be displayed only for administrators.

Last login time

User login time.

This item can be displayed only for administrators.

Login fail count

Number of user login failures.

This item can be displayed only for administrators.

BlockTime/Block-time-left

Remaining time of locked local users. (Local users are locked because the entered password is incorrect consecutively.)

Retry-interval

Login retry interval before a local user is locked.

To configure this parameter, run the local-aaa-user wrong-password command.

Retry-time-left

Remaining number of login retries before a local user is locked.

To configure this parameter, run the local-aaa-user wrong-password command.

Change password retry-interval

Retry interval for changing the initial password of a local user before the user is locked.

To configure this parameter, run the local-aaa-user wrong-password command.

Change password retry-count-left

Remaining number of initial password change retries before a local user is locked.

To configure this parameter, run the local-aaa-user wrong-password command.

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