Cisco Cisco Expressway Maintenance Manual

Page of 343
Restoring default configuration (factory reset)
Very rarely, it may become necessary to run the “factory-reset” script on your system. This reinstalls the 
software image and resets the configuration to the functional minimum.
Prerequisite files
The factory-reset procedure described below rebuilds the system based on the most recent 
successfully-installed software image. The files that are used for this reinstallation are stored in the 
/mnt/harddisk/factory-reset/ folder on the system. These files are:
 
A text file containing just the 16-character Release Key, named rk
 
A file containing the software image in tar.gz format, named tandberg-image.tar.gz
In some cases (most commonly a fresh VM installation that has not been upgraded), these files will not be 
present on the system. If so, these files must first be put in place using SCP as root.
Performing a reset to default configuration
The following procedure must be performed from the serial console (or via a direct connection to the 
appliance with a keyboard and monitor). This is because the network settings will be rewritten, so any SSH 
session used to initiate the reset would be dropped and the output of the procedure would not be seen.
The process takes approximately 20 minutes.
 1.  Log in  to the system as root.
 2.  Type factory-reset
 3.  Answer the questions as required:
The recommended responses will reset the system completely to a factory default state.
Prompt
Recommended response
Keep option keys [YES/NO]?
YES
Keep IP configuration [YES/NO]?
YES
Keep ssh keys [YES/NO]?
YES
Keep ssl certificates and keys [YES/NO]?
YES
Keep root and admin passwords [YES/NO]?
YES
Save log files [YES/NO]?
YES
 4.  Finally, confirm that you want to proceed.
Resetting via USB stick
Cisco TAC may also suggest an alternative reset method. This involves downloading the software image 
onto a USB stick and then rebooting the system with the USB stick plugged in.
If you use this method you must clear down and rebuild the USB stick after use. Do not reset one system and 
then take the USB stick and re-use it on another system.
Cisco Expressway Administrator Guide (X8.1.1)
Page 252 of 343
Reference material
Restoring default configuration (factory reset)