Brocade 300 password recovery and factory reset

Let’s say you purchase a couple of 300s on the Ebay and someone forgot to reset config but you can’t get in as all default passwords got changed. Here’s what we need to do:

1. Connect to the serial console port of the switch (make sure to use correct Brocade cable as typical Cisco console cable will not work).
2. Power on switch
3. When promted to stop test or stop AutoBoot, press ESC.
The Boot PROM menu is displayed with the following options:
• Start system
Used to reboot the system.
• Recover password.
Used to generate a character string for your support provider to recover the Boot PROM
password. Use this feature only when directed by technical support personnel.
• Enter command shell.
Used to enter the command shell, to reset all passwords on the system.
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.

4. Type 3 at the prompt to open the command shell:
Option? 3
5. Type the Boot PROM password, if prompted, and press Enter.
The Boot PROM has a password only if one was defined.
If you are prompted to enter a new Boot PROM password, make sure it is at least 8 characters
in length. Do not select this option unless specifically instructed by support personnel.
6. To change the “OSLoadOptions=quiet;quiet” setting so that the switch boots into single user
mode, enter the following command:
Fabric OS Password Recovery Notes 9
Password recovery using the Boot PROM interface 1

=> setenv OSLoadOptions “single”
7. Enter the printEnv command to verify the change:
=> printenv
LoadIdentifiers=Fabric Operating System;Fabric Operating System
(output truncated)

8. Save the changes:
=> saveenv
Saving Environment to Flash…..Done
9. Enter the boot command with no parameters to bring up the device in the single user mode:
=> boot
Map file at LBA sector 0x17da68
## Booting image at 00400000 ...
(output truncated)

10. Enter the mount command with the following parameters to remount the root partition as
sh-2.04# mount -o remount,rw /
EXT3 FS on hda1, internal journal
11. Mount the secondary partition.
If the previous command returns hda2, then use hda1 in this command. If the previous
command returns hda 1, use hda2.
sh-2.04# mount /dev/hda2 /mnt
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.

12. Enter the passwddefault command to reset all passwords to default values as follows:
sh-2.04# /sbin/passwddefault
All account passwords have been successfully set to factory default.
If additional user accounts existed, they are deleted. Only the default accounts and passwords

13. Reset the OSLoadOptions to “queit;quiet”:
sh-2.04# bootenv OSLoadOptions ”quiet;quiet”
14. Reboot the switch using the reboot –f command.
sh-2.04# reboot -f
Traffic flow resumes when the switch completes rebooting. If you do not use the –f option you
will have to manually reboot the switch.
15. Log in with admin account using default password.
The password recovery procedure is now complete.

Next, we need to reset configuration to factory default:

1. Disable switch
2. Disable config
>cfgdisable (hit “y” at prompt)
3. Clear config
cfgclear (hit “y” at prompt)
4. Save clean configuration
>cfgsave (hit “y” at prompt)
5. Reset configuration to default
>configdefault (hit “Y” at prompt)
6. Re-enable switch
7. Reboot to activate changes

And finally we need to change management IP address with the following command

This procedure was tested with Fabric OS 7.4.1c
Default passwords for Fabric OS:


This entry was posted in Random stuff and tagged , , , . Bookmark the permalink.

11 Responses to Brocade 300 password recovery and factory reset

  1. Daniel Silva says:

    This Post saved my life. I had a couple of switches that needed to be reset and this did the job.

    Thank you so much.

  2. Francesco says:

    Thank you very much!! Works like a charm

  3. Pascal says:

    Hi. Great instructions, however I am stuck between the inital ‘boot’ and the ‘mount -o remount,rw /’ line. After I hit ‘Enter’ on boot, the system boots up but comes to the login prompt. Alas as I do not have the username/password combination, it doesn’t allow me to use the ‘mount’ steps. Am I missing something?

  4. Dave S. says:

    Worked perfectly!

  5. Alex says:

    Awesome! Thank you so much. I used the first set of instructions to reset the passwords on my Brocade 6510 running Fabric OS: v7.4.0a

  6. Sergej says:

    Thank you, very much!!!
    This is the bestest instruction for brocades.
    No any normal instructions from IBM, HPE, Brocade and others….

  7. SB says:

    I just came across this article, and it helped me tremendously. This is what the internet is for. Thanks you for the post.

  8. Daniel Silva says:

    This post saved my life again! my boss was on my ass for not saving the passwords in our secure vault. Cheers.

  9. stu macintyre says:

    Thanks very much this helped me out too!
    What caught me out and I think with the chap Pascal above, is that if you copy the commands from the webpage here, the quotes copy across differently in a terminal window and then you get stuck in limbo between point 9 and not getting to mount the volume.

Leave a Reply

Your email address will not be published. Required fields are marked *