alias

An alias serves as a shorthand version of a longer CLI command.
Syntax
alias
alias alias-name = cli-command
no alias alias-name
unalias alias-name
Command Default

No aliases are defined.

Parameters
alias-name
Alias name. Must be a single word, without spaces.
=
Operator representing "equals."
cli-command
Command string for which the alias is created.
Modes

Privileged EXEC mode

Usage Guidelines

An alias saves typing in a longer command that you commonly use. For example, you can create an alias called shoro for the CLI command show ip route. Then when you enter shoro at the command prompt, the show ip route command is issued.

Entering the alias command with no parameters displays the currently configured aliases on the device.

The no form of the command or the unalias command followed by the alias name removes an alias.

Examples

The following example creates an alias called shoro for the CLI command show ip route, enter the alias shoro = show ip route command.

device(config)# alias shoro = show ip route

The following example uses the command copy running-config with the appropriate parameters to create an alias called wrsbc.

device(config)# alias wrsbc = copy running-config tftp 10.10.10.10 test.cfg

The following example removes the wrsbc alias from the configuration.

device(config)# no alias wrsbc

The following example is an alternate method of removing the alias.

device(config)# unalias wrsbc

 
               	 

To display the aliases currently configured on the RUCKUS device, enter the following command at either the Privileged EXEC or global configuration modes of the CLI.

device# alias
          wrsbc      copy running-config tftp 10.10.10.10 test.cfg
          shoro       show ip route