No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


AR500, AR510, and AR530 V200R007 Commands Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).



The lock command locks the current user interface to prevent unauthorized users from operating the interface.

By default, the system does not automatically lock the current user interface.






User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Lock the current user interface using this command to prevent other users from operating the interface. The user interfaces consist of console ports, and Virtual Type Terminals (VTYs).

After using the lock command, you are prompted to input the password twice. If you input the correct password for twice, the user interface is locked.


  • The passwords must meet the following requirements:
    • The password is a string of 8 to 128 case-sensitive characters.

    • The password must contain at least two of the following characters: upper-case character, lower-case character, digit, and special character.

      The special characters include spaces and the following:


  • Password entered in interactive mode is not displayed on the screen.

  • When you run the lock command to lock the user interface and set a locking password, you can press CTRL_C to cancel the operation.

  • To unlock the user interface, press Enter, and then input the correct password as prompted by the system.


# Lock the current user interface after logging in through the console port.

<Huawei> lock
Enter Password(<8-128>):
Confirm Password:
Info: The terminal is locked.

# To log in to the system after the system is locked, you must press Enter. The following information is displayed:

Enter Password:

# Enter the correct password and return to the user view.

Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 134372

Downloads: 142

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next