Controlling the cli output, Pausing between screens of output, Filtering the output from a display command – H3C Technologies H3C S12500 Series Switches User Manual
Page 22

10
Controlling the CLI output
This section describes the CLI output control features that help you quickly identify the desired output.
Pausing between screens of output
If the output being displayed is more than will fit on one screen, the system automatically pauses after
displaying a screen. By default, up to 24 lines can be displayed on a screen. To change the screen length,
use the screen-length screen-length command. For more information about this command, see
Fundamentals Command Reference. To control output, use keys in
Table 5 Keys for controlling output
Keys Function
Space
Displays the next screen.
Enter
Displays the next line.
Ctrl+C
Stops the displaying and aborts the command execution.
Displays the previous page.
Displays the next page.
To display all output at one time and refresh the screen continuously until the final screen is displayed:
Task Command
Remarks
Disable pausing between screens
of output for the current session.
screen-length disable
The default for a session depends on
the setting of the screen-length
command in user interface view. The
default of the screen-length
command is pausing between
screens of output and displaying up
to 24 lines on a screen.
This command is executed in user
view and takes effect only for the
current session. When you relog in
to the switch, the default is restored.
Filtering the output from a display command
You can use one of the following methods to filter the output from a display command:
•
Specify the | { begin | exclude | include } regular-expression option at the end of the command.
•
When the system pauses after displaying a screen of output, enter a forward slash (/), minus sign
(-), or plus sign (+) plus a regular expression to filter subsequent output. The forward slash equals the
keyword begin, the minus sign equals the keyword exclude, and the plus sign equals the keyword
include.
The following definitions apply to the begin, exclude, and include keywords:
•
begin—Displays the first line that matches the specified regular expression and all lines that follow.
•
exclude—Displays all lines that do not match the specified regular expression.
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches