ZyXEL Communications ZYWALL USG 2000 Support Notes page 194

Unified security gateway
Hide thumbs Also See for ZYWALL USG 2000:
Table of Contents

Advertisement

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 USG 2000 through
GUI menu File manager > Shell Script tab. Some notes as followings.
Must follow ZyWALL USG 2000 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) 2008 ZyXEL Communications Corporation.
ZyWALL USG 2000 Support Notes
194

Advertisement

Table of Contents
loading

Table of Contents