
263
Related commands
display version-update-record
restore factory-default
Use
restore factory-default
to restore the factory-default settings and states.
Syntax
restore factory-default
Views
User view
Predefined user roles
network-admin
Usage guidelines
CAUTION:
This command is disruptive. Use this command only when you cannot troubleshoot the device by
using other methods, or you want to use the device in a different scenario.
If a device fails or you want to use it in a different scenario, you can restore the factory-default
settings and states for the device.
This command performs the following tasks:
•
Deletes all configuration files (.cfg files) in the root directories of the storage media.
•
Deletes all log files (.log files in the folder /logfile).
•
Clears all log information (in the log buffer), trap information, and debugging information.
•
Restores the parameters for the Boot ROM to the factory-default settings.
•
Deletes all license files (.ak files).
•
Deletes all files on an installed hot-swappable storage medium, such as a USB disk.
Before this operation, remove all hot-swappable storage media from the device.
Examples
# Restore the factory-default settings and states for the device.
<Sysname> restore factory-default
This command will restore the system to the factory default configuration and clear the
operation data. Continue [Y/N]:y
Restoring the factory default configuration. This process might take a few minutes. Please
wait.................................................................................
.........................Done.
Please reboot the system to place the factory default configuration into effect.
Related commands
reboot
scheduler job
Use
scheduler job
to create a job and enter job view. If the job already exists, you enter job view
directly.
Use
undo scheduler job
to delete a job.