Configuration Management Commands on Cisco IOS XR Software
more
SMR-140
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
Adding a Filter at the --More-- Prompt
You can also specify a filter at the
--More-- prompt of a
more
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
).
•
A second filter cannot be specified at a --More-- prompt if a filter has already been specified at the
original command or at a previous --More-- prompt.
•
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.
Note
After you specify a filter for a
more
command, you cannot specify another filter at the next --More--
prompt. The first specified filter remains until the
more
command output finishes or until you interrupt
the output. The use of the
begin
keyword does not constitute a filter.
Task ID
Examples
The following is partial sample output from the
more
command. The output displays a configuration file
saved on the hard disk drive.
RP/0/RP0/CPU0:router#
more harddisk:/user/alternate.cfg
!! Last configuration change at 15:52:55 UTC Fri Feb 13 2004 by UNKNOWN
!
line console
exec-timeout 0 0
!
interface MgmtEth0/RP1/CPU0/0
ipv4 address 10.32.45.154 255.0.0.0
!
interface POS0/1/0/0
ipv4 address 10.32.45.155 255.0.0.0
keepalive disable
!
interface POS0/1/0/1
ipv4 address 10.32.45.156 255.0.0.0
keepalive disable
Table 17
Filtering Options
Command
Purpose
more
filesystem
:
| begin
regular-expression
Begins unfiltered output of the
more
command with the first line that
contains the regular expression
.
more
filesystem
:
| exclude
regular-expression
Displays output lines that do not contain the regular expression.
more
filesystem
:
| include
regular-expression
Displays output lines that contain the regular expression.
Task ID
Operations
filesystem
execute