Chapter 39 File Manager

39.4 File Manager Commands Summary

The following table lists the commands that you can use for file management.

Table 185 File Manager Commands Summary

COMMAND

DESCRIPTION

apply /conf/file_name.conf [ignore-

Has the ZyWALL use a specific configuration file. You must still use the

error] [rollback]

write command to save your configuration changes to the flash (“non-

 

volatile” or “long term”) memory.

 

Use this command without specify both ignore-errorand rollback: this

 

is not recommended because it would leave the rest of the configuration

 

blank. If the interfaces were not configured before the first error, the

 

console port may be the only way to access the device.

 

Use ignore-errorwithout rollback: this applies the valid parts of the

 

configuration file and generates error logs for all of the configuration file’s

 

errors. This lets the ZyWALL apply most of your configuration and you can

 

refer to the logs for what to fix.

 

Use both ignore-errorand rollback: this applies the valid parts of the

 

configuration file, generates error logs for all of the configuration file’s

 

errors, and starts the ZyWALL with a fully valid configuration file.

 

Use rollback without ignore-error: this gets the ZyWALL started with

 

a fully valid configuration file as quickly as possible.

 

You can use the apply /conf/system-default.conf command to reset

 

the ZyWALL to go back to its system defaults.

 

 

copy {/cert /conf /idp /

Saves a duplicate of a file on the ZyWALL from the source file name to the

packet_trace /script /tmp}file_name-

target file name.

a.conf {/cert /conf /idp /

Specify the directory and file name of the file that you want to copy and

packet_trace /script /tmp}/

the directory and file name to use for the duplicate. Always copy the file

file_name-b.conf

into the same directory.

 

 

 

copy running-config startup-config

Saves your configuration changes to the flash (“non-volatile” or “long

 

term”) memory. The ZyWALL immediately uses configuration changes

 

made via commands, but if you do not use this command or the write

 

command, the changes will be lost when the ZyWALL restarts.

 

 

copy running-config /conf/file_name.conf

Saves a duplicate of the configuration file that the ZyWALL is currently

 

using. You specify the file name to which to copy.

 

 

delete {/cert /conf /idp /

Removes a file. Specify the directory and file name of the file that you

packet_trace /script /tmp}/file_name

want to delete.

dir {/cert /conf /idp /

Displays the list of files saved in the specified directory.

packet_trace /script /tmp}

 

rename {/cert /conf /idp /

Changes the name of a file.

packet_trace /script /tmp}/old-

Specify the directory and file name of the file that you want to rename.

file_name {/cert /conf /idp /

Then specify the directory again followed by the new file name.

packet_trace /script /tmp}/new-

 

file_name

 

 

 

rename /script/old-file_name /script/

Changes the name of a shell script.

new-file_name

 

 

 

run /script/file_name.zysh

Has the ZyWALL execute a specific shell script file. You must still use the

 

write command to save your configuration changes to the flash (“non-

 

volatile” or “long term”) memory.

schedule-run 1 file_name.zysh {daily

Has the ZyWALL execute the specified specific shell script file at the the

monthly weekly} time {date sun mon

specified time. You must still use the write command to save your

tue wed thu fri sat}

configuration changes to the flash (“non-volatile” or “long term”)

 

memory.

 

 

 

303

ZyWALL (ZLD) CLI Reference Guide