Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

35277

December 10th, 2014 06:00

Brocade 4424

Does anybody know how to clear the root user on a Brocade M4424 switch for the M1000e? I got a hold of Brocade support, but they said I must contact Dell to clear the root user. I've got 3x of the switches, all of which currently have no support contract. I work for a reseller, these switches actually come directly from Dell. Anybody have a reset procedure/reset FW?

Any help would be much appreciated-

V/r

JW

42 Posts

March 31st, 2016 16:00

Let me answer my own post from over a year ago. :)))) So I've encountered potentially the same 3 switches again- we had to use something else last time. Since then, we successfully rooted an M5424- So I dug in a bit- maybe 40 mintues deep. And am laughing out loud now. I read 3-4 reset procedures- all lengthy, "fun" looking procedures- involving changing boot variables, etc. Then I put 2 and 2 together, and here is 4- I've taken the useful info from a few of these and wrote a very simple procedure to reset the switches- this works on the M4424 and I believe it would be good for the M5424, and many other brocade switches.

-You do need the eProm password to work, it turns out most everybody sets it to password if it is even enabled. You can clear this by opening the switch and pressing the two buttons in the corner individually.

M4424 Reset without root access:

Connect to switch console- reboot switch

Press ESC when prompted to enter boot menu

Select option 3. The password is commonly set to password

but it is blank by default.

Run printenv to view environmental variables needed for

commands below. --I separated the useful bits, we only need osloader and rootpartition info.

AutoLoad=yes

ENET_MAC=00051EA3E8E5

InitTest=MEM()

LoadIdentifiers=Fabric Operating System;Fabric Operating System

OSLoadOptions=quiet;quiet

OSLoader=ATA()0x5d040;ATA()0x3c890

OSRootPartition=hda2;hda1

SkipWatchdog=yes

boot ATA()0x5d040 -s        <-- OSLoader= *string* make sure the -s switch is there, or it boots norm

mount -o remount,rw,noatime /     <-- needs to be mounted in RW!

mount /dev/hda1 /mnt        <-- mount SECOND listed OSRootPartition

/sbin/passwddefault         <-- Password reset command

reboot                                 <-- reboots the switch

And wala- switch user data is reset. Now you can access the gui and restore factory defaults like a pro by logging in as root

root

fibranne

If I only had a time machine.

5 Practitioner

 • 

274.2K Posts

December 10th, 2014 07:00

I found the following information on the Brocade forums, may be worth trying.

Recovering from a lost password

Recovery from a lost password requires direct access to the serial port and a system reset.

You can perform this procedure only from the CLI.

Follow the steps given below to recover from a lost password.

1. Start a CLI session over the serial interface to the device.

2. Reboot the device.

3. At the initial boot prompt at system startup, enter b to enter the boot monitor mode.

4. Enter no password at the prompt. (You cannot abbreviate this command.) This command will

cause the device to bypass the system password check.

5. Enter boot system flash primary at the prompt.

6. After the console prompt reappears, assign a new password.

42 Posts

March 31st, 2016 15:00

This does not work- pressing b at the menu does nothing- switch proceeds to boot normal.

I know this works for the M5424 github.com/.../Procedure-For-Root-On-Brocade-5424

About to find out if it applies to the M4424 as well.

42 Posts

April 1st, 2016 09:00

I left one line out of this as I was pasting from putty..

once you are at the linux shell (you've booted OS with option -s)

the first command needs to be: mount -o remount,rw,noatime /

This puts the mounted fs in RW so the reset password command will go through.

5 Practitioner

 • 

274.2K Posts

April 4th, 2016 13:00

Great information! thanks for sharing your findings with us. I know I am putting this down in my notes.

2 Posts

October 24th, 2016 08:00

JW,

Can you clarify this: "pressing the two buttons in the corner individually." Do you mean 'press one then the other' , 'both at the same time', 'in the chassis powered up' etc.

thanks

No Events found!

Top