S5700 console 密码丢失问题COM串口维护

问题描述
客户忘记了之前自己设置的S5700 console密码,现在无法登录交换机,想要清除当前密码重新设置新的密码,但是不能丢失当前配置。
处理过程
1、重启交换机

BIOS loading ...
Copyright (c) 2008-2013 HUAWEI TECH CO., LTD.
Basic BootROM version : 181 Compiled at Jun 29 2013, 10:18:52

Press Ctrl+B to enter BootROM menu ... 3
password:

bootrom默认密码一般是admin@huawei.com
Admin@huawei.com. The BootROM menu is as follows:

BootROM MENU

1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter file system submenu
6. Modify BootROM password
7. Clear password for console user
8. Reboot

Enter your choice(1-8): 7

Note: Clear password for console user? Yes or No(Y/N): y

Clear password for console user successfully. Choose "1" to boot, then set a new password.
Note: Do not choose "8. Reboot" or power off the device, otherwise this operation will not take effect.

BootROM MENU

1. Boot with default mode
2. Enter serial submenu
3. Enter startup submenu
4. Enter ethernet submenu
5. Enter file system submenu
6. Modify BootROM password
7. Clear password for console user
8. Reboot

Enter your choice(1-8): 1

Loading "flash:/s5700ei-v200r003c00spc300.cc" ........................................................ done
Decompressing VRP software ................................................ done
There is no record in region Exception.

Initializing DEV module ................................................... done

Initializing hardware system .............................................. done
Begin to start the system ...

Initializing VFS ..................................... done
Checking startup system-software .......................................... done
Reading PAF file .......................................................... done
Initializing VOS monitor ............................. done
CFM initialization advance ........................... done
Initializing PAT ..................................... done
Initializing HA ...................................... done
VFS registering to HA ................................ done

VRP root begin ...

VRP root end
VRP task initialization begin ...
Init the Device Link.............OK
CFG initialization begin ............................. done
CFM initialization begin ............................. done
CLI initialization begin ............................. done
Registering VRP all link command begin ............... done
Creating task begin ...
Creating task end
Task initialization begin ...
Task initialization end

Cmd registering begin ...
Cmd registering end

Recover configuration...OK!
Press ENTER to get started.

An initial password is required for the first login via the console.
Continue to set it? [Y/N]: y
Set a password and keep it safe. Otherwise you will not be able to login via the console.

Please configure the login password (8-16)
Enter Password:
Confirm Password:

根因
console密码遗失。
建议与总结
较新的VRP版本,需要恢复console密码只需重启进入bootrom菜单,选择清除console密码项即可。V1R3以前的较旧的VRP版本,bootrom菜单中可能没有此项,如需保留原有配置并清除密码,需在bootrom下通过FTP/TFTP导出现有配置并修改关于console密码配置部分,再导回交换机,使用新的配置文件启动,才可清除密码。