HPE (HP / Aruba)
Step-by-step password recovery for the HPE (HP / Aruba) HPE 6125 (Comware 5120-5940). Console access required.
This guide provides step-by-step instructions for resetting lost or forgotten administrative passwords on enterprise networking hardware. Follow the procedure below carefully to regain access while preserving your device configuration.
Before proceeding with password recovery, ensure you have a console cable, terminal emulation software configured to 9600 baud, and physical access to the device.
Connect your terminal cable to the console port of the device and open your serial terminal session.
Power cycle the hardware and issue a Break key sequence during initial system startup to enter ROMMON mode.
Bypass startup configuration loading, boot into system software, set your new credentials, and save changes back to non-volatile memory.
This procedure recovers administrator access to the HPE 6125 running HPE Comware (the HPE/HP 51xx, 55xx, 59xx, 61xx, 75xx switch line) when the login password is lost. Comware's Boot ROM menu provides a "skip configuration" option that boots the switch without applying the saved configuration — passwords are cleared while the config files remain.
Console cable with a terminal session at 9600 baud, 8N1. Physical or remote power access to reboot the switch.
reboot if you have access).<H3C> or <HPE> prompt).system-view.local-user <username> class manage → password simple <new-password> → quit. (The default admin user is often admin or h3c — check display local-user.)user-interface vty 0 4 → set authentication password simple <new-password> → quit.save force.reboot. The switch now boots with the saved config and the new password.save force) after changing passwords or the next normal boot reverts to the old config with the old passwords.admin with no password (or the password set at initial setup).Before recovery, back up the config: backup startup-configuration to tftp://<server>/<filename> or display current-configuration captured to a file. After recovery, verify display current-configuration and save with save force.