15: Maintenance
EMGâ„¢ Edge Management Gateway User Guide 335
url="https://myemg.company.com/
cfgupdate.htm?login=sysadmin&password=PASS&config=all&comment=Update
myemg.company.com with default configuration"
curl --insecure --request POST --form "file=@/home/users/admin/current-
emgcfg.tgz" "$( echo $url | sed 's/ /%20/g' )"
If an HTTPS Push Config command is accepted and initiated by the EMG, the EMG will respond
with "Configuration restore initiated; EMG will reboot.", the restore will be performed, a message
will be logged to the audit log and the system log, and the EMG will reboot. Any errors in the
process will result in an error message being displayed.
Factory Reset with External Storage Device
In the event that a reset to factory defaults cannot be performed via the web UI or CLI, or via the
LCD on SLC8000 models, a factory reset can be initiated by attaching an external storage device
to the console manager with a file in the top level directory of the storage device:
1. Create a file called FACTORY_DEFAULT in the top level directory of a USB thumb drive or SD
card. The file should contain one line with the MAC address of the Eth1 Ethernet port, with or
without colons (case insensitive). Insert the storage device into the console manager.
2. Boot the console manager. After the message Starting <model>... the console manager
will attempt to mount an external storage device. The console manager will search external
storage devices in this order: upper USB port, lower USB port (if present) and SD card. The
first external storage device that is found and successfully mounted is expected to be the
source the FACTORY_DEFAULT file (any other external storage devices will be ignored).If it
successfully mounts a storage device, and finds the appropriate FACTORY_DEFAULT file in the
top level directory, it will perform a reset to factory defaults. The message Detected
factory reset file on external storage; performing factory reset. will
be displayed on the console.
3. The console manager will complete the boot process. Note that if the external storage device
with the FACTORY_DEFAULT is left connected to the console manager and the console
manager is rebooted, a reset to factory default will be performed again; it is recommended to
remove the storage device after a reset to factory defaults.