Reference Guide

Filter show commands
You can lter show command output to view specic information, or start the command output at the rst instance of a regular expression
or phrase.
display-xml Displays in XML format.
except Shows only text that does not match a pattern
nd Searches for the rst occurrence of a pattern and display all the subsequent congurations
grep Shows only text that matches a pattern
no-more Does not paginate output
save Saves the output to a le
Display all output
OS10# show running-configuration | no-more
Alias command
The alias command allows you to create shortcuts for commonly used or long commands, and execute long commands along with their
parameters.
The alias supports the following modes:
Persistent mode — The alias is persistent and can be used in other sessions as well. The aliases created in the Conguration mode are
persistent.
Non-persistent mode — The alias can be used only within the current session. Once the session is closed, the alias is removed from the
system. 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.
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 can 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
---------------------------------------------------------------------------------
Getting Started
39