Connectivity Guide

Non-persistent mode — The alias is used only within the current session. After you close the session, the alias is removed from the
switch. The aliases created in Exec mode are non-persistent.
NOTE: You cannot use existing keywords, parameters, and short form of keywords as alias names, nor can you create a shortcut
for the alias command. The alias name is case-sensitive and can have a maximum of 20 characters.
Create an alias in EXEC or CONFIGURATION mode — EXEC mode for non-persistent and CONFIGURATION mode for persistent
aliases. The alias value is the actual command where you use
$n to enter the input parameters. You can substitute $n with either
numbers ranging from 1 to 9 or with an asterisk (*) and enter the parameters while executing the commands using the alias. Use
asterisk (*) to represent any number of parameters. The maximum number of input parameters is 9.
alias alias-name alias-value
Execute the commands using the alias in the respective modes.
View the current aliases.
show alias [brief | detail]
Use the no form of the command to delete an alias.
no alias alias-name
Create alias
OS10# alias showint "show interface $*"
OS10(config)# alias goint "interface ethernet $1"
View alias output for showint
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 -
Eth 1/1/3 up 40G A 1 -
Eth 1/1/4 up 40G A 1 -
Eth 1/1/5 up 40G A 1 -
Eth 1/1/6 up 40G A 1 -
Eth 1/1/7 up 40G A 1 -
Eth 1/1/8 up 40G A 1 -
Eth 1/1/9 up 40G A 1 -
Eth 1/1/10 up 40G A 1 -
Eth 1/1/11 up 40G A 1 -
Eth 1/1/12 up 40G A 1 -
Eth 1/1/13 up 40G A 1 -
Eth 1/1/14 up 40G A 1 -
Eth 1/1/15 up 40G A 1 -
Eth 1/1/16 up 40G A 1 -
Eth 1/1/17 up 40G A 1 -
Eth 1/1/18 up 40G A 1 -
Eth 1/1/19 up 40G A 1 -
Eth 1/1/20 up 40G A 1 -
Eth 1/1/21 up 40G A 1 -
Eth 1/1/22 up 40G A 1 -
Eth 1/1/23 up 40G A 1 -
Eth 1/1/24 up 40G A 1 -
Eth 1/1/25 up 40G A 1 -
Eth 1/1/26 up 40G A 1 -
Eth 1/1/27 up 40G A 1 -
Eth 1/1/28 up 40G A 1 -
Eth 1/1/29 up 40G A 1 -
Eth 1/1/30 up 40G A 1 -
Eth 1/1/31 up 40G A 1 -
Eth 1/1/32 up 40G A 1 -
--------------------------------------------------------------------------------
View alias output for goint
OS10(config)# goint 1/1/1
OS10(conf-if-eth1/1/1)#
Getting Started
57