Original Document: Extreme Network OS Troubleshooting Guide NOS: 7.3.0
1. Connect to the serial console port of the switch.
2. Manually reboot the switch.
3. When prompted to stop AutoBoot, press ESC.
Checking system RAM – press any key to stop test
Checking memory address: 00100000
System RAM test terminated by keyboard
set_bootstatus: BS_LOAD_OS, platform_idx = 6
Hit ESC to stop autoboot: 0
1) Start system.
2) Recover password.
3) Enter command shell.
Option?
4. Enter 3 at the prompt to open the command shell.
5. If prompted, enter the Boot PROM password and press Enter.
6. Append “S” to the boot arguments so that the switch boots into single-user mode, by entering the following at the prompt:
=> setenv bootargs “root=/dev/sda1 rootfstype=ext4 quiet S”
7. Enter the printenv command to verify the change.
=> printenv
AutoLoad=yes
LoadIdentifiers=Fabric Operating System;Fabric Operating System
OSLoadOptions=quiet
OSRootPartition=sda2;sda1
SkipWatchdog=yes
autoset_mac=true
baudrate=9600
bootargs=root=/dev/sda1 rootfstype=ext4 quiet S
bootcmd=execute_internal_bootcmd
(output truncated)
8. Enter the saveenv command to save the changes.
=> saveenv
Saving Environment to Flash…..Done
9. Enter the reset command to bring up the device in single-user mode
=> reset
BootROM version: 1.0.48
Copyright (C) 2011 Brocade Communication.
CPU0: P4080E, Version: 2.0, (0x82080020)
(output truncated)
10. Enter the mount command with the following parameters to remount the root partition as read/write capable.
sh-2.04# mount -vo remount,rw,noatime /
/dev/root on / type ext4 (rw,noatime)
11. Mount the secondary partition.
Examine the output of the printenv command in Step 7, to check which partition the root points to in the boot arguments
(bootargs = root setting). If the root partition is sda2, then use sda1 in this command. If the root partition is sda1, then use sda2.
sh-2.04# mount /dev/sda2 /mnt
12. Enter the passwddefault command to reset the root password to the factory default value or the /sbin/passwddefault -f (to
reset the root password and forcefully enable the root account).
sh-2.04# /sbin/passwddefault -f
13. Reset the boot arguments by removing the “S”.
sh-2.04# bootenv bootargs “root=/dev/sda1 rootfstype=ext4 quiet”
14. Reboot the switch by using the partman -r command.
sh-2.04# partman -r
15. Log in to the switch by using the serial interface or Telnet. Use the factory default accounts (root/admin/user).
16. Start the Network OS command line.
device:root> noscli
17. Enter global config mode
device# configure terminal
Entering configuration mode terminal
device(config)#
18. Use the following syntax of the username command to reset passwords for the admin or user accounts, or for any other
nondefault users.
username account-name password new-password
The following example resets the admin password to the default value of “password.”
device(config)# username admin password password
19. To restore the non-default user accounts, perform the following steps:
a) Copy the running config to a file
device# copy running-config flash://running-config.cfg
2012/07/09-11:51:21, [DCM-1108], 4930, M2, INFO, VDX8770-4, Running
configuration file has been uploaded successfully to the remote location
b) Run the following command to apply the default config to the switch.
device# copy default-config startup-config
c) Enter y to reboot the switch.
device# reload
Are you sure you want to reload the switch? [y/n]:y
The system is going down for reload NOW !!
d) Copy the file saved in Step 19a to the running config
device# copy flash://running-config.cfg running-config
The password recovery procedure is now complete. You can now use normal password-management procedures from the admin account
