beautypg.com

Amer Networks E5Web GUI User Manual

Page 53

background image

Removing Scripts

To remove a saved script, the script -remove command can be used. For example, to remove the
my_script.sgs script file, the command would be:

Device:/> script -remove -name=my_script.sgs

Listing Scripts

The script on its own, command without any parameters, lists all the scripts currently available
and indicates the size of each script as well as the type of memory where it resides (residence in
non-volatile memory is indicated by the word "Disk" in the Memory column).

Device:/> script

Name

Storage

Size (bytes)

--------------

------------

--------------

my_script.sgs

RAM

8

my_script2.sgs

Disk

10

To list the content of a specific uploaded script file, for example my_script.sgs the command
would be:

Device:/> script -show -name=my_script.sgs

Creating Scripts Automatically

When the same configuration objects needs to be copied between multiple Clavister Security
Gateways, then one way to do this with the CLI is to create a script file that creates the required
objects and then upload to and run the same script on each device.

If we already have a cOS Core installation that already has the objects configured that need to be
copied, then running the script -create command on that installation provides a way to
automatically create the required script file. This script file can then be downloaded to the local
management workstation and then uploaded to and executed on other Clavister Security
Gateways to duplicate the objects.

For example, suppose the requirement is to create the same set of IP4Address objects on
several Clavister Security Gateways that already exist on a single unit. The administrator would
connect to the single unit with the CLI and issue the command:

Device:/> script -create Address IP4Address -name new_script.sgs

This creates a script file called new_script_sgs which contains all the CLI commands necessary to
create all IP4Address address objects in that unit's configuration. The created file's contents
might, for example, be:

add IP4Address If1_ip Address=10.6.60.10
add IP4Address If1_net Address=10.6.60.0/24
add IP4Address If1_br Address=10.6.60.255
add IP4Address If1_dns1 Address=141.1.1.1

"
"
"

The file new_script_sgs can then be downloaded with SCP to the local management workstation
and then uploaded and executed on the other Clavister Security Gateways. The end result is that
all units will have the same IP4Address objects in their address book.

Chapter 2: Management and Maintenance

53

This manual is related to the following products: