FOS Password Recovery Notes
FOS Password Recovery Notes
13 February 2012
Fabric OS
Password Recovery Notes
Supporting Fabric OS v6.x, v5.x, v4.x, v3.x, v2.6.x
Asia-Pacific Headquarters
Brocade Communications Systems China HK, Ltd.
No. 1 Guanghua Road
Chao Yang District
Units 2718 and 2818
Beijing 100020, China
Tel: +8610 6588 8888
Fax: +8610 6588 9999
E-mail: [email protected]
European Headquarters
Brocade Communications Switzerland Srl
Centre Swissair
Tour B - 4me tage
29, Route de l'Aroport
Case Postale 105
CH-1215 Genve 15
Switzerland
Tel: +41 22 799 5640
Fax: +41 22 799 5641
E-mail: [email protected]
Asia-Pacific Headquarters
Brocade Communications Systems Co., Ltd. (Shenzhen WFOE)
Citic Plaza
No. 233 Tian He Road North
Unit 1308 13th Floor
Guangzhou, China
Tel: +8620 3891 2000
Fax: +8620 3891 2111
E-mail: [email protected]
Document History
Title
Publication number
Summary of changes
Date
53-1000114-01
New document
March 2006
53-1000114-02
December 2008
53-1000114-03
November 2010
53-1000114-04
Caution added
December 2010
53-1000114-05
Defect fixed
February 2012
Chapter
In this chapter
Password recovery overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Password recovery using root account. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Password recovery using the Boot PROM interface . . . . . . . . . . . . . . . . . . . . 3
Obtaining the boot PROM recovery password . . . . . . . . . . . . . . . . . . . . . . . . 17
Password recovery using Password Recovery firmware . . . . . . . . . . . . . . . . 18
TABLE 1
NOTE
You cannot perform password recovery procedures on FIPS-enabled switches because these
procedures require access to a serial port. The serial port is disabled on FIPS-enabled switches.
NOTE
When connected through a serial cable to the console, always save the output using the capture
functionality under Windows, or script functionality for UNIX or Linux.
4. Follow the prompts to reset the password for the selected account. For example:
switch:root> passwddefault
All account passwords have been successfully set to factory default.
Once the passwords have been reset, log into the switch as admin, and change your default
passwords. Make sure to keep a hardcopy of your switch passwords in a secure location. Table 2
lists the default passwords for Fabric OS switches.
TABLE 2
Default Passwords
Account
Default password
factory
root
fibranne
TABLE 2
Account
Default password
admin
password
user
password
The Boot ROM environmentTwo Boot ROM environments exist, the original 440 processor
types and the newer Freescale processor type, which uses U-Boot.
Location of the Linux kernelOn earlier products, the Linux kernel was maintained on separate
hardware chips. For these products, these procedures make references to
MEM()0xF00000000. Later products place the kernel on the compact flash. For these
products, these procedures make references to ATA()0xb689f type structures.
Whether the platform has a single CP, or has active and standby CPsThis procedure is
disruptive to traffic on the 3250, 3850, 3900, 4100, 200E, 4900, 5000, 7500, 7600, 300,
5100, and 5300 switches and Brocade Encryption Switches, because it requires you to reboot
the switch; traffic resumes after the switch is rebooted. On a Brocade 12000, 24000, 48000
director, DCX, or DCX-4S platforms you can reset the passwords without disruption by
performing this procedure on the standby CP.
To reset the passwords on the active CP from the standby CP, extra steps are necessary to
communicate with the active CP.
Throughput of the switch or director8 Gbps devices, including the Brocade 300, 5100, 5300,
DCX, and DCX-4S devices, requires the creation of a temporary boot environment variable.
Table 3 lists the types of combinations. Each combination has a separate password recovery
procedure, described later in this section.
TABLE 3
Factor combinations
ATA()0xa64g
U-Boot ROM
active and standby CPs
8 Gbps platform
ATA()0xa64g
U-Boot ROM
single CP
8 Gbps platform
ATA()0xa64g
original Boot ROM
single CP
MEM()0xF0000000
original Boot ROM
active and backup CPs
MEM()0xF0000000
original Boot ROM
single CP
This section provides detailed procedures for performing password recovery on each group of
related devices as well as a quick reference for advanced users who need only a reminder of the
basic steps:
Password recovery procedure for Brocade 200E, 4900, 5000, 7500, and 7600 switches on
page 10
Password recovery procedure for Brocade 12000, 24000, and 48000 switches on page 11
Password recovery procedure for Brocade 3250, 3850, 3900, and 4100 switches on
page 14
Where the argument to the boot command is the first parameter shown for OSLoader in the
printEnv output.
6. mount -o remount,rw,noatime /
7.
Step 8 required only for devices with active and standby CPs.
9. /sbin/passwddefault
10. bootenv OSLoadOptions quiet;quiet
11. reboot -f
You cannot use the haShow command if you have lost all passwords.
Use the active LED to identify the active and standby CPs.
2. Reboot the standby CP using either the fastBoot command or the reboot command. Enter:
> fastboot
Or:
> /sbin/reboot
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.
5. Type the Boot PROM password, if prompted, and then press Enter. The Boot PROM has a
password only if one was defined.
NOTE
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:
=> setenv OSLoadOptions "single"
7.
9. Enter the boot command with no parameters to bring up the device in the single user mode:
=> boot
ATA device vendor STI Flash 8.0.0, product
STI1M73108114125534, revision 01/17/07
Map file at LBA sector 0x5003f
(output truncated)
10. Enter the mount command with the following parameters to remount the root partition as
read/write capable:
sh-2.04# mount -o remount,rw /
EXT3 FS on hda1, internal journal
12. From the serial connection to the standby CP, view the /etc/hosts file to determine the
hostname of the CPs:
sh-2.04# /bin/cat /etc/hosts
127.0.0.1 localhost
10.64.148.23 swd77 #sw0 255.255.240.0
10.64.148.24 swd76 #sw1 255.255.240.0
10.64.128.25 mycp0 #cp0 255.255.240.0 < CP0 SLOT 5
10.64.148.26 cp1 #cp1 255.255.240.0 < CP1 SLOT 6
0.0.0.0 #fc0 0.0.0.0
0.0.0.0 #fc1 0.0.0.0
10.0.0.5 cp_0_inteth #cp_0_internaleth
10.0.0.6 cp_1_inteth #cp_1_internaleth
NOTE
The hostnames for CP0 and CP1 are user definable, and might be different for each
installation.
13. From the serial connection to the standby CP, set the appropriate hostname to the CP. Use the
hostname displayed in the previous step. In the above example, mycp0 is the standby CP.
sh-2.04# hostname mycp0
14. Start networking on the standby CP to enable communication with the active CP:
sh-2.04# /etc/init.d/network start
15. From the standby CP, enter the rsh command to run a remote shell on the active CP and reset
its password with the passwddefault command:
For DCX
For DCX-4S
127.1.1.5 /sbin/passwddefault
18. Log in to the active CP as admin from a telnet or serial connection, and set new passwords for
all accounts, when prompted.
Or:
> /sbin/reboot
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.
1) Start system.
2) Recover password.
3) Enter command shell.
Option?
NOTE
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:
7.
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
read/writecapable:
sh-2.04# mount -o remount,rw /
EXT3 FS on hda1, internal journal
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
remain.
13. Reset the OSLoadOptions to queit;quiet:
sh-2.04# bootenv OSLoadOptions quiet;quiet
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 as root to the switch by the serial interface or telnet and set new passwords for all
accounts.
The password recovery procedure is now complete.
Or:
> /sbin/reboot
3. When you see the message Press escape within 4 seconds... , 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.
NOTE
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. Enter the printEnv command and make a note of the following values from its output. You will
need these values later in this procedure:
From the OSLoader field, the first of the two ATA memory addresses shown
From the OSRootPartition field, the second partition value shown
These values are shown in red in the following example:
> printenv
10
AutoLoad=yes
ENET_MAC=00051E905AF0
InitTest=MEM()
LoadIdentifiers=Fabric Operating System;Fabric Operating System.
OSLoadOptions=quiet
OSLoader=ATA()0xb009f;ATA()0x141480
OSRootPartition=hda1;hda2
SkipWatchdog=yes
7.
Enter the boot command with the first ATA memory address you obtained in step 6 and the s
option:
> boot ATA()0xb009f -s
Booting "Manually selected OS" image.
Entry point at 0x00800000 ...
8. Enter the mount command with the following parameters to remount the root partition as
read/write:
> mount -o remount,rw,noatime /
9. Enter the mount command with the following parameters where hda is followed by the second
partition value (such as hda1 or hda2) from the OSRootpartition field in the printEnv output
you obtained in step 6:
> mount /dev/hda2 /mnt
NOTE
OSRootPartition has not changed in any of the releases. It either points to the first partition
(hda1) or 2nd partition (hda2). You simply swap the order, for example
OSRootPartition=hda1;hda2 or OSRootPartition=hda2;hda1. The first entry is assigned as
the root or bootable partition. Normally, either partition is bootable unless there was a
firmwaredownload in progress that went wrong or there is corruption in the partition.
10. Enter the passwddefault command to reset all passwords to default values as follows:
> /sbin/passwddefault
If additional user accounts existed, they are deleted. Only the default accounts and passwords
remain.
11. Reboot the switch using the reboot f command.
> 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.
12. Log in as root to the switch by serial or telnet and set new passwords for all accounts.
The password recovery procedure is now complete.
11
You cannot use the haShow command if you have lost all passwords.
Use the active LED to identify the active and standby CP.
2. Reboot the standby CP using either the fastBoot command or the reboot command. Enter:
> fastboot
Or:
> /sbin/reboot
3. When you see the message Press escape within 4 seconds... , 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.
NOTE
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. Enter the printEnv command and make a note of the following values from its output. You will
need these values later in this procedure:
From the OSLoader field, the first of the two ATA memory addresses shown
From the OSRootPartition field, the second partition value shown
12
7.
Run the boot command with the first memory address (obtained in step 6) and the s option.
> boot MEM()0xF0000000 -s
Booting "Manually selected OS" image.
Entry point at 0x00800000 ...
8. Enter the mount command with the following parameters to remount the root partition as
read/write:
> mount -o remount,rw,noatime /
9. Enter the mount command with the following parameters where hda is followed by the second
partition value (such as hda1 or hda2) from the OSRootpartition field in the printEnv output
you obtained in step 6:
> mount /dev/hda2 /mnt
NOTE
OSRootPartition has not changed in any of the releases. It either points to the first partition
(hda1) or 2nd partition (hda2). You simply swap the order, for example
OSRootPartition=hda1;hda2 or OSRootPartition=hda2;hda1. The first entry is assigned as
the root or bootable partition. Normally, either partition is bootable unless there was a
firmwaredownload in progress that went wrong or there is corruption in the partition.
10. From the serial connection to the standby CP, view the /etc/hosts file to determine the
hostname of the CPs:
# /bin/cat /etc/hosts
127.0.0.1 localhost
10.64.148.23 swd77 #sw0 255.255.240.0
10.64.148.24 swd76 #sw1 255.255.240.0
10.64.128.25 mycp0 #cp0 255.255.240.0 < CP0 SLOT 5
10.64.148.26 cp1 #cp1 255.255.240.0 < CP1 SLOT 6
0.0.0.0 #fc0 0.0.0.0
0.0.0.0 #fc1 0.0.0.0
10.0.0.5 cp_0_inteth #cp_0_internaleth
10.0.0.6 cp_1_inteth #cp_1_internaleth
NOTE
The hostnames for CP0 and CP1 are user definable, and might be different for each
installation.
11. From the serial connection to the standby CP, set the appropriate hostname to the CP. Use the
hostname displayed in the previous step. In the above example, mycp0 is the standby CP.
13
# hostname mycp0
12. Start networking on the standby CP to enable communication with the active CP:
> /etc/init.d/network start
13. From the standby CP, enter the rsh command to run a remote shell on the active CP and reset
its password with the passwddefault command:
15. Log in to the active CP as admin from a telnet or serial connection, and set new passwords for
all accounts, when prompted.
The password recovery procedure is now complete.
Or:
> /sbin/reboot
3. When you see the message Press escape within 4 seconds... , 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.
14
2) Recover password.
3) Enter command shell.
Option? 3
NOTE
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. Enter the printEnv command and make a note of the following values from its output. You will
need these values later in this procedure:
From the OSLoader field, the first of the two MEM memory addresses shown
From the OSRootPartition field, the second partition value shown
These values are shown in red in the following example:
> printenv
AutoLoad=yes
ENET_MAC=0060696019B4
InitTest=MEM()
LoadIdentifiers=Fabric Operating System;Fabric Operating System
OSBooted=MEM()0xF0000000
OSLoadOptions=quiet;quiet
OSLoader=MEM()0xF0000000;MEM()0xF0800000
OSRootPartition=hda1;hda2
SkipWatchdog=yes
7.
Run the boot command with the first memory address (obtained in step 6) and the s option.
> boot MEM()0xF0000000 -s
Booting "Manually selected OS" image.
Entry point at 0x00800000 ...
8. Enter the mount command with the following parameters to remount the root partition as
read/write:
> mount -o remount,rw,noatime /
9. Enter the mount command with the following parameters where hda is followed by the second
partition value (such as hda1 or hda2) from the OSRootpartition field in the printEnv output
you obtained in step 6:
> mount /dev/hda2 /mnt
NOTE
OSRootPartition has not changed in any of the releases. It either points to the first partition
(hda1) or 2nd partition (hda2). You simply swap the order, for example
OSRootPartition=hda1;hda2 or OSRootPartition=hda2;hda1. The first entry is assigned as
the root or bootable partition. Normally, either partition is bootable unless there was a
firmwaredownload in progress that went wrong or there is corruption in the partition.
15
10. Enter the passwddefault command to reset all passwords to default values as follows:
> /sbin/passwddefault
If additional user accounts existed, they are deleted. Only the default accounts and passwords
remain.
11. Reboot the switch using the reboot f command.
> 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.
12. Log in as root to the switch by serial or telnet and set new passwords for all accounts.
The password recovery procedure is now complete.
16
=> printenv
AutoLoad=yes
ENET_MAC=006069602BD6
InitTest=MEM()
LoadIdentifiers=Fabric Operating System;Fabric Operating System
OSLoader=MEM()0xF0000000;MEM()0xF0800000
OSLoadOptions=quiet;quiet
OSRootPartition=hda1;hda2
SkipWatchdog=yes
6. From the output of the printEnv command, record the value for OSLoader.
OSLoader ___________________________________________
NOTE
The value of the OSLoader= string should be set to the exact value from step 6 on page 17
unsetenv OSBooted
setenv LoadIdentifiers=Fabric Operating System;Fabric Operating System
setenv OSLoadOptions=quiet;quiet
setenv OSLoader=MEM()0xF0000000;MEM()0xF0800000
saveenv
printenv
reset
17
To obtain the Boot PROM recovery password from your switch support provider:
1. Connect to the serial port interface of the switch or standby CP.
2. Reboot the switch or standby CP.
3. Press ESC within four seconds after the message Press escape within 4 seconds....
4. Enter 2 at the prompt. A character string is displayed, shown in red in the following example:
1) Start system.
2) Recover password.
3) Enter command shell.
Option? 2
Send the following string to Customer Support for password recovery:
/uasLR1raCqT3FToqy0ZjA==
5. Send the character string to your switch support provider to obtain a Boot PROM recovery
password.
6. Perform the appropriate steps to set the Boot PROM password if it was not set, as prompted:
Recovery password is NOT set. Please set it now.
7.
Enter the Recovery Password that is generated from your support provider when prompted,
and re-enter it when prompted.
Enter the supplied recovery password.
Recovery Password: YnfG9DDrlFMDVkNM0RkPtg== < Supplied by your support
provider
Re-enter Recovery Password: YnfG9DDrlFMDVkNM0RkPtg==
8. When prompted with New password:, enter the new Boot PROM password and re-enter it
when prompted:
New password: xxx
Re-enter new password: xxx
b.
Enter the saveEnv command. Passwords will no longer be required for Boot PROM
access.
> saveenv
You are now ready to recover passwords as described in Password recovery using the Boot PROM
interface on page 3.
18
This procedure requires Password Recovery firmware, available from your switch support provider.
The Password Recovery firmware is effective only for the first time it is launched. You cannot use
the Password Recovery firmware to perform any other switch functions.
These procedures require switch downtime. Brocade recommends removing the switch from the
fabric and rejoining it after the recovery process is complete.
In order to complete the steps in this section you need the following:
Password Recovery firmware: Provide the exact Fabric OS version and the WWN of the switch
to your support provider with a request for the Password Recovery firmware. This firmware can
be launched only once, and it recovers the password for the specific switch only.
Ethernet connection between host and switch. It can be a network connection from a host to
the switch or a direct connection with an Ethernet crossover cable.
b.
Type the requested information at the prompts. To accept the default value for a
parameter, press Enter.
The parameters are defined as follows:
host name
file name
inet on ethernet
Switch IP address
host inet
gateway inet
Gateway address
user
19
5. Press @ at the [VxWorks Boot] prompt to begin booting the Password Recovery version of the
firmware from the network.
[VxWorks Boot]: @
boot device : fei
processor number : 0
host name : host
file name : resetPasswd303f6f
inet on ethernet (e) : 192.168.132.217:fffff000
host inet (h) : 192.168.132.133
gateway inet (g) : 192.168.132.133
user (u) : user
flags (f) : 0x0
target name (tn) : sw2800
Attaching network interface fei0... done.
Attaching network interface lo0... done.
host is alive <-------------------------CONNECTION TO HOST PROVIDING FIRMWARE IMAGE
Loading... 4407608 + 329564 + 1153796
Starting at 0x10400000...
Attaching network interface fei0... done.
Attached TCP/IP interface to fei unit 0
Attaching network interface lo0... done.
telnetInit: telnetd initialized.
NFS client support not included.
efwHookAdd: Added Ethernet Hook
Adding 9407 symbols for standalone.
Model: 4
flash time 0, creation time 1048818644
Committing configuration...done.
setting passwd to defaults <-------FIRMWARE IMAGE RESETS PASSWORD TO BROCADE
DEFAULTS
Time Bomb has been set
RESTRICTED ONE TIME USE
Passwords have been reset. Please power cycle the switch.
The user, admin, factory, and root passwords are reset to the default values.
6. Turn off the switch and turn it on again.
7.
Press any key when you see the message Press any key to stop autoboot... This provides
access to the boot prompt.
20
a.
At the [VxWorks Boot] prompt, enter c to begin resetting the boot parameters to the default
settings.
b.
Remove the values that you added by typing a period (.) after each parameter, then
pressing Enter. The boot parameters are returned to the default settings.
9. Turn off the switch and turn it on again to reload the original firmware from flash. The switch
resumes normal operation.
10. Log in to the switch by telnet or serial as root, and set new passwords for all accounts.
21
22