Recover the root login account

Note

Note

These instructions are for all devices except SLX 9540 running SLX-OS 20.1.x and below versions.

For instructions to restore root login/password on SLX 9540 running SLX-OS 20.1.x and below, see Recover the root password when shell prompt is available.

  1. Enter the reboot command.
  2. Select and enter the ONIE option.
  3. Select and enter the ONIE: Rescue option.
  4. Define the root login for the root recover environment variable.
    ONIE:/ # bootenv VM_Root_Recover RootLogin
  5. Enter the reboot command.
    ONIE:/ # reboot
    ONIE:/ # discover: Rescue mode detected. No discover stopped
    Stopping: dropbear ssh daemon... done
    The root account is now enabled. You can log in with the default password.
  6. If the SLX-OS CLI is available, you can recover the root account by using the SLX-OS CLI root enable command.