beautypg.com

Amer Networks E5Web GUI User Manual

Page 54

background image

The following should be noted for automatically created scripts:

Automatically created scripts omit the object category.

In the created script example above, adding an IP address is done with the command:

add IP4Address...

This is instead of the usual way of qualifying the object with its category name:

add Address IP4Address...

Both are valid forms of the command. If an object type can be uniquely identified with its
name, its object category need not be specified. With automatically generated scripts, this is
always the case. This shortened form can also be used when typing the entire command in a
CLI console although tab completion will always include the object category.

The script filename length has a limit.

The name of the file created using the -create option cannot be greater than 16 characters in
length (including the extension) and the filetype should always be .sgs.

Both Set and Add appear in scripts.

The default configuration objects will have a Set action and the objects added to the default
configuration will have an Add action.

Creating scripts for the entire configuration.

It is possible to create a script for the entire configuration with the command:

Device:/> script -create -name=entire_config.sgs

This can be useful if the entire configuration is to be recreated.

Note that any objects marked for deletion will not be included in the script

Some objects are always excluded from created script files.

Certain aspects of a configuration which are hardware dependent cannot have a script file
entry created when using the -create option. This is true when the CLI node type in the script
-create
command is one of the following:

COMPortDevice

Ethernet

EthernetDevice

Device

These node types are skipped when the script file is created and cOS Core gives the message
No objects of selected category or type.

Tip: Listing created script commands on the console

To list the created CLI commands on the console instead of saving them to a file, leave
out the option -name= in the script -create command.

Chapter 2: Management and Maintenance

54

This manual is related to the following products: