Huawei Quidway S8500 Series Command Manual page 17

Routing switches
Hide thumbs Also See for Quidway S8500 Series:
Table of Contents

Advertisement

Command Manual – Getting Started
Quidway S8500 Series Routing Switches
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 first Command-Number pieces of
commands 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
Command-Number pieces of commands.
Related command: history-command max-size.
Example
# Display all history commands in the buffer.
<Quidway>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 the first 5 commands in the history command buffer.
<Quidway>display history-command 5
system-view
user-interface vty 0
user-interface vty 0 4
history-command max-size 100
quit
# Display all the buffered history commands that match the specified regular
expression.
<Quidway>display history-command | begin ip
ip address 10.11.113.14 24
quit
commands
that
match
Huawei Technologies Proprietary
Chapter 1 Commands Used to Log in to Switch
the
regular
expression
1-6
among
the
first

Advertisement

Table of Contents
loading

Table of Contents