Chapter 45 File Manager

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 215 Configuration Files and Shell Scripts in the ZyWALL

Configuration Files (.conf)

Shell Scripts (.zysh)

• Resets to default configuration.

Goes into CLI Privilege mode.

Goes into CLI Configuration mode.

Runs the commands in the shell script.

Runs the commands in the configuration file.

 

 

 

 

 

 

You have to run the example in Figure 457 on page 615 as a shell script because the first 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.

45.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.

"“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

!

616

 

ZyWALL USG 1000 User’s Guide