Chapter 65 File Manager
ZyWALL Series CLI Reference Guide
543
• Generate error logs for all of the configuration file’s errors.
• Start the Zyxel Device with the last fully valid configuration file.
This lets the Zyxel Device apply your current configuration file (the startup-config.conf file) instead of the
configuration file you just uploaded. You can refer to the logs for what to fix.
See the table below for the comparison between these commands.
65.2.3 Zyxel Device Configuration File Details
You can store multiple configuration files on the Zyxel Device. You can also have the Zyxel Device use a
different configuration file without the Zyxel Device restarting.
• When you first receive the Zyxel Device, it uses the system-default.conf configuration file of default
settings.
• When you change the configuration, the Zyxel Device creates a startup-config.conf file of the current
configuration.
• The Zyxel Device checks the startup-config.conf file for errors when it restarts. If there is an error in the
startup-config.conf file, the Zyxel Device copies the startup-config.conf configuration file to the
startup-config-bad.conf configuration file and tries the existing lastgood.conf configuration file.
• When the Zyxel Device reboots, if the startup-config.conf file passes the error check, the Zyxel Device
keeps a copy of the startup-config.conf file as the lastgood.conf configuration file for you as a back
up file. If you upload and apply a configuration file with an error, you can apply lastgood.conf to
return to a valid configuration.
65.2.4 Configuration File Flow at Restart
If there is not a startup-config.conf when you restart the Zyxel Device (whether through a management
interface or by physically turning the power off and back on), the Zyxel Device uses the system-
default.conf configuration file with the Zyxel Device’s default settings.
If there is a startup-config.conf, the Zyxel Device checks it for errors and applies it. If there are no errors,
the Zyxel Device uses it and copies it to the lastgood.conf configuration file. If there is an error, the Zyxel
Device generates a log and copies the startup-config.conf configuration file to the startup-config-
bad.conf configuration file and tries the existing lastgood.conf configuration file. If there isn’t a
lastgood.conf configuration file or it also has an error, the Zyxel Device applies the system-default.conf
configuration file.
Table 315 Commands Comparison Table
COMMAND EFFECTIVE RESULT
setenv stop-on-error off every time you upload
configuration files
(until you apply the command
setenv stop-on-error on)
• ignore errors
• apply the valid parts of the
configuration file
• generate error logs
apply/conf/file_name.conf ignore-error only for the specific file • ignore errors
• apply the valid parts of the
configuration file
• generate error logs
apply/conf/file_name.conf ignore-error
rollback
only for the specific file • ignore errors
•apply the startup-
config.conf file
• generate error logs