![Huawei Quidway NetEngine80 Configuration Manual Download Page 59](http://html.mh-extra.com/html/huawei/quidway-netengine80/quidway-netengine80_configuration-manual_169456059.webp)
3 CLI Overview
Quidway NetEngine80
Configuration Guide - Basic Configurations
3-10
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 04 (2009-12-20)
Specifying a Filtering Mode in Command
For the commands supporting regular expressions, there are three filtering methods:
z
| begin
regular-expression
:
displays the information that begins with the line that
matches
regular expression
.
z
| exclude
regular-expression
:
displays the information that excludes the lines that match
regular expression
.
z
| include
regular-expression
:
displays the information that includes the lines that match
regular expression
.
Specify a Filtering Mode when Information is Displayed
When a lot of information is output and displayed, you can specify a filtering mode in the
prompt "---- More ----".
z
/
regular-expression
: displays the information that begins with the line that matches
regular expression
.
z
-
regular-expression
: displays the information that excludes lines that match
regular
expression
.
z
+
regular-expression
: displays the information that includes lines that match
regular
expression
.
Regular expressions are used to filter the output, such as the metacharacter {}. If the number
of matching times exceeds the scope specified in {}, the matching times out and the
information cannot be displayed normally. Thus, ensure to avoid repeating regular expressions.
Different products have different scopes.
3.3.4 History Commands
The command line interface automatically saves the history command entered by the user.
This function is similar to the Doskey. The user can invoke and run the saved history
command at any time.
By default, the system saves 10 history commands at most for each user. The operations are as
shown in
Table 3-6
.
Table 3-6
Access the history commands
Action
Key or Command
Result
Display the
history
commands.
display
history-command
Display the history commands entered by users.
Access the last
history
command.
Up cursor key
↑
or
Ctrl+P
Display the last history command if there is an
earlier history command
Otherwise, an alarm is generated.