H3C s5800 series, S5820 series Command Reference Manual

  • Hello! I am an AI chatbot trained to assist you with the H3C s5800 series Command Reference Manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
H3C S5820X&S5800 Switch Series
Fundamentals Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release 1805P02
Release 1808P12
Document version: 6W101-20140314
Copyright © 2012-2014, Hangzhou H3C Technologies Co., Ltd. and its licensors
All rights reserved
No part of this manual may be reproduced or transmitted in any form or by any means without prior
written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
H3C, , H3CS, H3CIE, H3CNE, Aolynk, , H
3
Care, , IRF, NetPilot, Netflow,
SecEngine, SecPath, SecCenter, SecBlade, Comware, ITCMM and HUASAN are trademarks of
Hangzhou H3C Technologies Co., Ltd.
All other trademarks that may be mentioned in this manual are the property of their respective owners
Notice
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute the warranty of any kind, express or implied.
Preface
The H3C S5820X&S5800 documentation set includes 12 command references, which describe the
commands and command syntax options available for the S5820X&S5800 Switch Series.
The Fundamentals Command Reference describes how to configure the command line interface (CLI), log
in to the switch, perform file management, FTP and TFTP, configuration file management, and device
management for your switch, upgrade the software and perform automatic configuration.
This preface includes:
• Audience
• Added and modified commands
• Conventions
• About the H3C S5820X&S5800 documentation set
• Obtaining documentation
• Technical support
• Documentation feedback
Audience
This documentation is intended for:
• Network planners
• Field technical support and servicing engineers
• Network administrators working with the S5820X&S5800 series
Added and modified commands
This documentation set is for Release 18xx. The following describes the command changes between
releases:
• Release 1808P12 has the following command changes over Release 1805P02:
Command reference Added and modified commands
CLI N/A
Login management N/A
FTP and TFTP N/A
File system management Added commands: crypto-digest
Configuration file management N/A
Software upgrade N/A
ISSU N/A
Device management Added commands: password-recovery enable
• Release 1805P02 has the following command changes over Release 1211:
Command reference Added and modified commands
CLI
Modified commands: a password configured by the super password
command for user privilege level switching can be hashed.
Login management
Added commands:
• ip http dscp
• ipv6 http dscp
• telnet client dscp
• telnet client ipv6 dscp
• telnet server dscp
• telnet server ipv6 dscp
• web captcha
• web https-authorization mode
• web idle-timeout
• web logbuffer size
Modified commands:set authentication password: a password
configured by this command for local authentication can now be
hashed.
FTP and TFTP
Added commands:
• ftp server dscp
• ftp client ipv6 dscp
• ftp client dscp
• tftp client dscp
• tftp client ipv6 dscp
File system management
Modified commands: with the newly added /all-filesystems option,
the dir command now can display files and folders in the root
directories of all storage media on the switch.
Configuration file management N/A
Software upgrade
Added commands: display patch
Modified commands:
• The patch-number argument becomes optional. The patch active
command can now activate all patches in the patch memory area.
• The patch-number argument becomes optional. The patch
deactive command can now stop all patches in the patch memory
area.
• The patch-number argument becomes optional. The patch delete
command can now delete all patches in the patch memory area.
• The patch-number argument becomes optional. The patch run
command can now confirm all active patches in the patch
memory area.
• The file filename argument is added. The patch install command
can now install patches in a patch package file.
• The file filename argument is added. The patch load command
can now load patches in a patch package file.
ISSU N/A
Device management Added commands:
•
display alarm
• display copyright
• usb disable
• time time-id { one-off | repeating } at time [ month-date
month-day | week-day week-daylist ] command command
Conventions
This section describes the conventions used in this documentation set.
Command conventions
Convention Descri
p
tion
Boldface Bold text represents commands and keywords that you enter literally as shown.
Italic Italic text represents arguments that you replace with actual values.
[ ] Square brackets enclose syntax choices (keywords or arguments) that are optional.
{ x | y | ... }
Braces enclose a set of required syntax choices separated by vertical bars, from which
you select one.
[ x | y | ... ]
Square brackets enclose a set of optional syntax choices separated by vertical bars, from
which you select one or none.
{ x | y | ... } *
Asterisk marked braces enclose a set of required syntax choices separated by vertical
bars, from which you select at least one.
[ x | y | ... ] *
Asterisk marked square brackets enclose optional syntax choices separated by vertical
bars, from which you select one choice, multiple choices, or none.
&<1-n>
The argument or keyword and argument combination before the ampersand (&) sign can
be entered 1 to n times.
# A line that starts with a pound (#) sign is comments.
GUI conventions
Convention Descri
p
tion
Boldface
Window names, button names, field names, and menu items are in Boldface. For
example, the New User window appears; click OK.
> Multi-level menus are separated by angle brackets. For example, File > Create > Folder.
Symbols
Convention Descri
p
tion
WARNING
An alert that calls attention to important information that if not understood or followed can
result in personal injury.
CAUTION
An alert that calls attention to important information that if not understood or followed can
result in data loss, data corruption, or damage to hardware or software.
IMPORTANT
An alert that calls attention to essential information.
NOTE
An alert that contains additional or supplementary information.
Convention Descri
p
tion
TIP
An alert that provides helpful information.
Network topology icons
Represents a generic network device, such as a router, switch, or firewall.
Represents a routing-capable device, such as a router or Layer 3 switch.
Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports
Layer 2 forwarding and other Layer 2 features.
Represents an access controller, a unified wired-WLAN module, or the switching engine
on a unified wired-WLAN switch.
Represents an access point.
Represents a security product, such as a firewall, a UTM, or a load-balancing or security
card that is installed in a device.
Represents a security card, such as a firewall card, a load-balancing card, or a
NetStream card.
Port numbering in examples
The port numbers in this document are for illustration only and might be unavailable on your device.
About the H3C S5820X&S5800 documentation set
The H3C S5820X&S5800 documentation set includes:
Cate
g
or
y
Documents
Pur
p
oses
Product description and
specifications
Marketing brochures Describe product specifications and benefits.
Technology white papers
Provide an in-depth description of software features
and technologies.
Pluggable module
description
PSR150-A & PSR150-D
Series Power Modules
User Manual
Describes the appearances, features, specifications,
installation, and removal of the pluggable 150W
power modules available for the products.
PSR300-12A &
PSR300-12D Series
Power Modules User
Manual
Describes the appearances, features, specifications,
installation, and removal of the pluggable 300W
power modules available for the products.
LSVM1AC650 &
LSVM1DC650 Power
Modules User Manual
Describes the appearances, features, specifications,
installation, and removal of the pluggable 650W
power modules available for the products.
PSR750-A [ PSR750-D ]
Power Modules User
Manual
Describes the appearances, features, specifications,
installation, and removal of the pluggable 750W
power modules available for the products.

