cancel
Showing results for 
Search instead for 
Did you mean: 

Password Recovery for VDX6740

Password Recovery for VDX6740

80sNRG
New Contributor II
Hi there,

I've inherited some network gear.
Dumb question I fear - may I have some help with password recovery?
2x VDX6740s in VCS Logical Chassis running OS 6.0.2b
Root account is disabled and the admin password has been lost.

I've been reading some of the manuals and Googling around and it looks somewhat more involved than I was expecting.

Failing that, what are the steps to flattening the pair? (While keeping whatever license keys are on device)
I have an old backup of the config and I'm alright(ish) with the Brocade stuff so I could rebuild them.

I'm happy to do whichever is quickest and causes the least amount of sadness.

I really appreciate any help you can provide 
1 ACCEPTED SOLUTION

80sNRG
New Contributor II
Hi there.

I know this has been a while! Took a while to finally get the downtime I needed.

I now have management access and the config was retained.

Everything worked great except for Step 12.
"Enter cfgcleanup to default the configuration on bootup"

"cfgcleanup" did not work from the root.

"/fabos/sbin/cfgcleanup" worked.

Thankfully I had a colleague with me who's considerably better with Linux than me.

Thank you very much for your help. 

View solution in original post

7 REPLIES 7

80sNRG
New Contributor II
Wow, thank you so much!
That's brilliant, I'll arrange a spot of downtime and give the above a go.

I'll let you know how I get on. ?

Truyen_Phan
Extreme Employee
*Re-posting since the format got mangled*

Hello,

You can do below to recover the password.

  • If you want to keep the config, then go thru all the steps on one switch
  • If you are ok to default the config on both switches (licenses will be retained), complete only steps 1-14 on both switches.
Disable the ISL from selected switch, recover the password, then default the configuration to allow it to rejoin and become principal to make changes to admin password

  1. Disconnect all ISL from the selected switch
  2. Power cycle the switch and get into Boot PROM (Hit ESC during AutoBoot)
  3. Type '3' at the prompt to open the command shell
  4. Entersetenv bootargs 'root=/dev/sda$prt rootfstype=ext4 quiet S'
  5. Enter saveenv
  6. Enter reset
  7. Enter mount -vo remount,rw,noatime /
  8. Enter mount /dev/sda2 /mnt
  9. Enter cp /etc/fabos/user.db /etc/fabos/user.db.bkup
  10. Enter cp /etc/fabos/user.db.default /etc/fabos/user.db
  11. Enter /sbin/passwddefault -f
  12. Enter cfgcleanup to default the configuration on bootup
  13. Enter bootenv bootargs 'root=/dev/sda$prt rootfstype=ext4 quiet'
  14. Enter "partman -r" to reboot
  15. Keep ISL disconnected until the switch fully boots up
  16. Once the switch boots up, login as admin/password
  17. With admin still logged in, physically connect the ISL to the fabric to let the switch rejoin. The switch rejoin while the admin is still logged in to the switch
  18. Once the switch rejoins, go to config t -> RB , enter 'logical-chassis principal-priority 1'to make it the new principal switch
  19. Then, run 'logical-chassis principal switchover' to make the new switch the principal switch to reconfigure the admin account.

Truyen_Phan
Extreme Employee
Hello,

You can do below to recover the password.

  • If you want to keep the config, then go thru all the steps on one switch
  • If you are ok to default the config on both switches (licenses will be retained), complete only steps 1-14 on both switches.
Disable the ISL from selected switch, recover the password, then default the configuration to allow it to rejoin and become principal to make changes to admin password

  1. Disconnect all ISL from the selected switch
  2. Power cycle the switch and get into Boot PROM (Hit ESC during AutoBoot)
  3. Type '
    3' 
    at the prompt to open the command shell
  4. Enter
    setenv bootargs 'root=/dev/sda$prt rootfstype=ext4 quiet S'
  5. Enter
    saveenv
  6. Enter
    reset
  7. Enter
    mount -vo remount,rw,noatime /
  8. Enter
    mount /dev/sda2 /mnt
  9. Enter
    cp /etc/fabos/user.db /etc/fabos/user.db.bkup
  10. Enter
    cp /etc/fabos/user.db.default /etc/fabos/user.db
  11. Enter
    /sbin/passwddefault -f
  12. Enter
    cfgcleanup 
    to default the configuration on bootup
  13. Enter
    bootenv bootargs 'root=/dev/sda$prt rootfstype=ext4 quiet'
  14. Enter
    "partman -r" to reboot
  15. Keep ISL disconnected until the switch fully boots up
  16. Once the switch boots up, login as admin/password
  17. With admin still logged in, physically connect the ISL to the fabric to let the switch rejoin. The switch rejoin while the admin is still logged in to the switch
  18. Once the switch rejoins, go to config t -> RB , enter
    'logical-chassis principal-priority 1'
    to make it the new principal switch
  19. Then, run
    'logical-chassis principal switchover'
    to make the new switch the principal switch to reconfigure the admin account.
GTM-P2G8KFN