Reset Password HP StorageWorks B-Series SAN Switches

  1. Connect the serial console to the SAN switch (or director). (Default serial console settings: Baud rate – 9600, Data bits – 8, Parity – none, Stop bits – 1, Flow control – none).
  2. Reboot the switch.
  3. Press ESC at the message Hit ESC to stop autoboot: , the Boot PROM menu displays with the following options:
    1) Start system. 2) Recover password. 3) Enter command shell. Option? 
  4. Type 3 to Enter Command shell.
    1) Start system. 2) Recover password. 3) Enter command shell. Option? 3 Boot PROM password has not been set.
  5. Run the printenv command to check the environment variables (This step is optional).
    Sample output of printenv from a Brocade 8Gb switch:
    => printenv      AutoLoad=yes    BootromVerbose=no    InitTest=MEM()    LoadIdentifiers=Fabric Operating System;Fabric Operating System     OSLoadOptions=quiet      OSLoader=ATA()0x8c047;ATA()0x14e978    OSRootPartition=hda1;hda2    SkipWatchdog=yes    baudrate=9600    bootcmd=setenv  bootargs mem=${mem} ${OSLoadOptions};ataboot;bootm 0x400000    bootdelay=20    ethact=ppc_4xx_eth0    ethaddr=00:05:1E:5B:4D:C3    hostname=sequoia    initrd_high=0x20000000    mem=520192k    preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo   netdev=eth0    consoledev=ttyS1    ramdiskaddr=400000    ramdiskfile=your.ramdisk.u-boot    stderr=serial    stdin=serial    stdout=serial    ver=U-Boot 1.1.3 (Apr 15 2008 - 19:19:34)      Environment size: 631/4080 bytes      Sample output of “printenv�? from a Brocade 4Gb switch:    > printenv      AutoLoad=yes    ENET_MAC=00051E0343E3    InitTest=MEM()    LoadIdentifiers=Fabric Operating System;Fabric Operating System    OSLoadOptions=quiet;quiet      OSLoader=ATA()0x3c020;ATA()0x6b348    OSRootPartition=hda1;hda2    SkipWatchdog=yes
  6. Set the environment variable OSLoadOptions to single (or –s).
    => setenv OSLoadOptions single
    Note: On 4Gb switches, the setenv requires = as well: setenv OSLoadOptions=single
  7. Run printenv command to verify the new value of OSLoadOptions :
      => printenv      AutoLoad=yes    BootromVerbose=no    InitTest=MEM()    LoadIdentifiers=Fabric Operating System;Fabric Operating System    OSLoadOptions=single      OSLoader=ATA()0x8c047;ATA()0x14e978    OSRootPartition=hda1;hda2    SkipWatchdog=yes    baudrate=9600    bootcmd=setenv bootargs mem=${mem} ${OSLoadOptions};ataboot;bootm 0x400000   bootdelay=20    ethact=ppc_4xx_eth0    ethaddr=00:05:1E:5B:4D:C3    hostname=sequoia    initrd_high=0x20000000    mem=520192k    preboot=echo;echo Type "run flash_nfs" to mount root filesystem over NFS;echo   netdev=eth0    consoledev=ttyS1   ramdiskaddr=400000   ramdiskfile=your.ramdisk.u-boot   stderr=serial    stdin=serial    stdout=serial    ver=U-Boot 1.1.3 (Apr 15 2008 - 19:19:34)      Environment size: 652/4080 bytes
  8. Run the command boot ( on 4Gb switches, run the command auto )
    => boot
    Note: The rest of the steps are same for all switches with Linux based FOS (ver 4.1 and above).
  9. After the switch boot in single user mode, remount the / partition as read/write:
    sh-2.04# mount -o remount,rw,noatime /
  10. Mount the second partition to /mnt (this will get from the value of OSRootPartition variable in printenv output – usually it will be hda2 , that is, /dev/hda2)
    sh-2.04# mount /dev/hda2 /mnt
  11. Verify the mounted file systems by running the mount command:
    sh-2.04# mount    /dev/root on / type unknown (rw,noatime)      none on /proc type proc (rw)    none on /dev/pts type devpts (rw,mode=620)    none on /tmp type ramfs (rw)      /dev/hda2 on /mnt type ext3 (rw)
  12. Run the passwddefault command as follows:
    sh-2.04# /sbin/passwddefault
  13. Reboot the switch.
    sh-2.04# reboot -f
After reboot, login to the switch using username admin , password password and set the new passwords for root, factory, admin and user accounts.

5 responses to “Reset Password HP StorageWorks B-Series SAN Switches

  1. HP Deskjet 2050 Drivers September 17, 2011 at 9:59 pm

    I don’t know how to thank you. You gave away more information for free than any guru ever would! thanks and you resolved my issue!

  2. syamsuri nur July 10, 2012 at 11:05 pm

    Assalammualaikum mas, saya mohon maaf jika komen saya melenceng dari bahasannya,
    saya ingin menanyakan apakah hp storage system bisa dijadikan storage media juga?
    karena saya membutuhkan storage media sebesar 40TB lebih, dan apabila bisa,
    saya juga ingin menanyakan apakah mudah untuk pemula seperti saya mengkonfigurasinya menjadi storage media?
    sebelum dan sesudah nya terima kasih mas.

    • karfianto July 16, 2012 at 4:11 pm

      Wa’alaikum salam wr wb.
      Sejauh yang saya tau, HP storage system memang digunakan sebagai storage media dengan protokol CIFS dan NFS, namun untuk kapasitas sebesar 40TB saya belum pernah mengelolanya karena versi yang saya gunakan hanya memiliki 12 slot harddisk @3TB.
      Tetapi secara logika tentunya bisa, dengan menggunakan kapasitas per disk yang lebih besar.
      Konfigurasinya karena berbasis Windows sepertinya cukup mudah untuk dipelajari.

      Semoga bermanfaat

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: