Restore the Password for Web Login
If you forget the web login password, log in to the switch through the console port, Telnet, or STelnet, and set a new password for web login.
Telnet may bring security risks. You are advised to log in to the switch through the console port or STelnet.
# Set the user name and password to admin123 and Huawei@123 respectively.
<HUAWEI> system-view [HUAWEI] aaa [HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123 [HUAWEI-aaa] local-user admin123 service-type http [HUAWEI-aaa] local-user admin123 privilege level 15 [HUAWEI-aaa] return <HUAWEI> save