Zyxel NWA3550-N [105/152] Errors in configuration files or shell scripts

Zyxel NWA3560-N [105/152] Errors in configuration files or shell scripts
Chapter 17 File Manager
NWA3000-N Series CLI Reference Guide
105
17.2.2 Errors in Configuration Files or Shell Scripts
When you apply a configuration file or run a shell script, the NWA3000-N Series AP
processes the file line-by-line. The NWA3000-N Series AP checks the first line and applies the
line if no errors are detected. Then it continues with the next line. If the NWA3000-N Series
AP finds an error, it stops applying the configuration file or shell script and generates a log.
You can change the way a configuration file or shell script is applied. Include
setenv stop-
on-error off
in the configuration file or shell script. The NWA3000-N Series AP ignores
any errors in the configuration file or shell script and applies all of the valid commands. The
NWA3000-N Series AP still generates a log for any errors.
17.2.3 NWA3000-N Series AP Configuration File Details
You can store multiple configuration files on the NWA3000-N Series AP. You can also have
the NWA3000-N Series AP use a different configuration file without the NWA3000-N Series
AP restarting.
When you first receive the NWA3000-N Series AP, it uses the system-default.conf
configuration file of default settings.
When you change the configuration, the NWA3000-N Series AP creates a startup-
config.conf file of the current configuration.
The NWA3000-N Series AP checks the startup-config.conf file for errors when it
restarts. If there is an error in the startup-config.conf file, the NWA3000-N Series AP
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 NWA3000-N Series AP reboots, if the startup-config.conf file passes the error
check, the NWA3000-N Series AP 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.
17.2.4 Configuration File Flow at Restart
If there is not a startup-config.conf when you restart the NWA3000-N Series AP (whether
through a management interface or by physically turning the power off and back on), the
NWA3000-N Series AP uses the system-default.conf configuration file with the NWA3000-N
Series AP’s default settings.
If there is a startup-config.conf, the NWA3000-N Series AP checks it for errors and applies it.
If there are no errors, the NWA3000-N Series AP uses it and copies it to the lastgood.conf
configuration file. If there is an error, the NWA3000-N Series AP 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 NWA3000-N Series AP applies the system-
default.conf configuration file.
You can change the way the startup-config.conf file is applied. Include the
setenv-
startup stop-on-error off
command. The NWA3000-N Series AP ignores any errors
in the startup-config.conf file and applies all of the valid commands. The NWA3000-N Series
AP still generates a log for any errors.

Содержание

Скачать