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.


Fat AP and Cloud AP V200R010C00 Command Reference

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 local-access-code command configures a local access code.

The undo local-access-code command deletes a local access code.

By default, no local access code is configured.


local-access-code cipher password expire-date expire-date [ expire-hour expire-hour ] [ description description ]

undo local-access-code { cipher password | all [ expired ] }





cipher password

Specifies a local access code.

The value is a string of case-sensitive characters. It can be a string of 4-16 characters (can only be letters or digits) in plaintext or a string of 48 characters in ciphertext.

expire-date expire-date

Specifies the date when a local access code will expire.

The value is in YYYY/MM/DD format. YYYY specifies the year, MM specifies the month, and DD specifies the day. The value ranges from 2000/1/1 to 2099/12/31.

expire-hour expire-hour

Specifies the hour when a local access code will expire.

The value is an integer that ranges from 0 to 23 and defaults to 12.

description description

Specifies the description of a local access code.

The value is a string of 1 to 16 case-sensitive characters without spaces and question marks (?).


Deletes all local access codes.


Deletes all expired local access codes.



AAA view

Default Level

3: Management level

Usage Guidelines

If access code authentication for the built-in Portal server is enabled on the device, you need to run the local-access-code command to configure a local access code on the device. During access authentication, a user only needs to enter the access code (a string of characters) on the login page without entering the user name and password. If the access code is found on the device and does not expire, the user is authenticated successfully.


# Set the local access code to abcde, the date and hour when the local access code will expire to 2018/12/12 and 15, and the description to 307.

<Huawei> system-view
[Huawei] aaa
[Huawei-aaa] local-access-code cipher abcde expire-date 2018/12/12 expire-hour 15 description 307
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 203415

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next