EasyManua.ls Logo

ZyXEL Communications UAG Series - Errors in Configuration Files or Shell Scripts; UAG Configuration File Details

ZyXEL Communications UAG Series
361 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 58 File Manager
UAG CLI Reference Guide
293
Line 3 in the following example exits sub command mode.
Lines 1 and 3 in the following example are comments and line 4 exits sub command mode.
Lines 1 and 2 are comments. Line 5 exits sub command mode.
58.2.2 Errors in Configuration Files or Shell Scripts
When you apply a configuration file or run a shell script, the UAG processes the file line-by-line. The
UAG checks the first line and applies the line if no errors are detected. Then it continues with the
next line. If the UAG 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 UAG ignores any errors in the configuration
file or shell script and applies all of the valid commands. The UAG still generates a log for any
errors.
58.2.3 UAG Configuration File Details
You can store multiple configuration files on the UAG. You can also have the UAG use a different
configuration file without the UAG restarting.
When you first receive the UAG, it uses the system-default.conf configuration file of default
settings.
When you change the configuration, the UAG creates a startup-config.conf file of the current
configuration.
The UAG checks the startup-config.conf file for errors when it restarts. If there is an error in
the startup-config.conf file, the UAG copies the startup-config.conf configuration file to the
startup-config-bad.conf configuration file and tries the existing lastgood.conf configuration
file.
interface wan1
ip address dhcp
!
!
interface wan1
# this interface is a DHCP client
!
! this is from Joe
# on 2006/06/05
interface wan1
ip address dhcp
!

Table of Contents

Other manuals for ZyXEL Communications UAG Series

Related product manuals