API Guide

Number of config aliases : 1
Number of local aliases : 0
View alias information brief. Displays the first 10 characters of each line of each alias.
OS10# show alias brief
Name Type Value
---- ---- -----
mTest Config line 1 "interface ..."
line 2 "no shutdow..."
line 3 "show confi..."
default 1 "ethernet"
default 2 "1/1/1"
Number of config aliases : 1
Number of local aliases : 0
View alias detail. Displays the entire alias value.
OS10# show alias detail
Name Type Value
---- ---- -----
mTest Config line 1 "interface $1 $2"
line 2 "no shutdown"
line 3 "show configuration"
default 1 "ethernet"
default 2 "1/1/1"
Number of config aliases : 1
Number of local aliases : 0
Delete an alias
OS10(config)# no alias mTest
alias
Creates a command alias.
Syntax
alias alias-name alias-value
Parameters
alias-name Enter the name of the alias. A maximum of 20 characters.
alias-value Enter the command to execute in double quotation marks, then $ followed by either numbers
ranging from 1 to 9 or an asterisk (*) with the parameters to execute in the command. Use asterisk (*) to
represent any number of parameters.
Default Not configured
Command Mode
EXEC
CONFIGURATION
Usage
Information
Use this command to create a shortcut to long commands along with arguments. Use the numbers 1 to 9 along with
$ to provide input parameters. The no version of this command deletes an alias.
Example
In this example, when you enter showint status, note that the text on the CLI changes to show interface
status. The alias changes to the command specified in the alias definition.
OS10# alias showint "show interface $*"
OS10# showint status
---------------------------------------------------------------------------------
Port Description Status Speed Duplex Mode Vlan Tagged-Vlans
---------------------------------------------------------------------------------
Eth 1/1/1 up 40G A 1 -
Eth 1/1/2 up 40G A 1 -
Advanced CLI tasks 101