Comments In Configuration Files Or Shell Scripts; Table 39 Configuration Files And Shell Scripts In The Zywall - ZyXEL Communications ZyWALL 1050 User Manual

Hide thumbs Also See for ZyWALL 1050:
Table of Contents

Advertisement

ZyWALL 1050 User's Guide
While configuration files and shell scripts have the same syntax, the ZyWALL applies
configuration files differently than it runs shell scripts. This is explained below.

Table 39 Configuration Files and Shell Scripts in the ZyWALL

Configuration Files (.conf)
Resets to default configuration.
Goes into CLI Configuration mode.
Runs the commands in the configuration file.
You have to run the example in
command is run in Privilege mode. If you remove the first command, you have to run the
example as a configuration file because the rest of the commands are executed in
Configuration mode.

9.1.1 Comments in Configuration Files or Shell Scripts

In a configuration file or shell script, use "#" or "!" as the first character of a command line to
have the ZyWALL treat the line as a comment.
Your configuration files or shell scripts can use "exit" or a command line consisting of a single
"!" to have the ZyWALL exit sub command mode.
Note: "exit" or "!'" must follow sub commands if it is to make the ZyWALL exit sub
command mode.
Line 3 in the following example exits sub command mode.
interface ge1
ip address dhcp
!
Lines 1 and 3 in the following example are comments and line 4 exits sub command mode.
!
interface ge1
# this interface is a DHCP client
!
168
Shell Scripts (.zysh)
Goes into CLI Privilege mode.
Runs the commands in the shell script.
Table 116 on page 167
as a shell script because the first
Chapter 9 File Manager

Advertisement

Table of Contents
loading

Table of Contents