Table - Cisco Router IOS XR Getting Started Manual

Cisco systems router getting started guide
Hide thumbs Also See for Router Cisco IOS XR:
Table of Contents

Advertisement

Displaying System Information with show Commands

Table 6-3

show Command Filter Options
Command
show command | begin regular-expression
show command | exclude regular-expression
show command | include regular-expression
show command | file device0:path/file
In the following example, the show interface command includes only lines in which the expression
"protocol" appears:
RP/0/RP0/CPU0:router# show interface | include protocol
Null0 is up, line protocol is up
0 drops for unrecognized upper-level protocol
POS0/2/0/0 is administratively down, line protocol is administratively down
0 drops for unrecognized upper-level protocol
POS0/2/0/1 is administratively down, line protocol is administratively down
0 drops for unrecognized upper-level protocol
POS0/2/0/2 is administratively down, line protocol is administratively down
0 drops for unrecognized upper-level protocol
POS0/2/0/3 is administratively down, line protocol is administratively down
0 drops for unrecognized upper-level protocol
MgmtEthernet0/RP0/CPU0/0 is administratively down, line protocol is administratively
down
MgmtEthernet0/RP0/CPU0/0 is administratively down, line protocol is administratively
down
0 drops for unrecognized upper-level protocol
Filtering is available for submodes, complete commands, and anywhere that
Note
output.
Adding a Filter at the --More-- Prompt
You can specify a filter at the
(/) followed by a regular expression. The filter remains active until the command output finishes or is
interrupted (using Ctrl-Z or Ctrl-C). The following rules apply to this technique:
In the following example, the user adds a filter at the
remaining output that contain the regular expression "ip."
RP/0/RP0/CPU0:router# show configuration running | begin line
Building configuration...
line console
Cisco IOS XR Getting Started Guide
6-10
Description
Begins unfiltered output of the show command with the first line that
contains the regular expression.
Displays output lines that do not contain the regular expression.
Displays output lines that contain the regular expression.
Writes the output lines that contain the regular expression to the specified
file on the specified device.
--More--
If a filter is specified at the original command or previous
be applied.
The use of the keyword begin does not constitute a filter.
The minus sign (–) preceding a regular expression displays output lines that do not contain the
regular expression.
The plus sign (+) preceding a regular expression displays output lines that contain the regular
expression.
Chapter 6
prompt of a show command output by entering a forward slash
--More--
prompt to show only the lines in the
--More--
CLI Tips, Techniques, and Shortcuts
appears in the "?"
<cr>
prompt, a second filter cannot
OL-10957-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ios xr 3.4

Table of Contents