show Commands
You have access to a variety of show commands that display router and protocol
information. You can filter the output of a show command by specifying | (the UNIX
pipe symbol), one of the following keywords, and either a case-sensitive text string
or a regular expression.
■ begin—Displays output beginning with the first line that contains the text string
or regular expression
■ include—Displays output lines that contain the text string or regular expression
and excludes lines that do not contain the text string or regular expression
■ exclude—Displays output lines that do not contain the text string or regular
expression and excludes lines that do contain the text string or regular expression
For a list of regular expressions, see “Regular Expressions” on page 41. You can
press Ctrl+c to interrupt the show command output.
NOTE: The system does not recognize beginning spaces of the text string. For
example, if you enter include IP as the text string on which to filter, the system
ignores the space and displays lines that include words such as RIP.
Example 1 In the following example, the output display starts with the first line that contains
the string inter. The system omits all the preceding lines of the output from the
display because none of them contains the string inter.
host1#show config include-defaults | begin inter
Please wait...log verbosity low internalNetwork
log verbosity low ipEngine
log verbosity low ipProfileMgr
log verbosity low ipProfileMgrEngineering
no log engineering
log fields timestamp instance no-calling-task
!
timing select primary
timing source primary internal
timing source secondary internal
timing source tertiary internal
!
no disable-autosync
no disable-switch-on-error
no redundancy lockout 0
!
virtual-router default
ip domain-lookup
ip name-server 10.2.0.3
ip domain-name 789df
!
host f 10.10.133.11 ftp anonymous null
interface null 0
interface ip 0/0
arp timeout 21600
!
interface ip 2/0
Overview ■ 37
Chapter 2: Command-Line Interface