Fos 801 Pwrecoverynotes
Fos 801 Pwrecoverynotes
Fos 801 Pwrecoverynotes
TROUBLESHOOTING GUIDE
53-1004129-02
30 June 2016
Brocade, Brocade Assurance, the B-wing symbol, ClearLink, DCX, Fabric OS, HyperEdge, ICX, MLX, MyBrocade, OpenScript, VCS, VDX, Vplane, and
Vyatta are registered trademarks, and Fabric Vision is a trademark of Brocade Communications Systems, Inc., in the United States and/or in other
countries. Other brands, products, or service names mentioned may be trademarks of others.
Notice: This document is for informational purposes only and does not set forth any warranty, expressed or implied, concerning any equipment,
equipment feature, or service offered or to be offered by Brocade. Brocade reserves the right to make changes to this document at any time, without
notice, and assumes no responsibility for its use. This informational document describes features that may not be currently available. Contact a Brocade
sales office for information on feature and product availability. Export of technical data contained in this document may require an export license from the
United States government.
The authors and Brocade Communications Systems, Inc. assume no liability or responsibility to any person or entity with respect to the accuracy of this
document or any loss, cost, liability, or damages arising from the information contained herein or the computer programs that accompany it.
The product described by this document may contain open source software covered by the GNU General Public License or other open source license
agreements. To find out which open source software is included in Brocade products, view the licensing terms applicable to the open source software, and
obtain a copy of the programming source code, please visit http://www.brocade.com/support/oscd.
Contents
Preface.......................................................................................................................................................................................................................................................................................... 5
Document conventions............................................................................................................................................................................................................................................. 5
Text formatting conventions......................................................................................................................................................................................................................... 5
Command syntax conventions................................................................................................................................................................................................................... 5
Notes, cautions, and warnings.....................................................................................................................................................................................................................6
Brocade resources....................................................................................................................................................................................................................................................... 6
Contacting Brocade Technical Support........................................................................................................................................................................................................... 6
Brocade customers........................................................................................................................................................................................................................................... 6
Brocade OEM customers.............................................................................................................................................................................................................................. 7
Document feedback.................................................................................................................................................................................................................................................... 7
Fabric OS password recovery notes............................................................................................................................................................................................................................9
Password recovery overview................................................................................................................................................................................................................................. 9
Password recovery for Fabric OS 4.x and later ............................................................................................................................................................................... 9
Password recovery using root account............................................................................................................................................................................................................9
Password recovery using the Boot PROM interface..........................................................................................................................................................................................11
Password recovery using the Boot PROM interface............................................................................................................................................................................... 11
Obtaining the boot PROM recovery password .............................................................................................................................................................................. 12
Removing the boot PROM password...................................................................................................................................................................................................13
Password recovery procedure: quick reference.........................................................................................................................................................................................13
Password recovery procedure for Brocade 6505, 6510, and 6520 switches ...................................................................................................................... 14
Password recovery procedure for Brocade DCX 8510-8 and DCX 8510-4...........................................................................................................................16
Password recovery procedure for the Brocade 7840 switch or Brocade Analytics Monitoring Platform..............................................................18
Password recovery procedure for Brocade G620 switch.................................................................................................................................................................20
Password recovery procedure for Brocade X6-8 and X6-4 Directors....................................................................................................................................... 21
Preface
Document conventions.....................................................................................................................................................................................................5
Brocade resources...............................................................................................................................................................................................................6
Contacting Brocade Technical Support...................................................................................................................................................................6
Document feedback............................................................................................................................................................................................................7
Document conventions
The document conventions describe text formatting conventions, command syntax conventions, and important notice formats used in
Brocade technical documentation.
Description
bold text
italic text
Identifies emphasis
Identifies variables
Identifies document titles
Courier font
Description
bold text
italic text
Identifies a variable.
value
In Fibre Channel products, a fixed value provided as input to a command option is printed in plain text, for
example, --show WWN.
[]
{x|y|z}
A choice of required parameters is enclosed in curly brackets separated by vertical bars. You must select
one of the options.
In Fibre Channel products, square brackets may be used instead for this purpose.
x|y
<>
Convention
Description
...
Indicates a soft line break in command examples. If a backslash separates two lines of a command
input, enter the entire command at the prompt without the backslash.
A Danger statement indicates conditions or situations that can be potentially lethal or extremely hazardous to you. Safety labels
are also attached directly to products to warn of these conditions or situations.
Brocade resources
Visit the Brocade website to locate related documentation for your product and additional Brocade resources.
You can download additional publications supporting your product at www.brocade.com. Select the Brocade Products tab to locate your
product, then click the Brocade product name or image to open the individual product page. The user manuals are available in the
resources module at the bottom of the page under the Documentation category.
To get up-to-the-minute information on Brocade products and resources, go to MyBrocade. You can register at no cost to obtain a user
ID and password.
Release notes are available on MyBrocade under Product Downloads.
White papers, online demonstrations, and data sheets are available through the Brocade website.
Brocade customers
For product support information and the latest information on contacting the Technical Assistance Center, go to http://
www.brocade.com/services-support/index.html.
If you have purchased Brocade product support directly from Brocade, use one of the following methods to contact the Brocade
Technical Assistance Center 24x7.
Online
Telephone
Knowledge Base
Please include:
Problem summary
Serial number
Installation details
Environment description
OEM/Solution Providers are trained and certified by Brocade to support Brocade products.
Brocade provides backline support for issues that cannot be resolved by the OEM/Solution Provider.
Brocade Supplemental Support augments your existing OEM support contract, providing direct access to Brocade expertise.
For more information, contact Brocade or your OEM.
For questions regarding service levels and response times, contact your OEM/Solution Provider.
Document feedback
To send feedback and report errors in the documentation you can use the feedback form posted with the document or you can e-mail
the documentation team.
Quality is our first concern at Brocade and we have made every effort to ensure the accuracy and completeness of this document.
However, if you find an error or an omission, or you think that a topic needs further development, we want to hear from you. You can
provide feedback in two ways:
Through the online feedback form in the HTML documents posted on www.brocade.com.
Provide the publication title, part number, and as much detail as possible, including the topic heading and page number if applicable, as
well as your suggestions for improvement.
Obtaining the boot PROM recovery password on page 12, and then
Password recovery using the Boot PROM interface on page 11.
Open a CLI session (by means of a serial connection or Telnet for an unsecured system and SSH or secTelnet for a secure
system) to the switch.
2.
Log in as root.
3.
4.
NOTE
In Fabric OS 8.0.1, the passwddefault command prompts the user to confirm execution. Therefore, the output may
vary from earlier versions.
5.
Once the passwords have been reset, log into the switch as admin and change the default account passwords.
Make sure to keep a written copy of your switch passwords in a secure location. Table 2 lists the default passwords for Fabric
OS switches, and provides a place for you to log your new ones.
TABLE 2 Default passwords
Account
Default password
factory
New Password
fibranne
admin
password
user
password
NOTE
The 'factory' account is not available in Fabric OS 8.0.1 or later.
10
The Boot ROM environment: Two Boot ROM environments exist, the original 440 processor types and the newer Freescale
processor type, which uses U-Boot.
Location of the Linux kernel: On 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 Command Processor (CP) or has active and standby CPs, as follows:
This procedure is disruptive to traffic on the 300, 3250, 3850, 3900, 4100, 200E, 4900, 5000, 5100, 5300,
VA-40FC, 6505, 6510, 6520, 6530, 7500, 7600, Brocade 7840 Extension Switch, and Brocade G620 switches as well
as the Brocade Encryption Switch and Brocade Analytics Monitoring Platform, because it requires you to reboot the switch;
traffic will resume after the switch is rebooted.
This procedure is not disruptive to traffic on the Brocade 12000, 24000, and 48000 directors, or the DCX, DCX-4S,
DCX 8510-4, DCX 8510-8, X6-4, and X6-8 Directors, as you can reset the passwords on the standby CP first, and then
updating the active CP. To reset the passwords on the active CP from the standby CP, extra steps are necessary to
communicate with the active CP. These are documented in the appropriate procedures.
Throughput of the switch or Director: 8 Gbps devices, including the Brocade 300, 5100, 5300, DCX, and DCX-4S devices,
require the creation of a temporary boot environment variable. This is documented in the appropriate procedures.
Table 3 lists the combinations. Each combination has a separate password recovery procedure.
11
ATA()0xa64g
U-Boot ROM
Active CP
16 Gbps platform
ATA()0xa64g
U-Boot ROM
8 and 16 Gbps
platforms
ATA()0xa64g
U-Boot ROM
Single CP
8 and 16 Gbps
platforms
ATA()0xa64g
Single CP
MEM()0xF0000000
MEM()0xF0000000
Single CP
Brocade DCX, DCX-4S, DCX 8510-4, DCX 8510-8, X6-4, and X6-8
Brocade 300, 5100, 5300, 6505, 6510, 6520, 6530, Brocade Encryption Switch, VA-40FC, and G620
The following links provide 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 6505, 6510, and 6520 switches on page 14.
Password recovery procedure for Brocade DCX 8510-8 and DCX 8510-4 on page 16.
Password recovery procedure for the Brocade 7840 switch or Brocade Analytics Monitoring Platform on page 18.
Password recovery procedure for Brocade X6-8 and X6-4 Directors on page 21.
12
1.
Connect to the serial port of the switch or standby CP using a terminal emulator.
2.
3.
Press Esc within four seconds following the message "Press escape within 4 seconds...". The following prompt appears:
1) Start system.
2) Recover password.
3) Enter command shell.
Option?
4.
Enter 2 at the prompt. A character string is displayed as shown in the following example:
Option? 2
Send the following string to Customer Support for password recovery:
00uasLR1raCqT3FToqy0ZjA== <-- String you must send to your support provider
5.
Send the string to your switch support provider to obtain the Boot PROM recovery password for this device.
6.
When you receive the Boot PROM recovery password for this device from your switch support provider, perform the following
steps to set the Boot PROM password.
7.
8.
Enter the Recovery Password you received from your support provider when prompted, and then reenter it when prompted.
Enter the supplied recovery password.
Recovery Password: 00uasLR1raCqT3FToqy0ZjA== <-- Supplied by your support provider
Re-enter Recovery Password: 00uasLR1raCqT3FToqy0ZjA==
9.
At the "New password:" prompt, enter the password you want to be the new Boot PROM password and reenter it when
prompted. This is not the same as the recovery password.
New password: xxx
Re-enter new password: xxx
10. Record the new Boot PROM password for future reference.
Boot PROM password ___________________________________________
The boot process continues to a normal FOS login prompt. However, the passwords for the root and admin accounts are now
unknown. To set the root and admin passwords, follow the appropriate set of instructions for your device as listed in Password
recovery using the Boot PROM interface on page 11. Once you have completed this procedure, your switch will be back in
operational mode.
2.
3.
Enter saveEnv . Passwords will no longer be required for Boot PROM access.
2.
3.
13
4.
5.
6.
Enter boot.
7.
8.
9.
Password recovery procedure for Brocade 6505, 6510, and 6520 switches
To recover a password on a Brocade 6505, 6510, and 6520 switches, complete the following procedure.
1.
Establish a connection to the Command Processor (CP) through the switch serial port using a terminal emulator.
2.
3.
When prompted to stop test or stop AutoBoot, press Esc. The Boot PROM menu is displayed with the following options:
Recover password: Generates 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: Opens a command shell so you can reset all system passwords.
4.
5.
If the Boot PROM password has been set, you are prompted to enter it.
The Boot PROM has a password only if one was defined. If the Boot PROM password has not been set, you will not be
prompted to enter one.
14
ATTENTION
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 setenv OSLoadOptions "single" to change the OSLoadOptions setting so that the switch will boot into single-user mode.
=> setenv OSLoadOptions "single"
7.
8.
9.
10. Enter mount -o remount,rw / to remount the root partition as capable of read/write operations.
sh-2.04# mount -o remount,rw /
EXT3 FS on hda1, internal journal
11.
ATTENTION
If additional user accounts existed, they are deleted. Only the default accounts and passwords remain.
On some platforms, this step during password recovery attempt via bootprom may display error messages such as Raslog
Module Initialization failed rc=-1 fabsys device open: No such device or address. These message
may be ignored as long as the message All account passwords have been successfully set to factory
default. appears in response to this command.
13. Enter bootenv OSLoadOptions "quiet;quiet" to reset the OSLoadOptions to quiet;quiet.
14. Enter reboot -f to reboot the switch.
15
Password recovery procedure for Brocade DCX 8510-8 and DCX 8510-4
This procedure requires you to connect to the serial port of the switch standby Command Processor (CP) blade. To determine which CP
blade is the standby, use the active LED to identify the active CP blade. The standby CP blade will be the other CP blade.
1.
Establish a connection to the serial port of the standby CP blade using a terminal emulator.
2.
Power-cycle the standby CP blade using the physical slider switch on that CP blade.
3.
When prompted to stop test or stop AutoBoot, press Esc. The Boot PROM menu is displayed with the following options:
Recover password: Generates 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: Opens a command shell so you can reset all system passwords.
4.
5.
If the Boot PROM password has been set, you are prompted to enter it.
The Boot PROM has a password only if one was defined. If the Boot PROM password has not been set, you will not be
prompted to enter one.
ATTENTION
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 setenv OSLoadOptions "single" to change the OSLoadOptions setting so that the switch boots into single-user mode.
7.
16
8.
9.
10. Enter mount -o remount,rw/ to remount the root partition as capable of read/write operations.
sh-2.04# mount -o remount,rw /
EXT3 FS on hda1, internal journal
11.
12. The following commands must be done using the serial connection to the standby CP blade.
a)
Enter /bin/cat /etc/hosts to view the /etc/hosts file and determine the CP hostnames.
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 are different for each installation.
b)
Use the hostname displayed in the previous step to set the appropriate hostname for the standby CP. In this example the
standby CP is mycp0.
sh-2.04# hostname mycp0
c)
Enter /etc/init.d/network start to start networking on the standby CP and enable communication with the active CP.
d)
On the standby CP, enter rsh followed by the IP address of the active CP and then /sbin/passwddefault to reset the active
CP passwords.
For DCX 8510-8 Director:
17
On some platforms, this step during password recovery attempt via bootprom may display error messages such as
Raslog Module Initialization failed rc=-1 fabsys device open: No such device or address.
These message may be ignored as long as the message All account passwords have been successfully set
to factory default. appears in response to this command.
e)
f)
13. Once the switch has completed rebooting, use a Telnet, serial, or SSH connection to log in as admin to the active CP and set
new passwords for all accounts.
This completes the password recovery procedure for these switches.
Establish a connection to the Command Processor (CP) through the switch serial port using a terminal emulation program.
2.
3.
When you see the message Press escape within 4 seconds..., press Esc. The Boot PROM menu is displayed with the
following options:
Recover password: Generates 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: Opens a command shell so you can reset all system passwords.
18
4.
5.
If the Boot PROM password has been set, you are prompted to enter it.
The Boot PROM has a password only if one was defined. If the Boot PROM password has not been set, you will not be
prompted to enter one.
ATTENTION
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.
7.
8.
9.
10. Enter mount -vo remount,rw,noatime / to remount the root partition as capable of read/write operations.
sh-2.04# mount -vo remount,rw,noatime /
/dev/root on / type ext4 (rw,noatime)
11.
Use the mount /dev/sda2 /mnt command to mount the secondary partition.
19
If the printenv command in step 7 returns prt value as 1, then use sda2 in this command. If the prt value is 2 from step 7, use
sda1.
sh-2.04# mount /dev/sda2 /mnt
sh-2.04# mount /dev/sda1 /mnt
sh-2.04# mount
/dev/root on / type unknown (rw,noatime)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,mode=620)
none on /tmp type ramfs (rw)
/dev/sda1 on /mnt type ext4 (rw,noatime)
/dev/sda2 on /mnt type ext3 (rw)
Establish a connection to the Command Processor (CP) through the switch serial port using a terminal emulation program.
2.
3.
When you see the message Press escape within 4 seconds..., press Esc. The Boot PROM menu is displayed with the
following options:
Recover password: Generates 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: Opens a command shell so you can reset all system passwords.
20
4.
5.
If the Boot PROM password has been set, you are prompted to enter it.
The Boot PROM has a password only if one was defined. If the Boot PROM password has not been set, you will not be
prompted to enter one.
ATTENTION
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.
7.
8.
9.
10. Enter mount -vo remount,rw,noatime/ to remount the root partition as capable of read/write operations.
sh-2.04# mount -vo remount,rw,noatime /
/dev/root on / type ext4 (rw,noatime)
11.
Use the mount /dev/sda2 /mnt command to mount the secondary partition.
If the printenv command in step 8 returns prt value as 1, then use sda2 in this command. If the prt value is 2 from step 8, use
sda1.
On some platforms, this step during password recovery attempt via bootprom may display error messages such as Raslog
Module Initialization failed rc=-1 fabsys device open: No such device or address. These message
may be ignored as long as the message All account passwords have been successfully set to factory
default. appears in response to this command.
13. Enter bootenv to verify prt value.
14. Enter setenv bootargs 'root=/dev/sda1 rootfstype=ext4 quiet console=ttyS0,9600' to reset the OSLoadOptions to quiet.
If the prt value is 1 from the previous step, then use sda1 in this command. If the prt value is 2 from the previous step, use sda2.
Traffic flow resumes when the switch completes rebooting.
15. Once the switch has completed rebooting, use a Telnet, serial, or SSH connection to log in as admin to the active CP and set
new passwords for all accounts.
This completes the password recovery procedure for this switch.
16. Enter reboot -f to reboot the switch.
This completes the password recovery procedure for this switch.
Establish a connection to the serial port of the standby CP blade using a terminal emulator.
21
Use the active LED to identify the active and standby CPs.
2.
Power-cycle the standby CP blade using the physical slider switch on that CP blade.
3.
When prompted to stop test or stop AutoBoot, press Esc. The Boot PROM menu is displayed with the following options:
Recover password: Generates 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: Opens a command shell so you can reset all system passwords.
4.
5.
If the Boot PROM password has been set, you are prompted to enter it.
The Boot PROM has a password only if one was defined. If the Boot PROM password has not been set, you will not be
prompted to enter one.
ATTENTION
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.
7.
8.
9.
10. Enter mount -vo remount,rw,noatime / to remount the root partition as capable of read/write operations.
sh-2.04# mount -vo remount,rw,noatime /
/dev/root on / type ext4 (rw,noatime)
11.
Use the mount /dev/sda2 /mnt command to mount the secondary partition.
If the printenv command in step 8 returns prt value as 1, then use sda2 in this command. If the prt value is 2 from step 8, use
sda1.
12. The following commands must be done using the serial connection to the standby CP blade.
a)
Enter /etc/init.d/network start to start networking on the standby CP and enable communication with the active CP.
sh-2.04# /etc/init.d/network start
22
b)
On the standby CP, enter rsh followed by the IP address of the active CP and then /sbin/passwddefault to reset the active
CP passwords.
For X6 Directors:
On some platforms, this step during password recovery attempt via bootprom may display error messages such as
Raslog Module Initialization failed rc=-1 fabsys device open: No such device or address.
These message may be ignored as long as the message All account passwords have been successfully set
to factory default. appears in response to this command.
23