FAQ banner
Get the Help and Supports!

This help center can answer your questions about customer services, products tech support, network issues.
Select a topic to get started.

ICT Tech Savings Week
2025 MEGA SALE | In-Stock & Budget-Friendly for Every Project

HPE Aruba Switch Factory Reset Guide: Step-by-Step CLI & GUI Instructions


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.

HPE Aruba Switch Factory Reset Guide

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.

HPE Aruba Switch 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.

Method A: AOS-CX Switches (6100, 6200, 6300, 6400 Series)

Via CLI (with login credentials):

  1. Connect to the console port via serial cable.
  2. Log in with administrator credentials.
  3. Execute:
erase all zeroize

This erases management files (except software images) and restores factory defaults.

Via Service OS (password recovery):

  1. Reboot the switch and monitor the console output.
  2. Enter Service OS (Option 0 or 1).
  3. Execute:
erase zeroize

Switch resets to factory defaults.

Method B: AOS-Switch Devices (2530, 2540, 2920, 2930F/M, 3010M, 5400R)

  1. Connect via USB or USB-serial cable.
  2. Open serial console (9600 baud, 8n1).
  3. Power cycle the switch.
  4. Press 0 at "Boot Profiles:" to enter monitor console.
  5. Execute:
erase-all
  1. Confirm with y. Switch reboots with factory settings.

Method C: Comware-based Switches (OfficeConnect 1950, HP Series A 5900)

Via CLI:

  1. Connect via console or Telnet.
  2. Execute:
initialize

or

reset saved-configuration
  1. If necessary, delete startup configuration manually:
display startup
delete startup.cfg
  1. 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)

  1. Optional: press and hold reset button while powering on (10–15s).
  2. Connect a computer directly to the switch.
  3. Open browser to default IP (e.g., 192.168.1.1).
  4. Log in with default credentials (e.g., admin/admin).
  5. Perform factory reset via web interface.
  6. Reconfigure as needed.

HPE Aruba Switch

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.

Expert

Expertise Builds Trust

20+ Years • 200+ Countries • 21500+ Customers/Projects
CCIE · JNCIE · NSE7 · ACDX · HPE Master ASE · Dell Server/AI Expert


Categories: Product FAQs Switches Aruba HPE