Connectrix Brocade B-Series: How to recover ALL passwords on Connectrix Brocade DS-300B, DS-5100B, DS-5300B.

           

   Article Number:     524363                                   Article Version: 3     Article Type:    How To 
   

 


Product:

 

Connectrix,Connectrix DS-300B

 

Instructions:

 

 

To recover or reset all passwords for Connectrix Brocade DS-300B follow the procedure below:   
    Note that this will recover and reset ALL passwords to default, for recovery of admin and user password login as root and check the command guide for the correct command.   
    Read this procedure first in full, to be able to understand the activity.   
    ==================   
    1. Establish a connection to the switch through the switch serial port using a terminal emulator. (the port with the "I0I0I" sign.)   
   
   
    2. Power-cycle the switch.   
   
   
    3. When prompted to Hit ESC to stop autoboot: press Esc. (due to latency of a remote connection, might want to press Esc multiple times.)   
    When Esc. is pressed the Boot PROM menu is displayed with the following options:   

      1) Start system. (Reboots the system.)     
      2) 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. If the Boot Prom password is not set then continue to 4.)     
      3) Enter command shell: (Opens a command shell so you can reset all system passwords.)     
          
    Example:   
    Checking system RAM - press any key to stop test       
        Checking memory address: 00100000       
        System RAM test using Default POST RAM Test succeeded.       
        set_bootstatus: BS_LOAD_OS, platform_idx = 1       
        Type run flash_nfs to mount root filesystem over NFS       
        Hit ESC to stop autoboot:  0       
        1) Start system.       
        2) Recover password.       
        3) Enter command shell.
     
      Option?
   
   
   
    4. Enter 3 to open a command shell.   
   
   
    5. If the Boot PROM password has been set, you are prompted to enter it.   
    Example:   
    Boot PROM password has not been set.     
      =>
   
   
   
    6. a. With the command printenv one can see the current environment options, this will show stored settings   
    Example:   
    => printenv     
      AutoLoad=yes     
      BootromVerbose=no     
      InitTest=MEM()     
      LoadIdentifiers=Fabric Operating System;Fabric Operating System     
      OSLoadOptions=quiet;quiet     
      OSLoader=ATA()0xb4e4f;ATA()0x1498a0     
      OSRootPartition=hda1;hda2     
      [output truncated]     
      => 
   
   
      b. Enter the command setenv OSLoadOptions "single" to change the OSLoadOptions setting so that the switch will boot into single-user mode.   
    Example:   
    => setenv OSLoadOptions "single"   
   
   
    7. Enter the command printenv to verify the change.   
    The following example highlights the field whose value you need to note.   
    Example:   
    => printenv     
      AutoLoad=yes     
      BootromVerbose=no     
      InitTest=MEM()     
      LoadIdentifiers=Fabric Operating System;Fabric Operating System     
      OSLoadOptions=single     
      OSLoader=ATA()0xb4e4f;ATA()0x1498a0     
      OSRootPartition=hda1;hda2
   
   
   
    8. Enter the command saveenv to save the changes.   
    Example:   
    => saveenv     
      Saving Environment to Flash...     
      .     
      .     
      done     
      =>
   
   
   
    9. Enter the command boot with no parameters to bring up the device in single-user mode.   
    Example:   
    => boot     
      Map file at LBA sector 0xb4e4f     
      ## Booting image at 00400000 ...     
         Image Name:   Linux-2.6.14.2     
         Image Type:   PowerPC Linux Multi-File Image (uncompressed)     
         Data Size:    4290075 Bytes =  4.1 MB     
         Load Address: 00000000     
      [output truncated]
   
   
   
    10. Enter the command mount -o remount,rw / to remount the root partition as capable of read/write operations.   
    Example:   
    sh-2.04#      
      sh-2.04# mount -o remount,rw /     
      EXT3 FS on hda1, internal journal     
      sh-2.04# 
   
   
   
    11. Use the mount command to mount the secondary partition.   
    Note that:    
    If the mount command in the previous step returns hda2, then use hda1 in this command.   
    If the previous command returns hda1, use hda2.   
    Example:   
    sh-2.04#      
      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.     
      sh-2.04# 
   
   
   
    12. Enter the command /sbin/passwddefault to reset all passwords to default values.   
    Example:   
    sh-2.04#     
      sh-2.04# /sbin/passwddefault
   
   
    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 the command bootenv OSLoadOptions "quiet;quiet" to reset the OSLoadOptions to “quiet;quiet”.   
    (The double quotation marks are required.)   
    Example:   
    sh-2.04#      
      sh-2.04# bootenv OSLoadOptions "quiet;quiet"     
      sh-2.04#
   
   
   
    14. Enter the command reboot -f to reboot the switch.   
    Example:   
    sh-2.04# reboot -f     
      Restarting system.     
      .     
      The system is coming up, please wait...
   
   
   
    15. Login the switch with default password.