Chapter 21 Command Line Interface Scripts
260 Avaya M770 ATM Switch User’s Guide
Structure of the CLI Script File
A CLI script consists of two parts: the Script File Header and the Command List.
The Script File Header must be located at the beginning of the file. It consists of a set
of strings of pre-defined format and contents. The purpose of the Script File Header
is to identify the file as a CLI Script file and to specify the Script File name in the
Flash File System at the file download.
The Script File Header
The Script File Header looks like the following:
TYPE @M770-ASCII-FILE
NAME <file-name>
END
The first string, TYPE, notifies the switch that the file is a CLI script. This string
has to be the very first string in the script file.
The second string, NAME, specifies name, which will appear as the script file's
name in the M770 ATM Flash File System. The <file-name> is be a set of up to
32 printable ASCII characters, which doesn't contain white spaces. The name is
case-sensitive.
The third string, END, simply closes the Script File Header.
Any number, zero or more, of comment strings that begin with '#' in the first column
of the string may be included in any place of the script file below the TYPE string.
The comment strings are ignored when the script is executed.
The Script File Command List
The Script File Command List is simply a list of usual CLI commands, where each
command is terminated by Carriage Return (<Enter>).
Comment strings (lines that start with the “#” character) may be inserted in any
place of the Command List. They are ignored when the script is running.
Empty strings are interpreted as pressing on <Enter> key on usual CLI, i.e. moving
one step towards root of the CLI tree.
Almost any command may be part of the Command List. See “CLI Scripts
Restrictions” on page 265 for the list of commands not allowed in the scripts.