
Managing Aliases
114088 Rev. A 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 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 percentage 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.
If you enter: The system:
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.
Komentarze do niniejszej Instrukcji