Forgetting the console password to a switch is annoying but resetting is easy!

This was done on a Huawei S5720

NO config will be changed apart from the console port configuration

The process is simple:

  1. Connect to the console port
  2. Power Cycle the switch
  3. Enter the BootLoad menu
  4. Clear console password
  5. Boot with default mode

The Proceess Broken Down

  1. Connect to the console port

  2. Power Cycle the switch

  3. Entering The BootLoad Menu

    During the reboot look for Press Ctrl+B or Ctrl+E to enter BootLoad menu: and enter Ctrl+b. Then enter the default password.

    Wind River Linux 6.0.0.30 localhost console
    
    localhost login: root (automatic login)
    login[1919]: root login on 'console'
    
    Jan 23 2017, 19:21:20
    mknod: /dev/mvPP: File exists
    BootLoad version : 020a.0001
    Backup U-Boot ............................................................. done
    
    Press Ctrl+B or Ctrl+E to enter BootLoad menu:  1  <----- Press Ctrl+b Here
    
    Password:
    
    

    The default password is Admin@huawei.com

  4. Clear console password

    After pressing Ctrl+b you will be shown this menu. You will need to select option 7.

    BootLoad Menu
    
    1. Boot with default mode
    2. Enter serial submenu
    3. Enter startup submenu
    4. Enter ethernet submenu
    5. Enter filesystem submenu
    6. Enter password submenu
    7. Clear password for console user
    8. Reboot
    (Press Ctrl+E to enter diag menu)
    
    Enter your choice(1-8): 7  <----- Select Option 7
    
    Note: Clear password for console user? Yes or No(Y/N): Y  <----- Enter Y
    Clear password for console user successfully.
    Note: Choose "1. Boot with default mode" to boot, then set a new password
    
  5. Boot with default mode

    As indicated in the message above now select option 1.

     ```
     BootLoad Menu
    
     1. Boot with default mode
     2. Enter serial submenu
     3. Enter startup submenu
     4. Enter ethernet submenu
     5. Enter filesystem submenu
     6. Enter password submenu
     7. Clear password for console user
     8. Reboot
     (Press Ctrl+E to enter diag menu)
    
     Enter your choice(1-8): 1  <----- Choose Option 1
    
     Now, the current startup file is flash:/s5720li-v200r010c00spc600.cc
     ```
    

    Now you will be asked to reset the password.