Procedure
PurposeCommand or Action
Enables privileged EXEC mode.enable
Step 1
Example:
Enter your password, if prompted.
Device> enable
Resets the device to its configuration at the time
of its shipping.
Step 2
• For a standalone device:
factory-reset {all [secure 3-pass] |
config | boot-vars}
No system configuration is required to use the
factory reset command.
• For Cisco StackWise Virtual enabled
devices:
The following options are available:
factory-reset {all [secure 3-pass] |
config | boot-vars|switch
• all: Erases all the content from the
NVRAM, all the Cisco IOS images,
{switch-number |all{all [secure
3-pass] | config | boot-vars}}
including the current boot image, boot
variables, startup and running
configuration data, and user data. We
recommend that you use this option.
Example:
Device# factory-reset all
• secure 3-pass: Erases all the content from
the device with 3-pass overwrite.
OR
Device# factory-reset switch 1 all config
• Pass 1: Overwrites all addressable
locations with binary zeroes.
• Pass 2: Overwrites all addressable
locations with binary ones.
• Pass 3: Overwrites all addressable
locations with a random bit pattern.
This option takes approximately
thrice the time taken to perform
any other option.
Note
• config: Resets the startup configurations.
• boot-vars: Resets the user-added boot
variables.
• switch {switch-number |all}:
• switch-number: Specifies the switch
number. The range is from 1 to 16.
• all: Selects all the switches in the
stack.
After the factory reset process is successfully
completed, the device reboots and enters
ROMmon mode.
System Management Configuration Guide, Cisco IOS XE Bengaluru 17.4.x (Catalyst 9400 Switches)
341
Performing Factory Reset
How to Perform a Factory Reset