9300的console密码丢失,但是有不能删除现有的配置,那可通过下面的办法解决;但是这个办法也需要重启交换机,且操作具有一定的复杂性和危险性,一定要注意在业务量小的时候作。
1、重启交换机
Output Exception Message recorded last time:
****************************************************
* *
* S9300 Bootload, Ver 102 *
* *
****************************************************
Copyright(C) 2003-2009 by HUAWEI TECHNOLOGIES CO., LTD.
Creation date: Sep 10 2009, 13:52:56
PCB Version : LE01MCUA VER.A
CPU L2 Cache : 128KB
CPU Clock Speed : 500MHz
BUS Clock Speed : 133MHz
Memory Type : DDR2 SDRAM
Memory Size : 512MB
Memory Speed : 667MHz
CF Card Init...............................................................
cfcard:/ - Volume is OK
Done
Press Ctrl+B to enter Boot Menu... 1 --------看到这个提示按下ctrl+b:
Password: ----密码是7800
MAIN MENU
1. Boot with default mode
2. Boot from Flash
3. Boot from CFCard
4. Enter serial submenu
5. Enter ethernet submenu
6. Modify Flash description area
7. Modify bootrom password
8. Reboot
Enter your choice(1-8): -----按ctrl+z
HIDDEN MENU
1. Enter debugging environment
2. Erase Flash 3. List files in Flash
4. Delete file from Flash 5. Format Flash
6. List files in CFCard 7. Delete file from CFCard
8. Rename file in CFCard 9. Fdisk CFCard
10. Format CFCard 11. Chkdsk CFCard
12. Upgrade small bootrom from ethernet
13. Upgrade main bootrom from ethernet
14. Modify ethernet interface parameter
15. Upgrade CPLD logic from booting file
16. Upgrade CPLD logic from flash
17. Upgrade FPGA logic from booting file
18. Upgrade FPGA logic from flash
19. Restore the default Flags
20. Disable auto-booting with default mode
21. Disable Bootrom Password 22. Enable auto upgrade small bootrom
23. Disable auto upgrade main bootrom
24. Disable auto upgrade Cpld
25. Convert CFCard Ending
26. Return to main menu
Enter your choice(1-26):6 -----查看cf的文件
8192 Jun 25 11:14 logfile/
198 May 13 14:52 $_patchstate_a
4 Jun 25 11:12 snmpnotilog.txt
526349 Jun 25 11:26 private-data.txt
494 Jun 25 11:29 vrpcfg.zip --------配置为这个文件
27663789 Apr 23 11:09 s9300v100r002c00spc001.cc
8192 Jun 25 11:29 ~/
22313196 Apr 28 18:07 s9300v100r001c02b125.cc
22313196 Apr 19 14:17 s9300v100r001c02b125_.cc
692514 Apr 23 10:53 s9300v100r002sph006.pat
198 Apr 28 18:09 $_patchstate_b
140708 May 13 15:46 patchhistory
198 Apr 23 10:53 $_patchstate_a.backup
26171983 May 13 14:42 quidways9300v100r002c00spc002.cc
26184259 May 13 16:02 s9300v100r002c00spc200.cc
501 Jun 25 09:51 vrpcfg.cfg
527 Jun 25 10:29 test
1430 Jun 25 11:29 vrpcfg.bat
541 Jun 25 11:16 vrpcfg
Press <ENTER> to continue...
2849038 Jun 25 11:19 logfile/log.txt
197056 Jun 25 11:21 logfile/diag.txt
11284 Jun 25 11:20 logfile/selftestresult_slot5.txt
3520 May 17 14:00 logfile/selftestresult_slot2.txt
5720 Jun 25 11:20 logfile/selftestresult_slot1.txt
403 Apr 24 20:27 logfile/selftestresult_slot4.txt
8426011 Jun 25 11:14 logfile/2010-06-25.11-14-14.diag.txt
26 files found!
506744 KB total (372304 KB free)
Enter your choice(1-26):8 -------选择8
Please input the file name you want to rename, e.g.: s9300.cc
('*' for display all files in this ata device.)
vrpcfg.zip --------------------------------输入配置文件名称
Please input a new file name: vrptest -------输入自行改动的一个文件名
File "vrpcfg.zip" will be renamed to "vrptest" !
Are you sure? Yes or No(Y/N)y
Rename successfully!
Enter your choice(1-26):26
MAIN MENU
1. Boot with default mode
2. Boot from Flash
3. Boot from CFCard
4. Enter serial submenu
5. Enter ethernet submenu
6. Modify Flash description area
7. Modify bootrom password
8. Reboot
Enter your choice(1-8):8 ---重启交换机
Rebooting...
OK
OK
OK
交换机启动后,通过console进入交换机,此时是没有任何配置的。
<Quidway>unzip vrptest vrpcfg.bat----把改名后的文件vrptest解压缩为vrpcfg.bat
<Quidway>sys
Enter system view, return user view with Ctrl+Z.
[Quidway]exec
[Quidway]execute vrpcfg.bat -----执行此命令,把原有的配置调用出来,在此基础上可把console的密码去掉。
[Quidway]user-inter console 0
[Quidway-ui-console0]undo auth
<Quidway>save ---保存配置
The current configuration will be written to the device. Continue? [Y/N]:y
Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]:
Jun 25 2010 11:41:59 Quidway %%01CFM/4/SAVE(l): The user chose Y when deciding w
hether to save the configuration to the device. vrpcfg.zip -----这里要输入正确的配置文件名称 vrpcfg.zip
Now saving the current configuration to the device.....
Info: Succeeded in saving the current configuration to the master board device.
Info: Succeeded in saving the current configuration to the device..
<Quidway>reboot---再次重启交换机
等待重启之后,就可以进入交换机了。
转载于:https://blog.51cto.com/19880423/1402540