Command Manual – Getting Started 
Quidway S8500 Series Routing Switches  Chapter 1  
Commands Used to Log in to Switch
 
Huawei Technologies Proprietary 
1-5 
y history command-
nds displayed by
Parameter 
Command-Number: The number of history commands the user wants to query. The 
value range is 1 to 256.  
|: Operator, indicating that a regular expression follows.  
begin: Displays all commands starting from the one that matches the match string.  
include: Displays only the command that matches the string.  
exclude: Displays only the commands that do not match the match string.  
Match-string: The regular expression to match.  
Description 
The  display history-command command is used to query selectively the history 
commands. All the history commands are stored in the history command buffer. When 
the history command buffer is full, the oldest information in the buffer will be replaced by 
new information.  
The number of history commands obtained through the display history-command 
command, Command-Number, depends on the size of the history command buffer set 
through the history-command max-size command, and Command-Number should 
not be bigger than the size of the history command buffer Max-size. If the specified 
Command-Number is bigger than the Max-size, all the commands in the history 
command buffer will be queried.  
Refer to 
Figure 1-1. 
displa
Comma
Command-Number
1
.
.
.
2
3
.
.
.
.
.
Max-size-2
History buffer size
-
1
.
.
.
2
3
.
.
.
.
.
1
.
.
.
2
3
.
.
.
.
.
Max-size-1
Max-size
Comma
displa
Comma
nd-Number
y history command-
nds displayed by
Command-Number
1
.
.
.
2
3
.
.
.
.
.
Max-size-2
History buffer size
-
1
.
.
.
2
3
.
.
.
.
.
1
.
.
.
2
3
.
.
.
.
.
Max-size-1
Max-size
Comma
nd-Number
r 
 
Figure 1-1 Relation between history buffer size and Command-Numbe