alias
alias <ALIAS-NAME> <COMMAND-STRING>
no alias <ALIAS-NAME><COMMAND-STRING>
Description
Defines an alias for one or more CLI commands. The alias and its definition are valid only for the user that creates the alias.
The alias name cannot be an existing token name.
The no form of this command removes the specified alias.
|
Parameter |
Description |
|---|---|
|
<ALIAS-NAME> |
Specifies the name of the alias you are defining. |
|
<COMMAND-STRING> |
Specifies one or more commands and their parameters. Separate commands with a semicolon (;). Length: 1 to 400 characters. For commands that require user-supplied parameters, use $1 through $n, in order, as placeholders. These parameters are replaced by the corresponding arguments from the command line, and must match the number of parameters required by the original command. For alias definitions that include multiple commands, continue numbering parameters through all commands. Do not restart numbering for each command. |
Examples
Defining an alias:
Using alias in config context:
Using alias in enable context:
Using alias in operator context:
Removing an alias:
Command History
|
Release |
Modification |
|---|---|
|
10.07 or earlier |
-- |
Command Information
|
Platforms |
Command context |
Authority |
|---|---|---|
|
All platforms |
config |
Administrators or local user group members with execution rights for this command. |