Technical data
Managing Aliases
303561-A Rev 00
9-3
Examples:
Inserting Parameters in an Alias
You can insert one or more parameters in an
<alias_value>
when creating an alias.
You can insert a parameter in an
<alias_value>
in one of two ways:
• Parameter concatenation: You can insert a dollar sign ($) in the last character
position of the
<alias_value>
. Then, when a user enters the alias name and
follows it with the value of the parameter, the system executes the alias with
the value the user entered.
• Parameter reference: You can embed one or more parameters anywhere inside
the <
alias_value>
. For each parameter you embed when creating the alias,
you insert a percent sign (%) and a parameter number. The parameter
%1
in
an
<alias_value>
takes the value of the first parameter the user enters at the
command line after the alias name; the parameter
%2
in an
<alias_value>
takes the value of the second parameter the user enters, and so on.
alias
Displays all aliases residing in RAM
alias ebridge “set wfBrTp.2.0 1;
set wfBrStp.2.0 1;commit”
Creates an alias named
ebridge
that
invokes the listed commands
ebridge
• Enables the translating bridge and
the spanning tree bridge
• Notifies all relevant software
modules of set changes to the MIB
alias gbridge “get wfBrTp.2.0;
get wfBrStp.2.0”
Creates an alias named
gbridge
that
gets
the translating bridge and
spanning tree bridge Enable values
alias sbridge “ebridge;gbridge”
Creates an alias named
sbridge
that
invokes the aliases
ebridge
and
gbridge
Note:
You cannot combine the two methods of inserting parameters within an
alias.