System information

1-44 ADD ALIAS AR Series Router Reference Manual
Software Release 2.0.1
C613-03018-00 REV A
ADD ALIAS
Syntax
ADD ALIAS=name STRING=substitution
Where:
name is a character string 1 to 132 characters in length. It may contain any
printable character. If name contains spaces it must be enclosed in double
quotes. It is case-sensitive.
substitution is a character string 1 to 132 characters in length. It may contain
any printable character. If substitution contains spaces it must be enclosed
in double quotes. It is case-sensitive.
Description
This command adds a new alias for a longer character sequence. When the user
presses [Enter] to execute the command line, the command processor first
checks the command line for aliases and substitutes the replacement text. The
command line is then parsed and processed normally. Alias substitution is not
recursive—the command line is scanned only once for aliases. An alias may
represent either part of a command, or a complete command.
The ALIAS parameter specifies the name of the alias. This is the text that the
user enters on the command line.
The STRING parameter specifies the substitution string. When the command
processor parses the command line, all occurrences of the alias are replaced by
this string.
Examples
To create an alias “
df
” that expands to
delete file=1-190.rez
”, use the
command:
add alias=df string=”delete file=1-190.rez”
Thereafter, the following commands are equivalent:
df
del file=1-190.rez
See Also
ADD ALIAS
DELETE ALIAS