2-15
Cisco SCE 2000 and SCE 1000 Software Configuration Guide
OL-7827-12
Chapter 2 Command Line Interface
Managing Command Output
Scrolling the Screen Display
The output of some
show
and
dir
commands is quite lengthy and cannot all be displayed on the screen
at one time. Commands with many lines of output are displayed in chunks of 24 lines. You can choose
to scroll the display line by line or refresh the entire screen. At the prompt after any line, you can type
one of the following keys for the desired action:
•
<Enter>
- Show one more line
•
<Space>
- Show 24 more lines (a new chunk)
•
<g>
- Stop prompting for more
•
<?>
- Display a help string showing possible options
•
Any other key- Quit showing the file
Filtering Command Output
You can filter the output of certain commands, such as
show,
more,
and
dir,
so that output lines are
displayed only if they include or exclude a specified expression. The filtering options are as follows:
•
include — Shows all lines that include the specified text.
•
exclude — Does not show any lines that include the specified text.
•
begin — Finds the first line that includes the specified text, and shows all lines starting from that
line. All previous lines are excluded.
The syntax of filtered commands is as follows:
•
<command>| include <expression>
•
<command>| exclude <expression>
•
<command>| begin <expression>
Following is an example of how to filter the
show version
command to display only the last part of the
output, beginning with the version information.
sce#
show version | begin revision
Redirecting Command Output to a File
You can redirect the output of commands, such as
show,
more,
and
dir,
to a file. When writing the output
of these commands to a file, you can specify either of the following options:
•
redirect — The new output of the command will overwrite the existing contents of the file.
•
append — The new output of the command will be appended to the existing contents of the file.
The syntax of redirection commands is as follows:
•
<command>| redirect <file-name>
•
<command>| append <file-name>