Cisco Networking
Locked Out of Cisco UCS? How to Recover the Master Admin Password | Lazy Admin Blog

It’s the nightmare scenario: you need to make a critical service profile change, but the only admin password is lost or forgotten. Because Cisco UCS Manager doesn’t store passwords in a reversible format, you can’t “view” the old one. Instead, you must perform a password reset by power-cycling the Fabric Interconnects (FIs) and interrupting the boot sequence.
⚠️ Warning: This procedure requires a physical power cycle of the Fabric Interconnects. In a production environment, this will cause a temporary disruption in management connectivity and potentially data traffic if not handled correctly in a cluster.
Phase 1: The Pre-Flight Check
Before you pull the power cables, you need two pieces of information. If you still have read-only access or a lower-privilege account, gather these now:
- Identify the Roles: In a cluster, you must know which FI is Primary and which is Subordinate.
- Path: Equipment > Fabric Interconnects > [FI Name] > General > High Availability Details.
- Verify Firmware Versions: You must know the exact Kernel and System firmware versions currently running.
- Path: Equipment > Firmware Management > Installed Firmware.
Phase 2: Password Recovery (The Process)
Scenario A: Standalone Configuration
If you only have one Fabric Interconnect, the process is straightforward but requires downtime.
- Connect: Attach a console cable physically to the FI console port.
- Power Cycle: Turn the FI off and then back on.
- Interrupt Boot: As it boots, repeatedly press Ctrl+L or Ctrl+Shift+R until you see the
loader >prompt. - Boot Kernel: Load the kickstart/kernel image:
loader > boot /installables/switch/ucs-6100-k9-kickstart.x.x.x.gbin - Enter Config:
Fabric(boot)# config terminal - Reset Password:
Fabric(boot)(config)# admin-password YourNewPassword123 - Load System: Exit config mode and boot the system image:
Fabric(boot)# load /installables/switch/ucs-6100-k9-system.x.x.x.bin
Scenario B: Cluster Configuration (High Availability)
In a cluster, the order of operations is vital to ensure the database remains synchronized.
- Subordinate First: Power cycle the Subordinate FI and interrupt its boot to the
loader >prompt. Leave it there. - Primary Second: Power cycle the Primary FI and interrupt its boot to the
loader >prompt. - Reset on Primary: Follow the “Standalone” steps (4 through 7) on the Primary FI console.
- Bring up Subordinate: Once the Primary is back up and you can log into UCS Manager, go to the Subordinate console and boot its kernel and system images normally from the loader prompt.
Important Notes
- Clear Text: When you type the
admin-passwordcommand in the boot loader, the password displays in clear text on the screen. Ensure no one is shoulder-surfing! - Strong Passwords: UCS Manager requires at least one capital letter and one number.
- Console Access: This cannot be done via SSH. You must have physical or terminal server access to the console port.
#CiscoUCS #DataCenter #CiscoProphet #SysAdmin #Networking #ITTech #Cisco #UCSManager #LazyAdmin #Infrastructure