Restoring the switch to factory default settings

Prerequisites

You are connected to the switch through its Console port.

Procedure

NOTE:

This procedure erases all user information and configuration settings Consider backing up your running configuration first.

  1. Optionally, back up the running configuration with either copy running-config <REMOTE-URL> or copy running-config <STORAGE-URL>. The json storage format is required for later configuration restoration.
  2. Switch to the configuration context with the command config.
  3. Erase all user information and configuration, restoring the switch to its factory default state with the command erase all zeroize. Enter Y when prompted to continue. The switch automatically restarts.
  4. Optionally restore your saved configuration (it must be in json format) with either copy <REMOTE-URL> running-config or copy <STORAGE-URL> running-config followed by copy running-config startup-config.

Example

Backing up the running configuration to a file on a remote server (using TFTP), resetting the switch to its factory default state, and then restoring the saved configuration.

switch# copy running-config tftp://192.168.1.10/backup_cfg json vrf mgmt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10340    0     0  100 10340      0  1329k --:--:-- --:--:-- --:--:-- 1329k
100 10340    0     0  100 10340      0  1313k --:--:-- --:--:-- --:--:-- 1313k
switch#
switch#
switch# erase all zeroize
This will securely erase all customer data and reset the switch
to factory defaults. This will initiate a reboot and render the
switch unavailable until the zeroization is complete.
This should take several minutes to one hour to complete.
Continue (y/n)? y

The system is going down for zeroization.
[  OK  ] Stopped PSPO Module Daemon.
[  OK  ] Stopped ArubaOS-CX Switch Daemon for BCM.
...
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target Shutdown.
reboot: Restarting system
Press Esc for boot options
ServiceOS Information:
    Version:          GT.01.03.0006
    Build Date:       2018-10-30 14:20:44 PDT
    Build ID:         ServiceOS:GT.01.03.0006:8ee0faaa52da:201810301420
    SHA:              xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
... 

################ Preparing for zeroization #################

################ Storage zeroization #######################
################ WARNING: DO NOT POWER OFF UNTIL  ##########
################          ZEROIZATION IS COMPLETE ##########
################ This should take several minutes ##########
################ to one hour to complete          ##########

################ Restoring files ###########################

Boot Profiles:

0. Service OS Console
1. Primary Software Image [XL.10.02.0010]
2. Secondary Software Image [XL.10.02.0010]

Select profile(primary):

Booting primary software image...
Verifying Image...

Image Info:
        Name: ArubaOS-CX
     Version: XL.10.02.0010
    Build Id: ArubaOS-CX:XL.10.02.0010:feaf5b9b7f09:201901292014
  Build Date: 2019-01-29 12:43:50 PST

Extracting Image...
Loading Image...
Done.
kexec_core: Starting new kernel
System is initializing
fips_post_check[5473]: FIPS_POST: Cryptographic selftest started...SUCCESS
[  OK  ] Started Login banner readiness check.
...
8400X login: admin
Password: 

switch#
switch#
switch# copy tftp://192.168.1.10/backup_cfg running-config json vrf mgmt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10340  100 10340    0     0  2858k      0 --:--:-- --:--:-- --:--:-- 2858k
100 10340  100 10340    0     0  2804k      0 --:--:-- --:--:-- --:--:-- 2804k
Large configuration changes will take time to process, please be patient.
switch#
switch#
switch# copy running-config startup-config
Large configuration changes will take time to process, please be patient.
switch#