Huawei S5300-10P-LI-AC

  1. Start the console session.

    Plug in serial cable to console port of device from PC COM1 port
    Open PuTTY and select "Serial" connection type, leave baud rate (Speed) and other settings as default.
    Plug power into device and if a power button exists, turn it on.
  2. Access the BootROM menu.

    Press the Ctrl B keys when prompted and before the countdown ends:
    BIOS loading ... Start memory test ? ('Ctrl+T' is test): Copyright (c) 2011-2015 HUAWEI TECH CO., LTD. Basic BootROM version : 141 Compiled at May 17 2014, 10:45:28 Current flash file system : DosFs flash:/ - Volume is OK Press Ctrl+B or Ctrl+E to enter BootROM menu ... 1
    Type Admin@huawei.com at the password:  prompt:
    password: Admin@huawei.com
  3. Erase authentication credentials and reboot.
    Type 7 for the Clear password for console user option then type y to confirm:
    BootROM MENU 1. Boot with default mode 2. Enter serial submenu 3. Enter startup submenu 4. Enter ethernet submenu 5. Enter filesystem submenu 6. Modify BootROM password 7. Clear password for console user 8. Reboot (Press Ctrl+E to enter diag menu) 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.
    Type 1 to Boot with default mode:
    BootROM MENU 1. Boot with default mode 2. Enter serial submenu 3. Enter startup submenu 4. Enter ethernet submenu 5. Enter filesystem submenu 6. Modify BootROM password 7. Clear password for console user 8. Reboot (Press Ctrl+E to enter diag menu) Enter your choice(1-8): 1 Loading "flash:/s5300-10p-li-v200r005c00spc300.cc" ............................ done Decompressing VRP software ................................................ done
    Further output will bring you to the Press ENTER to get started. prompt.
  4. Erase configuration/any other data.

    Type n when prompted to set an initial password:
    An initial password is required for the first login via the console. Continue to set it? [Y/N]: n Warning: There is a risk on the user-interface which you login through. Please change the configuration of the user-interface as soon as possible.
    Type the reset saved-configuration command and type y to confirm:
    <*************>reset saved-configuration Warning: The action will delete the saved configuration in the device. The configuration will be erased to reconfigure. Continue? [Y/N]:y Warning: Now clearing the configuration in the device. Oct 1 2008 00:06:26+10:00 1303364emsa01 %%01CFM/4/RST_CFG(s)[0]:The user chose Y when deciding whether to reset the saved configuration. Info: Succeeded in clearing the configuration in the device.
    Type the dir command to show the directory of files/folders then use the del command with pattern matching to delete all non-OS-image data files:
    <*************>dir Directory of flash:/ Idx Attr Size(Byte) Date Time FileName 0 -rw- 258,685 Jul 29 2014 14:56:00 s5300li-v200r003sph005.pat 1 -rw- 465 Oct 01 2008 00:08:56 private-data.txt 2 -rw- 36 Oct 01 2008 00:00:52 $_patchstate_reboot 3 drw- - Oct 01 2008 00:01:04 user 4 -rw- 836 Oct 01 2008 00:09:08 rr.dat 5 -rw- 836 Oct 01 2008 00:09:08 rr.bak 6 drw- - Oct 01 2008 00:02:02 dhcp 7 drw- - Oct 01 2008 00:04:06 syslogfile 8 drw- - Oct 01 2008 00:11:36 resetinfo 9 -rw- 26,693,012 Oct 01 2008 00:15:08 s5300-10p-li-v200r005c00spc300.cc 10 drw- - Sep 30 2019 12:59:12 logfile 11 -rw- 4 Oct 01 2008 00:07:18 snmpnotilog.txt 12 -rw- 0 Oct 01 2008 00:06:26 1303364emsa01.cfg 13 -rw- 625 Oct 01 2008 00:34:08 vrpcfg.zip 14 -rw- 1,204 Oct 04 2008 22:31:38 s5300_banner.txt 15 -rw- 6,263 Sep 01 2018 05:48:40 rancid_backup.cfg 204,556 KB total (161,328 KB free) <*************>del dhcp/* Delete flash:/dhcp/dhcp-duid.txt?[Y/N]:y Info: Deleting file flash:/dhcp/dhcp-duid.txt...succeeded. <*************>del syslogfile/* Delete flash:/syslogfile/syslogfile-2008-10-01-00-04-05.zip?[Y/N]:y Info: Deleting file flash:/syslogfile/syslogfile-2008-10-01-00-04-05.zip...succeeded. <*************>del snmp* Delete flash:/snmpnotilog.txt?[Y/N]:y Info: Deleting file flash:/snmpnotilog.txt...succeeded. <*************>del *.cfg Delete flash:/1303364emsa01.cfg?[Y/N]:y Info: Deleting file flash:/1303364emsa01.cfg...succeeded. Delete flash:/rancid_backup.cfg?[Y/N]:y Info: Deleting file flash:/rancid_backup.cfg...succeeded. <*************>del rr.* Delete flash:/rr.dat?[Y/N]:y Info: Deleting file flash:/rr.dat...succeeded. Delete flash:/rr.bak?[Y/N]:y Info: Deleting file flash:/rr.bak...succeeded. <*************>del resetinfo/* Delete flash:/resetinfo/sysinfo-2019-10-09-00-00-38.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-09-00-00-38.zip...succeeded. Delete flash:/resetinfo/reset-sysinfo-2008-10-01-00-29-00.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/reset-sysinfo-2008-10-01-00-29-00.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-09-27-00-00-34.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-09-27-00-00-34.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-09-28-00-00-35.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-09-28-00-00-35.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-09-29-00-00-35.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-09-29-00-00-35.zip...succeeded. Delete flash:/resetinfo/reset-sysinfo-2008-10-04-22-36-33.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/reset-sysinfo-2008-10-04-22-36-33.zip...succeeded. Delete flash:/resetinfo/reset-sysinfo-2015-06-30-09-36-29.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/reset-sysinfo-2015-06-30-09-36-29.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-09-30-00-00-35.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-09-30-00-00-35.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-01-00-00-36.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-01-00-00-36.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-02-00-00-37.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-02-00-00-37.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-03-00-00-37.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-03-00-00-37.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-04-00-00-37.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-04-00-00-37.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-05-00-00-37.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-05-00-00-37.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-06-00-00-37.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-06-00-00-37.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-07-00-00-37.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-07-00-00-37.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-08-00-00-38.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-08-00-00-38.zip...succeeded. Delete flash:/resetinfo/reset-sysinfo-2016-09-13-21-31-46.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/reset-sysinfo-2016-09-13-21-31-46.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-10-00-00-38.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-10-00-00-38.zip...succeeded. Delete flash:/resetinfo/sysinfo-2019-10-11-00-00-38.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/sysinfo-2019-10-11-00-00-38.zip...succeeded. Delete flash:/resetinfo/reset-sysinfo-2008-10-01-00-11-39.zip?[Y/N]:y Info: Deleting file flash:/resetinfo/reset-sysinfo-2008-10-01-00-11-39.zip...succeeded. <*************>del logfile/* Delete flash:/logfile/log.dblg?[Y/N]:y Info: Deleting file flash:/logfile/log.dblg...succeeded. Delete flash:/logfile/log.log?[Y/N]:y Info: Deleting file flash:/logfile/log.log...succeeded. Delete flash:/logfile/2015-09-21.09-33-12.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2015-09-21.09-33-12.dblg.zip...succeeded. Delete flash:/logfile/2015-12-19.18-03-18.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2015-12-19.18-03-18.dblg.zip...succeeded. Delete flash:/logfile/2016-03-18.02-33-19.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2016-03-18.02-33-19.dblg.zip...succeeded. Delete flash:/logfile/2016-06-15.09-33-15.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2016-06-15.09-33-15.dblg.zip...succeeded. Delete flash:/logfile/2016-09-12.18-03-19.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2016-09-12.18-03-19.dblg.zip...succeeded. Delete flash:/logfile/2016-11-30.21-28-31.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2016-11-30.21-28-31.dblg.zip...succeeded. Delete flash:/logfile/2017-02-18.12-28-37.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2017-02-18.12-28-37.dblg.zip...succeeded. Delete flash:/logfile/2017-05-08.21-28-35.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2017-05-08.21-28-35.dblg.zip...succeeded. Delete flash:/logfile/2017-05-24.06-03-29.log.zip?[Y/N]:y Info: Deleting file flash:/logfile/2017-05-24.06-03-29.log.zip...succeeded. Delete flash:/logfile/2017-07-27.12-28-41.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2017-07-27.12-28-41.dblg.zip...succeeded. Delete flash:/logfile/2017-10-14.19-58-42.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2017-10-14.19-58-42.dblg.zip...succeeded. Delete flash:/logfile/2018-01-01.21-28-45.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2018-01-01.21-28-45.dblg.zip...succeeded. Delete flash:/logfile/2018-01-29.21-28-46.log.zip?[Y/N]:y Info: Deleting file flash:/logfile/2018-01-29.21-28-46.log.zip...succeeded. Delete flash:/logfile/2018-03-22.12-31-27.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2018-03-22.12-31-27.dblg.zip...succeeded. Delete flash:/logfile/2018-06-09.20-28-45.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2018-06-09.20-28-45.dblg.zip...succeeded. Delete flash:/logfile/2018-08-27.21-28-49.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2018-08-27.21-28-49.dblg.zip...succeeded. Delete flash:/logfile/2018-08-29.21-28-49.log.zip?[Y/N]:y Info: Deleting file flash:/logfile/2018-08-29.21-28-49.log.zip...succeeded. Delete flash:/logfile/2018-11-15.20-28-48.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2018-11-15.20-28-48.dblg.zip...succeeded. Delete flash:/logfile/2019-02-03.12-58-52.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2019-02-03.12-58-52.dblg.zip...succeeded. Delete flash:/logfile/2019-04-07.21-28-56.log.zip?[Y/N]:y Info: Deleting file flash:/logfile/2019-04-07.21-28-56.log.zip...succeeded. Delete flash:/logfile/2019-04-23.21-28-58.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2019-04-23.21-28-58.dblg.zip...succeeded. Delete flash:/logfile/2019-07-12.20-28-55.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2019-07-12.20-28-55.dblg.zip...succeeded. Delete flash:/logfile/2019-09-30.12-58-55.dblg.zip?[Y/N]:y Info: Deleting file flash:/logfile/2019-09-30.12-58-55.dblg.zip...succeeded.
  5. Check for license files and reboot.

    Type the display startup command to check for any license files:
    <*************>display startup MainBoard: Configured startup system software: flash:/s5300-10p-li-v200r005c00spc300.cc Startup system software: flash:/s5300-10p-li-v200r005c00spc300.cc Next startup system software: flash:/s5300-10p-li-v200r005c00spc300.cc Startup saved-configuration file: NULL Next startup saved-configuration file: NULL Startup paf file: default Next startup paf file: default Startup license file: default Next startup license file: default Startup patch package: NULL Next startup patch package: flash:/s5300li-v200r003sph005.pat
    Type the reboot command:
    <*************>reboot Info: The system is now comparing the configuration, please wait. Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file . Continue? [Y/N]:n Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'. System will reboot! Continue?[Y/N]:y Oct 1 2008 00:07:20+10:00 1303364emsa01 %%01CMD/4/REBOOT(s)[1]:The user chose Y when deciding whether to reboot the system. (Task=co0, Ip=**, User=**) Info: System is rebooting, please wait... Oct 1 2008 00:07:20+10:00 1303364emsa01 %%01SRM/4/MSTRSCURST(l)[2]:Master SCU is reset. Oct 1 2008 00:07:20+10:00 1303364emsa01 %%01SRM/4/RESETREASON(l)[3]:Board reset by VRP command or net manager. System reboot at 00:07:21
  6. Copy all the output from the session into your records.

    Right-click PuTTY's titlebar, from that dropdown menu click on "Copy All to Clipboard"
    Open the file of record certifying the deconfiguration of this device and use CTRL V to paste all the output from PuTTY into that file. Formatting the text with a fixed-width font helps it look more readable.
  7. End the session.

    Close PuTTy.