Purpose
- Define an alternative name or a shortcut for a command line interface
(CLI) command.
- Display configured aliases.
Syntax
- Display the list of defined
aliases: alias
- Display the definition for
an existing alias: alias name
- Define an alias for a specified CLI command: alias name value
Parameters
- name
- Alternative name for a command line interface (CLI) command.
- value
- Substitute
value for the specified name. If the substitute value
contains spaces, enclose the value in double quotation marks.
Example
Define a shortcut for testing connectivity
to a particular address. Then display the configured aliases.
Console> alias test-connectivity "net-test ping 9.42.106.2"
Console> alias
alias test-connectivity "net-test ping 9.42.106.2"
Console>