11
Controlling the CLI output
This section describes the CLI output control features that help you identify the desired output.
Pausing between screens of output
By default, the system automatically pauses after displaying a maximum of 24 lines if the output is
too long to fit on one screen. You can change the limit by using the
screen-length
screen-length
command. For more information about this
command, see
Fundamentals Command Reference
.
At a pause, the system displays
----more----
. You can use the keys described in "
" to display more information or stop the display.
You can also disable pausing between screens of output for the current session. Then, all output is
displayed at one time and the screen is refreshed continuously until the final screen is displayed.
Output controlling keys
Keys
Function
Space
Displays the next screen.
Enter
Displays the next line.
Ctrl+C
Stops the display and cancels the command execution.
<PageUp>
Displays the previous page.
<PageDown>
Displays the next page.
Disabling pausing between screens of output
To disable pausing between screens of output, execute the following command in user view:
Task
Command
Remarks
Disable pausing
between screens of
output for the current
CLI session.
screen-length
disable
By default, a CLI session uses the
screen-length
screen-length
command settings in user line view.
This command is a one-time command and takes effect
only for the current CLI session.
Numbering each output line from a display command
You can use the
| by-linenum
option to prefix each
display
command output line with a number for
easy identification.
Each line number is displayed as a 5-character string and might be followed by a colon (:) or hyphen
(-). If you specify both
| by-linenum
and
| begin
regular-expression
for a
display
command, a
hyphen is displayed for all lines that do not match the regular expression.
To number each output line from a
display
command:
Task
Command
Number each output line from a
display
command.
display command
|
by-linenum
For example:
# Display information about VLAN 999, numbering each output line.
<Sysname> display vlan 999 | by-linenum
Summary of Contents for FlexNetwork 10500 Series
Page 139: ...130 Sysname display version ...