3com 8807 Reference Guide

Page of 1099
38
C
HAPTER
 1: C
OMMAND
 L
INE
 I
NTERFACE
 C
OMMANDS
Example
# Configure the precedence of the command "interface" as 0.
<SW8800>system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] command-privilege level 0 view system interface 
display 
history-command
Syntax
display history-command [Command-Number] [ | { begin | include | exclude } 
Match-string ]
View
Any view
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.