===== Resetting all passwords on a Brocade Fabric Switch ===== 1) If the switch is powered on, shut it down. 2) Connect your computer to the switch’s serial port with a serial null modem cable, and with a terminal emulation program, open up the associated COM port. 3) Power up the switch. 4) As the switch boots up, POST messages will be displayed. Immediately after this message is displayed on the screen **Press escape within 4 seconds to enter boot interface** press escape, then press 3 to **Enter Command Shell**\\ System RAM test using Default POST RAM Test succeeded.\\ Press escape within 4 seconds to enter boot interface. 1. Start system. 2. Recover password. 3. Enter command shell. Option? 3 5) Run the ‘printenv’ command and take note of the values for OSLoader and OSRootPartition: > printenv AutoLoad=yes ENET_MAC=00051E025A38 InitTest=MEM() LoadIdentifiers=Fabric Operating System;Fabric Operating System OSLoadOptions=quiet OSLoader=ATA()0×259c0;ATA()0×629e0 OSRootPartition=hda1;hda2 SkipWatchdog=yes 6) Using the first value of OSLoader, run **boot <1st OSLoader> -s**: > boot ATA()0×259c0 -s Booting “Manually selected OS” image. Entry point at 0×01000000 ... 7. The switch will then continue booting to the OS. Once at the “#” prompt, run sh-2.04# mount -o remount,rw,noatime / EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,1), internal journal 8. Next, take the second value of OSRootPartition and mount the device as /mnt: sh-2.04# mount /dev/hda2 /mnt kjournald starting. Commit interval 5 seconds EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,2), internal journal EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with ordered data mode. 9. Now run the password reset script **/mnt/sbin/passwddefault**: sh-2.04# /mnt/sbin/passwddefault All account passwords have been successfully set to factory default. 10. Finally reboot the switch with **reboot -f**: sh-2.04# reboot -f flushing ide devices: hda Restarting system. 11. After the reboot, the password for the **admin** user account is **password**. Once you log in for the first time, you will be prompted to change the passwords for the root, factory, admin and user accounts INFO: it's also possible to switch to single user mode (persistent) and revert back to quiet before the last reboot: => printenv OSLoadOptions=quiet;quiet => setenv OSLoadOptions "single" => saveenv => boot ....mount and reset password sh-2.04# bootenv OSLoadOptions "quiet;quiet" sh-2.04# reboot -f For info: with printenv, you'll see the **IP address assigned** to the switch