3com 8807 Reference Guide

Page of 1099
Command Line Interface Commands
39
Figure 1   Relation between history buffer size and Command-Number
You can either specify the number of commands to be queried 
(Command-Number) or input a string to query commands that match the string. 
You can the two methods separately or in combination.
If you only specify Command-Number, the Command-Number pieces of 
commands executed recently will be displayed.
If you specify a regular expression "| { begin | include | exclude } 
Match-string", all the commands that have been successfully executed by the 
user and that match the regular expression.
If you specify both the number of commands Command-Number and a regular 
expression "| { begin | include | exclude } Match-string", the system will 
display the commands that match the regular expression among the 
Command-Number pieces of commands executed recently.
Related command: history-command max-size.
Example
# Display all history commands in the buffer.
<SW8800>display history-command
 
  system-view
 
  user-interface vty 0
 
  user-interface vty 0 4
 
  history-command max-size 100
 
  quit
 
  display vlan
 
  display vlan all
 
  acl name lc
 
  interface Vlan-interface 1
 
  ip address 10.11.113.14 24
 
  quit
 
  quit 
display history command
-
Commands displayed by
Command-Number
1
.
.
.
2
3
.
.
.
.
.
Max-size-2
History buffer size
-
1
.
.
.
2
3
.
.
.
.
.
1
.
.
.
2
3
.
.
.
.
.
Max-size-1
Max-size
Command-Number
display history command
-
Commands displayed by
Command-Number
1
.
.
.
2
3
.
.
.
.
.
Max-size-2
History buffer size
-
1
.
.
.
2
3
.
.
.
.
.
1
.
.
.
2
3
.
.
.
.
.
Max-size-1
Max-size
Command-Number