Cisco ASR 14000 Series Management Command Reference page 171

Router system
Hide thumbs Also See for ASR 14000 Series:
Table of Contents

Advertisement

Configuration Management Commands on Cisco IOS XR Software
Table 18
Command
show command | begin
regular-expression
show command | exclude
regular-expression
show command | include
regular-expression
show command | file
filesystem:
Adding a Filter at the --More-- Prompt
You can also specify a filter at the --More-- prompt of a show command output. To filter output from
the --More-- prompt, enter a forward slash (/) followed by a regular expression. The filter remains active
until the command output finishes or is interrupted (using Ctrl-Z or Ctrl-C).
Task ID
This command requires the task ID for the feature used with the show command. For example, the
command show interfaces requires read privileges in the interface task ID.
Examples
The following example shows output from the show interface | include protocol command. In this
example, the show interface command includes only lines in which the regular 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
FastEthernet0/RP0/CPU0/0 is administratively down, line protocol is administratively
down
FastEthernet0/RP0/CPU0/0 is administratively down, line protocol is administratively
down
0 drops for unrecognized upper-level protocol
OL-17231-01
Show Command Search Options
Purpose
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 file system.
If a filter is specified at the original command or a previous --More-- prompt, a second filter cannot
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.
Cisco ASR 14000 Series Router System Management Command Reference
show
SMR-169

Advertisement

Table of Contents
loading

Table of Contents