Are your HPE Aruba switches misbehaving, stuck in misconfigurations, or locked due to forgotten admin passwords? Network administrators often face situations where a clean slate is the fastest way to restore stability. Performing a factory reset erases all configurations and returns the switch to its original state—crucial for troubleshooting, redeployment, or security. This guide walks you through step-by-step methods for safely resetting your Aruba switches using both CLI and GUI, covering AOS-CX, AOS-Switch, and Comware-based OfficeConnect devices.
Part 1: Why and When to Factory Reset Your Aruba Switch
Performing a factory reset is a drastic step, as it erases all configurations and data on the device. However, it's essential in these scenarios:
Troubleshooting Unresolvable Issues: Complex configurations may become corrupted or cause persistent problems. A reset restores a known good state.
Forgotten Administrative Passwords: When login credentials are lost, a factory reset often provides the only way to regain access.
Device Redeployment or Resale: Before moving a switch to a new network or selling it, a reset ensures all previous configurations and sensitive data are wiped.
Starting Fresh: Reconfiguring from scratch is often faster after a factory reset.
Part 2: Step-by-Step Factory Reset Guide for HPE Aruba Switches (CLI & GUI)
The procedure varies depending on switch series: AOS-CX, AOS-Switch, or Comware-based OfficeConnect. Note that many Aruba switches require a console connection for a full reset; the physical reset button often only reboots the device.
Press 0 at "Boot Profiles:" to enter monitor console.
Execute:
erase-all
Confirm with y. Switch reboots with factory settings.
Method C: Comware-based Switches (OfficeConnect 1950, HP Series A 5900)
Via CLI:
Connect via console or Telnet.
Execute:
initialize
or
reset saved-configuration
If necessary, delete startup configuration manually:
display startup
delete startup.cfg
Reboot and skip saving current configuration.
Password Recovery / Bypass:
Press Ctrl+B during startup or enter menu option 4.
Use boot menu options to bypass authentication, then execute initialize.
Method D: Via Web GUI (if accessible)
Optional: press and hold reset button while powering on (10–15s).
Connect a computer directly to the switch.
Open browser to default IP (e.g., 192.168.1.1).
Log in with default credentials (e.g., admin/admin).
Perform factory reset via web interface.
Reconfigure as needed.
Part 3: Precautions, Backup, and Security Tips Before Resetting
Backup Configuration: Always save current settings before resetting.
Understand Data Loss: All VLANs, routing tables, and local accounts will be erased.
Physical Access: Password recovery usually requires direct access.
SSH/SSL Keys: CLI commands or reset buttons may not clear keys—delete manually if needed.
Model Specificity: Procedures differ across AOS-CX, AOS-Switch, and Comware models.
Change Default Credentials Immediately: Protect your switch after reset.
Part 4: FAQ – How to Factory Reset Your HPE Aruba Switch
Q1: How do you factory reset an Aruba switch?
Method depends on model and login access. Use erase all zeroize (AOS-CX), erase-all (AOS-Switch), or initialize / reset saved-configuration (Comware). GUI option may exist if web access is available.
Q2: How to do a full factory reset on Switch?
Full reset wipes all user configurations. Use CLI commands as above and manually delete SSH/SSL keys if needed.
Q3: How to factory reset Aruba 2920 switch?
AOS-Switch device: connect via console, power cycle, press '0' at "Boot Profiles:", then execute erase-all.
Q4: How to reset Aruba switch through CLI?
AOS-CX: erase all zeroize or erase zeroize from boot menu. AOS-Switch: monitor ROM → erase-all. Comware: initialize or reset saved-configuration, delete startup.cfg if needed.
Conclusion and Recommended Practices
Knowing how to restore HPE Aruba switches to factory defaults is essential for troubleshooting, redeployment, and security. Always backup configurations and immediately secure your device after reset. For acquiring HPE Aruba switches, Router-Switch.com offers a wide range of models including 2920, 2530, 6100, 6300, and 6400 series, ideal for network expansions or refreshes.
Expertise Builds Trust
20+ Years • 200+ Countries • 21500+ Customers/Projects CCIE · JNCIE · NSE7 · ACDX · HPE Master ASE · Dell Server/AI Expert