Solved

Password Recovery for VDX6740

  • 28 May 2019
  • 6 replies
  • 585 views

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 🙂
icon

Best answer by 80sNRG 27 July 2019, 16:56

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 original

6 replies

Userlevel 2
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 '[code]3' [/code]at the prompt to open the command shell
  4. Enter[code]setenv bootargs 'root=/dev/sda$prt rootfstype=ext4 quiet S'[/code]
  5. Enter [code]saveenv[/code]
  6. Enter [code]reset[/code]
  7. Enter [code]mount -vo remount,rw,noatime /[/code]
  8. Enter [code]mount /dev/sda2 /mnt[/code]
  9. Enter [code]cp /etc/fabos/user.db /etc/fabos/user.db.bkup[/code]
  10. Enter [code]cp /etc/fabos/user.db.default /etc/fabos/user.db[/code]
  11. Enter [code]/sbin/passwddefault -f[/code]
  12. Enter [code]cfgcleanup [/code]to default the configuration on bootup
  13. Enter [code]bootenv bootargs 'root=/dev/sda$prt rootfstype=ext4 quiet'[/code]
  14. Enter [code]"partman -r" to reboot[/code]
  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 [code]'logical-chassis principal-priority 1'[/code]to make it the new principal switch
  19. Then, run [code]'logical-chassis principal switchover'[/code] to make the new switch the principal switch to reconfigure the admin account.
Userlevel 2
*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.
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. 🙂
Userlevel 2
Sure, let us know if you still have issues. If you are going with option#1 (complete all the steps 1-19),

Below are the cli sample output for steps 18 & 19.

code:
RB1(config)# rb 1
RB1(config-rbridge-id-1)# logical-chassis principal-priority 1
RB1(config-rbridge-id-1)# end
RB1# logical-chassis principal switchover


NOTE: principal switchover will take a few mins to trigger after the command is executed. After, 5 mins, run 'show vcs' to confirm.
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. 🙂
Userlevel 2
Thanks for the feedback and updating us with the results. I will update the syntax in our documentation.

Reply