C05. How To Write A Shell Script; C06. Why Can't I Run Shell Script Successfully - ZyXEL Communications ZYWALL 1050 Support Notes

Internet security appliance
Hide thumbs Also See for ZYWALL 1050:
Table of Contents

Advertisement

frees up the memory.
C04. What is the Shell Scripts for in GUI menu File manager > Shell Scripts?
Shell scripts are files of commands that you can store on the ZyWALL and run when you need
them. When you run a shell script, the ZyWALL only applies the commands that it contains.
Other settings do not change.

C05. How to write a shell script?

You can edit shell scripts in a text editor and upload them to the ZyWALL 1050/ZyWALL
USG 300 through GUI menu File manager > Shell Script tab. Some notes as followings.
Must follow ZyWALL 1050/ZyWALL USG 300 CLI syntax
Must add "configure terminal" at the beginning of the script file.
Must save as a ".zysh " file extension.
An example is shown below.
# enter configuration mode
configure terminal
# change administrator password
username admin password 4321 user-type admin
# add a user 'anne' and set both the lease and re-auth time to 1440 sec.
username anne user-type ext-user
username anne description External User
username anne logon-lease-time 1440
username anne logon-re-auth-time 1440
exit
write

C06. Why can't I run shell script successfully?

Please ensure that you follow the correct CLI command syntax to write this script. And make
sure that you add the "configure terminal" in the top line of this script file.
All contents copyright (c) 2007 ZyXEL Communications Corporation.
ZyWALL 1050/ZyWALL USG 300 Support Notes
312

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zywall usg 300

Table of Contents