Cate
g
or
y
Documents
Pur
p
oses
RPS User Manual
Describes the appearances, features, and
specifications of the RPS units available for the
products.
LSW1FAN and
LSW1BFAN Installation
Manual
Describes the appearances, specifications,
installation, and removal of the pluggable fan
modules available for the products.
LSWM1FANSC and
LSWM1FANSCB
Installation Manual
Describes the appearances, specifications,
installation, and removal of the pluggable fan
modules available for the products.
LSW148POEM Module
User Manual
Describes the appearance, features, installation,
and removal of the pluggable PoE module available
for the products.
S5820X [ S5800 ] Series
Ethernet Switches
Interface Cards User
Manual
Describes the models, hardware specifications,
installation, and removal of the interface cards
available for the products.
H3C OAP Cards User
Manual
Describes the benefits, features, hardware
specifications, installation, and removal of the OAP
cards available for the products.
H3C Low End Series
Ethernet Switches
Pluggable Modules
Manual
Describes the models, appearances, and
specifications of the pluggable modules available
for the products.
Power configuration
S5800-60C-PWR
Ethernet Switch Hot
Swappable Power
Module Ordering Guide
Guides you through ordering the hot-swappable
power modules available for the S5800-60C-PWR
switches in different cases.
RPS Ordering Information
for H3C Low-End Ethernet
Switches
Provides the RPS and switch compatibility matrix and
RPS cable specifications.
Hardware installation
• S5800 Series Ethernet
Switches Quick Start
• S5820X Series
Ethernet Switches
Quick Start
• S5800 Series Ethernet
Switches CE DOC
• S5820X Series
Ethernet Switches CE
DOC
Provides regulatory information and the safety
instructions that must be followed during installation.
• S5800 Series Ethernet
Switches Quick Start
• S5820X Series
Ethernet Switches
Quick Start
Guides you through initial installation and setup
procedures to help you quickly set up and use your
device with the minimum configuration.
• S5800 Series Ethernet
Switches Installation
Manual
Provides a complete guide to hardware installation
and hardware specifications.
Cate
g
or
y
Documents
Pur
p
oses
• S5820X Series
Ethernet Switches
Installation Manual
Pluggable SFP[SFP+][XFP]
Transceiver Modules
Installation Guide
Guides you through installing SFP/SFP+/XFP
transceiver modules.
• S5800-60C-PWR
Switch Video
Installation Guide
• S5820X-28C Switch
Video Installation
Guide
Shows how to install the H3C S5800-60C-PWR and
H3C S5820X-28C Ethernet switches.
Software configuration
Configuration guide
Describe software features and configuration
procedures.
Command reference
Provide a quick reference to all available
commands.
Operations and
maintenance
H3C Series Ethernet
Switches Login Password
Recovery Manual
Tells how to find the lost password or recover the
password when the login password is lost.
Release notes
Provide information about the product release,
including the version history, hardware and software
compatibility matrix, version upgrade information,
technical support information, and software
upgrading.
Obtaining documentation
You can access the most up-to-date H3C product documentation on the World Wide Web
at http://www.h3c.com
.
Click the links on the top navigation bar to obtain different categories of product documentation:
[Technical Support & Documents > Technical Documents]
—Provides hardware installation, software
upgrading, and software feature configuration and maintenance documentation.
[Products & Solutions]
—Provides information about products and technologies, as well as solutions.
[Technical Support & Documents > Software Download]
—Provides the documentation released with the
software version.
Technical support
http://www.h3c.com
Documentation feedback
You can e-mail your comments about product documentation to info@h3c.com.
We appreciate your comments.
i
Contents
CLI configuration commands ······································································································································· 1
command-alias enable ············································································································································· 1
command-alias mapping ········································································································································· 1
command-privilege ··················································································································································· 2
display clipboard ····················································································································································· 3
display command-alias ············································································································································ 4
display history-command ········································································································································· 4
display hotkey ··························································································································································· 5
hotkey ········································································································································································ 6
quit ············································································································································································· 7
return ·········································································································································································· 8
screen-length disable ················································································································································ 8
super ·········································································································································································· 9
super authentication-mode ···································································································································· 10
super password ····················································································································································· 11
system-view ···························································································································································· 12
Login management commands ································································································································· 13
acl (user interface view) ········································································································································ 13
activation-key ························································································································································· 14
auto-execute command ········································································································································· 16
authentication-mode ·············································································································································· 17
command accounting ············································································································································ 18
command authorization ········································································································································ 19
databits ··································································································································································· 20
display ip http ························································································································································ 20
display ip https ······················································································································································ 21
display telnet client configuration ························································································································ 22
display user-interface ············································································································································ 23
display users ·························································································································································· 25
display web users ·················································································································································· 26
escape-key ······························································································································································ 27
flow-control ····························································································································································· 28
free user-interface ·················································································································································· 29
free web-users ························································································································································ 30
history-command max-size ··································································································································· 30
idle-timeout ····························································································································································· 31
ip http acl ······························································································································································· 32
ip http enable ························································································································································· 33
ip http dscp ···························································································································································· 33
ip http port ······························································································································································ 34
ip https acl ······························································································································································ 34
ip https certificate access-control-policy ·············································································································· 35
ip https enable ······················································································································································· 36
ip https port ···························································································································································· 37
ip https ssl-server-policy ········································································································································· 37
ipv6 http dscp ························································································································································ 38
lock ·········································································································································································· 38
parity ······································································································································································· 39
ii
protocol inbound ··················································································································································· 40
screen-length ·························································································································································· 41
send ········································································································································································ 42
set authentication password ································································································································· 43
shell ········································································································································································· 44
speed (user interface view) ··································································································································· 45
stopbits···································································································································································· 45
telnet ······································································································································································· 46
telnet client dscp ···················································································································································· 47
telnet client ipv6 dscp ··········································································································································· 47
telnet client source ················································································································································· 48
telnet ipv6 ······························································································································································· 49
telnet server dscp ··················································································································································· 49
telnet server enable ··············································································································································· 50
telnet server ipv6 dscp ·········································································································································· 50
terminal type ·························································································································································· 51
user privilege level ················································································································································ 52
user-interface ·························································································································································· 53
web captcha ·························································································································································· 54
web https-authorization mode ······························································································································ 54
web idle-timeout ···················································································································································· 55
web logbuffer size ················································································································································· 56
FTP configuration commands ···································································································································· 57
FTP server configuration commands ····························································································································· 57
display ftp-server ···················································································································································· 57
display ftp-user ······················································································································································· 58
free ftp user ···························································································································································· 59
ftp server acl ·························································································································································· 59
ftp server dscp ······················································································································································· 60
ftp server enable ···················································································································································· 61
ftp timeout ······························································································································································· 61
ftp update ······························································································································································· 62
FTP client configuration commands ······························································································································ 62
ascii ········································································································································································· 62
binary ····································································································································································· 63
bye ·········································································································································································· 64
cd ············································································································································································ 64
cdup ········································································································································································ 65
close ········································································································································································ 66
debugging ······························································································································································ 66
delete ······································································································································································ 67
dir ············································································································································································ 68
disconnect ······························································································································································ 69
display ftp client configuration ····························································································································· 69
ftp ············································································································································································ 70
ftp client dscp ························································································································································· 71
ftp client ipv6 dscp ················································································································································ 72
ftp client source ······················································································································································ 72
ftp ipv6 ··································································································································································· 73
get ··········································································································································································· 74
lcd ··········································································································································································· 75
ls ·············································································································································································· 75
mkdir ······································································································································································· 77
open ········································································································································································ 77
iii
open ipv6 ······························································································································································· 78
passive ···································································································································································· 79
put ··········································································································································································· 80
pwd ········································································································································································· 80
quit ·········································································································································································· 81
remotehelp ····························································································································································· 81
rmdir ······································································································································································· 83
user ········································································································································································· 84
verbose ··································································································································································· 84
TFTP configuration commands ··································································································································· 86
display tftp client configuration ···························································································································· 86
tftp-server acl ·························································································································································· 86
tftp ··········································································································································································· 87
tftp client dscp ························································································································································ 88
tftp client ipv6 dscp ··············································································································································· 89
tftp client source ····················································································································································· 89
tftp ipv6 ·································································································································································· 90
File system management commands ························································································································ 92
cd ············································································································································································ 92
copy ········································································································································································ 92
crypto-digest ··························································································································································· 93
delete ······································································································································································ 94
dir ············································································································································································ 95
display nandflash file-location ····························································································································· 97
display nandflash badblock-location··················································································································· 98
display nandflash page-data ······························································································································· 99
execute ··································································································································································· 99
file prompt ···························································································································································· 100
fixdisk ···································································································································································· 101
format···································································································································································· 101
mkdir ····································································································································································· 102
more ······································································································································································ 102
move ····································································································································································· 103
pwd ······································································································································································· 104
rename ·································································································································································· 104
reset recycle-bin ··················································································································································· 104
rmdir ····································································································································································· 107
undelete ································································································································································ 107
Configuration file management commands ·········································································································· 109
archive configuration ·········································································································································· 109
archive configuration interval ···························································································································· 110
archive configuration location ··························································································································· 111
archive configuration max ·································································································································· 112
backup startup-configuration ······························································································································ 113
configuration replace file ···································································································································· 113
display archive configuration ····························································································································· 114
display current-configuration ······························································································································ 115
display default-configuration ······························································································································ 117
display saved-configuration ······························································································································· 118
display startup ····················································································································································· 120
display this ··························································································································································· 121
reset saved-configuration ···································································································································· 122
restore startup-configuration ······························································································································· 123
iv
save ······································································································································································· 124
slave auto-update config····································································································································· 128
startup saved-configuration ································································································································ 128
Software upgrade commands ································································································································ 130
boot-loader ··························································································································································· 130
boot-loader update file ······································································································································· 131
bootrom ································································································································································ 132
bootrom-update security-check enable ·············································································································· 133
display boot-loader ············································································································································· 133
display patch ······················································································································································· 134
display patch information ··································································································································· 135
patch active ·························································································································································· 136
patch deactive ····················································································································································· 137
patch delete ························································································································································· 138
patch install ·························································································································································· 138
patch load ···························································································································································· 139
patch location ······················································································································································ 140
patch run ······························································································································································ 141
ISSU commands ······················································································································································ 142
display issu rollback-timer··································································································································· 142
display issu state ·················································································································································· 143
display version comp-matrix ······························································································································· 144
issu accept ···························································································································································· 146
issu commit ··························································································································································· 147
issu load ······························································································································································· 147
issu rollback ························································································································································· 148
issu rollback-timer ················································································································································ 149
issu run switchover ·············································································································································· 149
Device management commands ···························································································································· 151
clock datetime ······················································································································································ 151
clock summer-time one-off ··································································································································· 151
clock summer-time repeating ······························································································································ 152
clock timezone ····················································································································································· 154
copyright-info enable ·········································································································································· 155
display alarm ······················································································································································· 156
display clock ························································································································································ 157
display copyright ················································································································································· 158
display cpu-usage ················································································································································ 158
display cpu-usage history ··································································································································· 160
display device ······················································································································································ 163
display device manuinfo ····································································································································· 164
display device manuinfo fan ······························································································································ 165
display device manuinfo power ························································································································ 166
display diagnostic-information ··························································································································· 167
display environment ············································································································································ 168
display fan ··························································································································································· 169
display job ··························································································································································· 170
display memory ··················································································································································· 171
display power ······················································································································································ 172
display reboot-type ·············································································································································· 173
display rps ···························································································································································· 174
display schedule job ··········································································································································· 175
display schedule reboot ······································································································································ 176
v
display system-failure ·········································································································································· 176
display transceiver ·············································································································································· 177
display transceiver alarm ··································································································································· 178
display transceiver diagnosis ····························································································································· 180
display transceiver manuinfo ····························································································································· 181
display version ····················································································································································· 182
display version-update-record ···························································································································· 183
fan prefer-direction (available only on S5800-54S and S5820X-26S switches) ········································· 184
header ·································································································································································· 185
job ········································································································································································· 186
password-recovery enable ································································································································· 187
reboot ··································································································································································· 188
reset unused porttag ············································································································································ 188
reset version-update-record ································································································································ 189
schedule job ························································································································································· 189
schedule reboot at ··············································································································································· 191
schedule reboot delay ········································································································································· 192
shutdown-interval ················································································································································· 193
sysname ································································································································································ 194
system-failure ························································································································································ 195
temperature-limit ·················································································································································· 195
time at ··································································································································································· 196
time delay ····························································································································································· 198
usb disable ··························································································································································· 200
view ······································································································································································ 200
Index ········································································································································································ 202
1
CLI configuration commands
In R1808P12 and later versions, the device supports the FIPS mode that complies with NIST FIPS 140-2
requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS
mode. For more information about FIPS mode, see Security Configuration Guide.
command-alias enable
Use command-alias enable to enable the command keyword alias function.
Use undo command-alias enable to disable the command keyword alias function.
Syntax
command-alias enable
undo command-alias enable
Default
The command keyword alias function is disabled.
Views
System view
Default command level
2: System level
Usage guidelines
Disabling the command keyword alias function does not delete the configured aliases, but the aliases do
not take effect anymore.
Examples
# Enable the command keyword alias function.
<Sysname> system-view
[Sysname] command-alias enable
# Disable the command keyword alias function.
<Sysname> system-view
[Sysname] undo command-alias enable
Related commands
command-alias mapping
command-alias mapping
Use command-alias mapping to configure a command keyword alias.
Use undo command-alias mapping to delete a command keyword alias.
Syntax
command-alias mapping cmdkey alias
undo command-alias mapping cmdkey
2
Default
A command keyword has no alias.
Views
System view
Default command level
2: System level
Parameters
cmdkey: Specifies the complete form of the first keyword of a non-undo command, or the second
keyword of an undo command.
alias: Specifies an alias for the keyword. It must be different from the first keyword of any non-undo
command.
Usage guidelines
Command keyword aliases take effect only after you enable the command keyword alias function.
Examples
# Define show as the alias of the display keyword.
<Sysname> system-view
[Sysname] command-alias mapping display show
After you configure the alias, you can enter show to execute a display command. For example, you can
enter show clock to execute the display clock command.
# Delete the alias of the display keyword.
<Sysname> system-view
[Sysname] undo command-alias mapping display
command-privilege
Use command-privilege to assign a level for a specific command in a view.
Use undo command-privilege to restore the default.
Syntax
command-privilege level level view view command
undo command-privilege view view command
Default
Each command in a view has a specified level.
Views
System view
Default command level
3: Manage level
Parameters
level level: Specifies a command level in the range of 0 to 3.
view view: Specifies a view.
3
command: Specifies a command in the specified view.
Usage guidelines
Command levels include four privileges: visit (0), monitor (1), system (2), and manage (3). You can
assign a privilege level according to the user's need. When logging in to the device, the user can access
the assigned level and all levels below it.
Improper use of this command can cause maintenance, operation, and security problems. Make sure
you understand the impact of this command on your network before you use it.
The command specified for the command-privilege command must be complete, and have valid
parameters. For example, the default level of the tftp server-address { get | put | sget } source-filename
[ destination-filename ] [ source { interface interface-type interface-number | ip source-ip-address } ]
command is 3. To enable users with the privilege level 0 to execute the tftp server-address put
source-filename command (such as tftp 192.168.1.26 put syslog.txt) and disable them from specifying the
get, sget, source, or destination-filename option, configure the command-privilege level 0 view shell tftp
1.1.1.1 put a.cfg command.
The command specified for the undo command-privilege view command can be incomplete. For
example, configuring the undo command-privilege view system ftp command restores all commands
starting with ftp (such as ftp server acl, ftp server enable, and ftp timeout) to their default levels. If you
have modified the level of commands ftp server enable and ftp timeout, and you want to restore only the
ftp server enable command to its default level, use the undo command-privilege view system ftp server
command.
If you change the command level of a command in a specified view from the default command level to
a lower level, you must change the command levels of the quit command and the command used to enter
this view. For example, the default command level of commands interface
and sy
stem-view is 2 (system
level). To make the interface command available to the level 1 users, execute the following commands:
command-privilege level 1 view shell system-view, command-privilege level 1 view system interface
gigabitethernet1/0/1, and command-privilege level 1 view system quit. Then, the level 1 users can
enter system view, execute the interface gigabitethernet command, and return to user view.
Examples
# Set the command level of the interface command to 0 in system view.
<Sysname> system-view
[Sysname] command-privilege level 0 view system interface
display clipboard
Use display clipboard to display data in the clipboard.
Syntax
display clipboard [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
4
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
To copy some content to the clipboard:
1. Move the cursor to the starting position of the content, and then press the Esc+Shift+, combination.
2. Move the cursor to the ending position of the content, and then press the Esc+Shift+. combination.
Examples
# Display data in the clipboard.
<Sysname> display clipboard
---------------- CLIPBOARD-----------------
display current-configuration
display command-alias
Use display command-alias to display the command keyword alias configuration.
Syntax
display command-alias [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the command keyword alias configuration.
<Sysname> display command-alias
Command alias is enabled
index alias command key
1 show display
display history-command
Use display history-command to display commands saved in the command history buffer.
5
Syntax
display history-command [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
By default, the system can save up to 10 commands in the buffer. You can use the history-command
max-size command to change the buffer size.
Examples
# Display all commands saved in the command history buffer.
<Sysname> display history-command
display history-command
system-view
vlan 2
quit
display hotkey
Use display hotkey to display hotkey information.
Syntax
display hotkey [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
6
Examples
# Display hotkey information.
<Sysname> display hotkey
----------------- HOTKEY -----------------
=Defined hotkeys=
Hotkeys Command
CTRL_G display current-configuration
CTRL_L display ip routing-table
CTRL_O undo debug all
=Undefined hotkeys=
Hotkeys Command
CTRL_T NULL
CTRL_U NULL
=System hotkeys=
Hotkeys Function
CTRL_A Move the cursor to the beginning of the current line.
CTRL_B Move the cursor one character left.
CTRL_C Stop current command function.
CTRL_D Erase current character.
CTRL_E Move the cursor to the end of the current line.
CTRL_F Move the cursor one character right.
CTRL_H Erase the character left of the cursor.
CTRL_K Kill outgoing connection.
CTRL_N Display the next command from the history buffer.
CTRL_P Display the previous command from the history buffer.
CTRL_R Redisplay the current line.
CTRL_V Paste text from the clipboard.
CTRL_W Delete the word left of the cursor.
CTRL_X Delete all characters up to the cursor.
CTRL_Y Delete all characters after the cursor.
CTRL_Z Return to the User View.
CTRL_] Kill incoming connection or redirect connection.
ESC_B Move the cursor one word back.
ESC_D Delete remainder of word.
ESC_F Move the cursor forward one word.
ESC_N Move the cursor down a line.
ESC_P Move the cursor up a line.
ESC_< Specify the beginning of clipboard.
ESC_> Specify the end of clipboard.
hotkey
Use hotkey to assign a command to a configurable hotkey.
Use undo hotkey to restore the default.
/