Command Manual – Getting Started
Quidway S8500 Series Routing Switches
Chapter 1 Commands Used to Log in to Switch
Huawei Technologies Proprietary
1-6
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.
z
If you only specify
Command-Number
, the first
Command-Number
pieces of
commands will be displayed.
z
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.
z
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 first
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