HPE FlexFabric 5940 Switch Series Fundamentals Reference guide

Category
Software
Type
Reference guide

This manual is also suitable for

HPE FlexFabric 5940 Switch Series
Fundamentals Command Reference
Software version: Release 671x and later
Document version: 6W100-20230822
© Copyright 2023 Hewlett Packard Enterprise Development LP
The information contained herein is subject to change without notice. The only warranties for Hewlett Packard
Enterprise products and services are set forth in the express warranty statements accompanying such
products and services. Nothing herein should be construed as constituting an additional warranty. Hewlett
Packard Enterprise shall not be liable for technical or editorial errors or omissions contained herein.
Confidential computer software. Valid license from Hewlett Packard Enterprise required for possession, use, or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor’s
standard commercial license.
Links to third-party websites take you outside the Hewlett Packard Enterprise website. Hewlett Packard
Enterprise has no control over and is not responsible for information outside the Hewlett Packard Enterprise
website.
Acknowledgments
Intel®, Itanium®, Pentium®, Intel Inside®, and the Intel Inside logo are trademarks of Intel Corporation in the
United States and other countries.
Microsoft® and Windows® are either registered trademarks or trademarks of Microsoft Corporation in the
United States and/or other countries.
Adobe® and Acrobat® are trademarks of Adobe Systems Incorporated.
Java and Oracle are registered trademarks of Oracle and/or its affiliates.
UNIX® is a registered trademark of The Open Group.
i
Contents
Basic CLI commands ····················································································· 1
alias ···························································································································································· 1
display [ | [ by-linenum ] { begin | exclude | include } ]················································································ 2
display > ····················································································································································· 4
display >> ··················································································································································· 5
display alias ················································································································································ 6
display history-command ··························································································································· 6
display history-command all ······················································································································· 7
display hotkey ············································································································································ 8
hotkey ························································································································································· 9
quit ··························································································································································· 11
repeat ······················································································································································· 11
return ························································································································································ 13
screen-length disable ······························································································································· 13
system-view ············································································································································· 14
RBAC commands ························································································ 15
description ················································································································································ 15
display role ··············································································································································· 15
display role feature ··································································································································· 22
display role feature-group ························································································································ 25
feature ······················································································································································ 28
interface policy deny ································································································································ 28
permit interface ········································································································································ 30
permit vlan ················································································································································ 31
permit vpn-instance ·································································································································· 33
role ··························································································································································· 34
role default-role enable ···························································································································· 35
role feature-group ····································································································································· 36
rule ··························································································································································· 36
super ························································································································································ 40
super authentication-mode ······················································································································· 41
super default role ····································································································································· 42
super password ········································································································································ 43
super use-login-username ······················································································································· 44
vlan policy deny ········································································································································ 45
vpn-instance policy deny ·························································································································· 46
Login management commands ···································································· 48
activation-key ··········································································································································· 48
authentication-mode ································································································································· 50
auto-execute command ···························································································································· 52
command accounting ······························································································································· 53
command authorization ···························································································································· 54
databits ····················································································································································· 55
display line ··············································································································································· 55
display telnet client ··································································································································· 57
display user-interface ······························································································································· 57
display users ············································································································································ 59
escape-key ··············································································································································· 60
flow-control ··············································································································································· 61
free line ···················································································································································· 62
free user-interface ···································································································································· 63
history-command max-size ······················································································································ 63
http acl ······················································································································································ 64
http ipv6 acl ·············································································································································· 65
https acl ···················································································································································· 66
ii
https ipv6 acl ············································································································································ 67
idle-timeout ··············································································································································· 68
line ···························································································································································· 69
line class ·················································································································································· 69
lock ··························································································································································· 71
lock reauthentication ································································································································ 72
lock-key ···················································································································································· 72
parity ························································································································································ 73
protocol inbound ······································································································································· 74
restful http enable ····································································································································· 76
restful http port ········································································································································· 77
restful https enable ··································································································································· 77
restful https port ······································································································································· 78
restful https ssl-server-policy ···················································································································· 78
screen-length ··········································································································································· 79
send ························································································································································· 80
set authentication password ····················································································································· 81
shell ·························································································································································· 82
speed ······················································································································································· 83
stopbits ····················································································································································· 83
telnet ························································································································································ 84
telnet client source ··································································································································· 85
telnet ipv6 ················································································································································· 86
telnet server acl ········································································································································ 87
telnet server acl-deny-log enable ············································································································· 88
telnet server dscp ····································································································································· 88
telnet server enable ·································································································································· 89
telnet server ipv6 acl ································································································································ 90
telnet server ipv6 dscp ····························································································································· 90
telnet server ipv6 port ······························································································································· 91
telnet server port ······································································································································ 92
terminal type ············································································································································· 92
user-interface ··········································································································································· 93
user-interface class ·································································································································· 94
user-role ··················································································································································· 96
FTP commands ··························································································· 97
FTP server commands ····································································································································· 97
display ftp-server ······································································································································ 97
display ftp-user ········································································································································· 97
free ftp user ·············································································································································· 98
free ftp user-ip ·········································································································································· 99
free ftp user-ip ipv6 ·································································································································· 99
ftp server acl ··········································································································································· 100
ftp server acl-deny-log enable ················································································································ 101
ftp server dscp ········································································································································ 101
ftp server enable ···································································································································· 102
ftp server ipv6 dscp ································································································································ 102
ftp server ssl-server-policy ····················································································································· 103
ftp timeout ·············································································································································· 104
FTP client commands ···································································································································· 104
? ····························································································································································· 104
append ··················································································································································· 105
ascii ························································································································································ 106
binary ····················································································································································· 106
bye ························································································································································· 107
cd ··························································································································································· 107
cdup ······················································································································································· 108
close ······················································································································································· 109
debug ····················································································································································· 109
delete ····················································································································································· 110
dir ··························································································································································· 110
iii
disconnect ·············································································································································· 112
display ftp client source ·························································································································· 112
ftp ··························································································································································· 112
ftp client ipv6 source ······························································································································ 114
ftp client source ······································································································································ 115
ftp ipv6 ···················································································································································· 116
get ·························································································································································· 117
help ························································································································································ 118
lcd ··························································································································································· 119
ls ····························································································································································· 120
mkdir ······················································································································································ 121
newer ····················································································································································· 121
open ······················································································································································· 122
passive ··················································································································································· 123
put ·························································································································································· 123
pwd ························································································································································· 124
quit ························································································································································· 125
reget ······················································································································································· 125
rename ··················································································································································· 126
reset ······················································································································································· 127
restart ····················································································································································· 127
rhelp ······················································································································································· 128
rmdir ······················································································································································· 129
rstatus ···················································································································································· 130
status ······················································································································································ 132
system ···················································································································································· 133
user ························································································································································ 133
verbose ·················································································································································· 134
TFTP commands ······················································································· 135
TFTP server commands································································································································· 135
tftp server enable ··································································································································· 135
tftp server work-directory ························································································································ 135
TFTP client commands ·································································································································· 136
tftp ·························································································································································· 136
tftp client ipv6 source ····························································································································· 138
tftp client source ····································································································································· 139
tftp ipv6 ··················································································································································· 140
tftp-server acl ········································································································································· 141
tftp-server ipv6 acl ·································································································································· 142
File system management commands ························································ 143
cd ··························································································································································· 143
copy ························································································································································ 144
delete ····················································································································································· 147
dir ··························································································································································· 148
execute ··················································································································································· 149
fdisk ························································································································································ 149
file prompt ·············································································································································· 151
fixdisk ····················································································································································· 152
format ····················································································································································· 152
gunzip ····················································································································································· 153
gzip ························································································································································· 154
md5sum ················································································································································· 155
mkdir ······················································································································································ 155
more ······················································································································································· 156
mount ····················································································································································· 156
move ······················································································································································ 157
pwd ························································································································································· 158
rename ··················································································································································· 158
reset recycle-bin ····································································································································· 159
rmdir ······················································································································································· 159
iv
sha256sum ············································································································································· 160
tar create ················································································································································ 160
tar extract ··············································································································································· 161
tar list ······················································································································································ 163
umount ··················································································································································· 163
undelete ················································································································································· 164
Configuration file management commands ················································ 166
archive configuration ······························································································································ 166
archive configuration interval ················································································································· 167
archive configuration location ················································································································· 168
archive configuration max ······················································································································ 169
archive configuration server ··················································································································· 170
archive configuration server password··································································································· 172
archive configuration server user ··········································································································· 172
backup startup-configuration ·················································································································· 173
configuration commit ······························································································································ 174
configuration commit delay ···················································································································· 175
configuration encrypt ······························································································································ 176
configuration exclusive by-user-name···································································································· 176
configuration replace file ························································································································ 177
display archive configuration ·················································································································· 178
display configuration exclusive by-user-name ······················································································· 180
display current-configuration ·················································································································· 180
display current-configuration diff ············································································································ 182
display default-configuration ·················································································································· 183
display diff ·············································································································································· 184
display saved-configuration ···················································································································· 185
display startup ········································································································································ 187
display this ············································································································································· 188
reset saved-configuration ······················································································································· 189
restore startup-configuration ·················································································································· 190
save ························································································································································ 191
save binary-only ····································································································································· 193
standby auto-update config ···················································································································· 194
startup saved-configuration ···················································································································· 195
Software upgrade commands ···································································· 197
boot-loader file ······································································································································· 197
boot-loader update ································································································································· 199
bootrom update ······································································································································ 200
display boot-loader ································································································································· 201
ISSU commands ························································································ 203
display install active ······························································································································· 203
display install backup ····························································································································· 204
display install committed ························································································································ 206
display install inactive ····························································································································· 207
display install ipe-info ····························································································································· 208
display install job ···································································································································· 209
display install log ···································································································································· 209
display install package ··························································································································· 211
display install rollback ···························································································································· 212
display install which ································································································································ 212
display issu rollback-timer ······················································································································ 214
display issu state ···································································································································· 214
display version comp-matrix file ············································································································· 217
install abort ············································································································································· 218
install activate ········································································································································· 219
install add ··············································································································································· 221
install commit ········································································································································· 222
install deactivate ····································································································································· 223
v
install remove ········································································································································· 224
install rollback to ····································································································································· 225
install verify ············································································································································ 226
issu accept ············································································································································· 227
issu commit ············································································································································ 227
issu load ················································································································································· 229
issu one-step ·········································································································································· 233
issu quit ·················································································································································· 235
issu rollback ··········································································································································· 235
issu rollback-timer ·································································································································· 236
issu run switchover ································································································································· 237
reset install log-history oldest ················································································································· 239
reset install rollback oldest ····················································································································· 239
GIR commands ·························································································· 240
config-end ·············································································································································· 240
display gir custom-profile ······················································································································· 240
display gir snapshot ······························································································································· 241
display gir snapshot compare ················································································································ 242
display gir system-mode ························································································································ 243
gir custom-profile ···································································································································· 245
gir snapshot add ····································································································································· 247
gir snapshot create ································································································································· 247
gir snapshot delete ································································································································· 248
gir system-mode maintenance ··············································································································· 249
gir system-mode maintenance maintenance-delay ················································································ 253
gir system-mode maintenance revert-delay ··························································································· 253
gir system-mode maintenance snapshot-delay ······················································································ 254
sleep instance ········································································································································ 255
Emergency shell commands ······································································ 256
copy ························································································································································ 256
delete ····················································································································································· 256
dir ··························································································································································· 257
display copyright ···································································································································· 259
display install package ··························································································································· 259
display interface m-eth0 ························································································································· 260
display ip routing-table ··························································································································· 262
display ipv6 routing-table ······················································································································· 262
display version ······································································································································· 263
format ····················································································································································· 264
ftp ··························································································································································· 264
install load ·············································································································································· 265
interface m-eth0 ····································································································································· 265
ip address ··············································································································································· 266
ip gateway ·············································································································································· 267
ipv6 address ··········································································································································· 267
ipv6 gateway ·········································································································································· 268
mkdir ······················································································································································ 268
more ······················································································································································· 269
move ······················································································································································ 269
ping ························································································································································ 270
ping ipv6 ················································································································································· 271
pwd ························································································································································· 272
quit ························································································································································· 272
reboot ····················································································································································· 272
reset ssh public-key ······························································································································· 273
rmdir ······················································································································································· 274
shutdown ················································································································································ 274
ssh2 ························································································································································ 275
system-view ··········································································································································· 276
telnet ······················································································································································ 276
vi
tftp ·························································································································································· 276
Preprovisioning commands ········································································ 278
display provision failed-config ················································································································ 278
provision ················································································································································· 278
reset provision failed-config ··················································································································· 279
slot ·························································································································································· 280
Device management commands································································ 281
clock datetime ········································································································································ 281
clock protocol ········································································································································· 282
clock summer-time ································································································································· 282
clock timezone ······································································································································· 284
command ··············································································································································· 285
copyright-info enable ······························································································································ 286
display alarm ·········································································································································· 286
display clock ··········································································································································· 287
display copyright ···································································································································· 288
display cpu-usage ·································································································································· 288
display cpu-usage configuration············································································································· 289
display cpu-usage history ······················································································································· 290
display device ········································································································································· 292
display device manuinfo ························································································································· 293
display device manuinfo fan ··················································································································· 294
display device manuinfo power ·············································································································· 294
display diagnostic-information ················································································································ 295
display environment ······························································································································· 296
display fan ·············································································································································· 297
display hardware-resource switch-mode ································································································ 298
display memory ······································································································································ 299
display memory-threshold ······················································································································ 300
display power ········································································································································· 302
display power history ······························································································································ 304
display resource-monitor ························································································································ 306
display scheduler job ······························································································································ 307
display scheduler logfile ························································································································· 307
display scheduler reboot ························································································································ 308
display scheduler schedule ···················································································································· 308
display system health ····························································································································· 310
display system health history ················································································································· 311
display system stable state ···················································································································· 311
display system-working-mode ················································································································ 313
display transceiver alarm ······················································································································· 313
display transceiver diagnosis ················································································································· 314
display transceiver interface ··················································································································· 315
display transceiver manuinfo ·················································································································· 316
display version ······································································································································· 316
display version-update-record ················································································································ 317
fan prefer-direction ································································································································· 317
hardware-resource switch-mode ············································································································ 318
header ···················································································································································· 319
job ·························································································································································· 320
memory-threshold ·································································································································· 320
memory-threshold usage ······················································································································· 322
monitor cpu-usage enable ······················································································································ 323
monitor cpu-usage interval ····················································································································· 323
monitor cpu-usage logging interval ········································································································ 324
monitor cpu-usage threshold ·················································································································· 325
monitor memory-usage logging interval ································································································· 326
monitor resend cpu-usage ····················································································································· 326
monitor resend memory-threshold ········································································································· 327
parity-error consistency-check log enable ······························································································ 328
vii
parity-error consistency-check threshold ······························································································· 329
parity-error monitor log enable ··············································································································· 330
parity-error monitor period ······················································································································ 331
parity-error monitor threshold ················································································································· 331
parity-error unrecoverable log enable ···································································································· 332
parity-error unrecoverable period ··········································································································· 333
parity-error unrecoverable reboot ··········································································································· 334
parity-error unrecoverable threshold ······································································································ 334
password-recovery enable ····················································································································· 335
reboot ····················································································································································· 336
reset scheduler logfile ···························································································································· 337
reset version-update-record ··················································································································· 337
resource-monitor minor resend enable ·································································································· 338
resource-monitor output ························································································································· 339
resource-monitor resource ····················································································································· 339
restore factory-default ···························································································································· 341
scheduler job ·········································································································································· 342
scheduler logfile size ······························································································································ 343
scheduler reboot at ································································································································ 343
scheduler reboot delay ··························································································································· 344
scheduler schedule ································································································································ 345
shutdown-interval ··································································································································· 346
sysname ················································································································································· 347
system-working-mode ···························································································································· 347
temperature-limit ···································································································································· 348
time at ···················································································································································· 349
time once ················································································································································ 350
time repeating ········································································································································ 351
transceiver monitor enable ····················································································································· 352
transceiver monitor interval ···················································································································· 353
usb disable ············································································································································· 354
user-role ················································································································································· 354
Tcl commands ··························································································· 356
cli ···························································································································································· 356
tclquit ······················································································································································ 356
tclsh ························································································································································ 357
Python commands ····················································································· 358
exit() ······················································································································································· 358
python ···················································································································································· 358
python filename ·································································································································· 359
Document conventions and icons ······························································ 361
Conventions ··················································································································································· 361
Network topology icons ·································································································································· 362
Support and other resources ····································································· 363
Accessing Hewlett Packard Enterprise Support····························································································· 363
Accessing updates ········································································································································· 363
Websites ················································································································································ 364
Customer self repair ······························································································································· 364
Remote support ······································································································································ 364
Documentation feedback ······················································································································· 364
Index ·········································································································· 366
1
Basic CLI commands
alias
Use alias to configure a command alias.
Use undo alias to delete a command alias.
Syntax
alias alias command
undo alias alias
Default
The device has a set of system-defined command aliases, as listed in Table 1.
Table 1 System-defined command aliases
Command alias
Command or command keyword
access-list
acl
end
return
erase
delete
exit
quit
hostname
sysname
logging
info-center
no
undo
show
display
write
save
Views
System view
Predefined user roles
network-admin
Parameters
alias: Specifies an alias, a case-sensitive string of 1 to 20 characters. An alias cannot be alias or
contain spaces or quotation marks (").
command: Specifies a command string. Make sure the command string meets the syntax
requirements.
Usage guidelines
System-defined command aliases cannot be deleted.
You can configure one or more aliases for a command or the starting keywords of commands. Then,
you can use the aliases to execute the command or commands. If the command or commands have
undo forms, you can also use the aliases to execute the undo command or commands.
2
For example, if you configure the alias shiprt for display ip routing-table, you can enter
shiprt to execute the display ip routing-table command. If you configure the alias ship
for display ip, you can use ship to execute all commands that start with display ip:
•
Enter ship routing-table to execute the display ip routing-table command.
•
Enter ship interface to execute the display ip interface command.
The command string can include up to nine parameters. Each parameter starts with the dollar sign ($)
and a sequence number in the range of 1 to 9. For example, you can configure the alias shinc for
the display ip $1 | include $2 command. Then, to execute the display ip
routing-table | include Static command, you only need to enter shinc
routing-table Static. To execute the display ip interface | include
Ten-GigabitEthernet1/0/1 command, you only need to enter shinc interface
Ten-GigabitEthernet1/0/1.
Examples
# Configure shiprt as the alias for the display ip routing-table command and verify the
configuration.
<Sysname> system-view
[Sysname] alias shiprt display ip routing-table
[Sysname] shiprt
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
3.3.3.3/32 Static 60 0 192.168.1.62 Vlan1
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
169.254.0.0/24 Direct 0 0 169.254.0.188 Vlan1
169.254.0.0/32 Direct 0 0 169.254.0.188 Vlan1
169.254.0.188/32 Direct 0 0 127.0.0.1 InLoop0
169.254.0.255/32 Direct 0 0 169.254.0.188 Vlan1
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
# Configure shinc as the alias for display ip $1 | include $2.
[Sysname] alias shinc display ip $1 | include $2
# Use alias shinc to display all static routes.
[Sysname] shinc routing-table Static
3.3.3.3/32 Static 60 0 192.168.1.62 Vlan1
Related commands
display alias
display [ | [ by-linenum ] { begin | exclude | include } ]
Use display [ | [ by-linenum ] { begin | exclude | include } ] to filter the output
from a display command with regular expressions.
3
Syntax
display command [ | [ by-linenum ] { begin | exclude | include }
regular-expression ]&<1-128>
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
command: Specifies the keywords and arguments of a display command. To display available
keywords and arguments, enter display ?.
[ | [ by-linenum ] { begin | exclude | include } regular-expression ]&<1-128>:
Specifies a maximum of 128 filter conditions.
•
by-linenum: Numbers the output lines. You need to specify this keyword in only one filter
condition.
•
begin: Displays the first line matching the specified regular expression and all subsequent
lines.
•
exclude: Displays all lines not matching the specified regular expression.
•
include: Displays all lines matching the specified regular expression.
•
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256
characters.
Usage guidelines
To quickly locate certain lines in the output from a display command, you can use regular
expressions to filter the output, and display a number before each output line. For more information
about regular expressions, see Fundamentals Configuration Guide.
If you specify multiple filter conditions, the system displays the output lines that meet all the
conditions.
A line number is a 5-character string and is typically followed by a colon (:). If you specify both the
by-linenum and begin regular-expression options, a line number might be followed by a
colon or a hyphen (-).
•
Colon—The line matches the regular expression.
•
Hyphen—The line does not match the regular expression.
Examples
# Display the lines that contain vlan in the running configuration.
<Sysname> display current-configuration | include vlan
vlan 1
vlan 999
port access vlan 999
# Display log entries in the log buffer that contain both SHELL and VTY.
<Sysname> display logbuffer | include SHELL | include VTY
%Sep 6 10:38:12:320 2018 Sysname SHELL/5/SHELL_LOGIN: VTY logged in from 169.254.100.171.
%Sep 6 10:52:32:576 2018 Sysname SHELL/5/SHELL_LOGOUT: VTY logged out from
169.254.100.171.
%Sep 6 16:03:27:100 2018 Sysname SHELL/5/SHELL_LOGIN: VTY logged in from 169.254.100.171.
4
%Sep 6 16:44:18:113 2018 Sysname SHELL/5/SHELL_LOGOUT: VTY logged out from
169.254.100.171.
# Display the running configuration, starting from the first line that contains user-group and
numbering the output lines.
<Sysname> display current-configuration | by-linenum begin user-group
114: user-group system
115- #
116- return
display >
Use display > to save the output from a display command to a separate file.
Syntax
display command > filename
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
command: Specifies the keywords and arguments of a display command. To display available
keywords and arguments, enter display ?.
filename: Specifies the name of the file that is used to save the output, a string of 1 to 63
characters.
Usage guidelines
The display commands show the configuration, statistics, and states of the device. You can use
the display > command to save the output to a file.
If the specified file does not exist, the system creates the file and saves the output to the file. If the file
already exists, the system overwrites the file.
Examples
# Save VLAN 1 settings to a separate file named vlan.txt.
<Sysname> display vlan 1 > vlan.txt
# Check the content of the vlan.txt file.
<Sysname> more vlan.txt
VLAN ID: 1
VLAN type: Static
Route interface: Not configured
Description: VLAN 0001
Name: VLAN 0001
Tagged ports: None
Untagged ports:
Ten-GigabitEthernet1/0/2
5
display >>
Use display >> to append the output from a display command to the end of a file.
Syntax
display command >> filename
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
command: Specifies the keywords and arguments of a display command. To display available
keywords and arguments, enter display ?.
filename: Specifies the name of the file that is used to save the output, a string of 1 to 63
characters.
Usage guidelines
The display commands show the configuration, statistics, and states of the device. You can use
display >> to save the output to a file.
If the specified file does not exist, the system creates the file and saves the output to the file. If the file
already exists, the system appends the output to the end of the file.
Examples
# Append the VLAN 999 settings to the end of the vlan.txt file.
<Sysname> display vlan 999 >> vlan.txt
<Sysname>
# Check the content of the vlan.txt file.
<Sysname> more vlan.txt
VLAN ID: 1
VLAN type: Static
Route interface: Not configured
Description: VLAN 0001
Name: VLAN 0001
Tagged ports: None
Untagged ports:
Ten-GigabitEthernet1/0/2
VLAN ID: 999
VLAN type: Static
Route interface: Configured
IPv4 address: 192.168.2.1
IPv4 subnet mask: 255.255.255.0
Description: For LAN Access
Name: VLAN 0999
Tagged ports: None
Untagged ports:
6
Ten-GigabitEthernet1/0/2
display alias
Use display alias to display command aliases.
Syntax
display alias [ alias ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
alias: Specifies a command alias. If you do not specify this argument, the command displays all
command aliases.
Examples
# Display all command aliases.
<Sysname> display alias
Index Alias Command key
1 access-list acl
2 end return
3 erase delete
4 exit quit
5 hostname sysname
6 logging info-center
7 no undo
8 shinc display $1 | include $2
9 show display
10 sirt display ip routing-table
11 write save
# Display the command alias shinc.
<Sysname> display alias shinc
Alias Command key
shinc display ip $1 | include $2
Related commands
alias
display history-command
Use display history-command to display all commands that are saved in the command history
buffer for the current CLI session.
Syntax
display history-command
7
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
The system automatically saves commands you have successfully executed to the command history
buffer for the current CLI session. You can view them and execute them again.
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. To buffer a new command
when the buffer is full, the system deletes the oldest command entry in the buffer.
All commands in the command history buffer for the current CLI session will be cleared when you log
out.
The system displays passwords as asterisks (*) to ensure device security if the command history
buffer has password configuration commands.
Examples
# Display all commands saved in the command history buffer for the current CLI session.
<Sysname> display history-command
system-view
vlan 2
quit
Related commands
history-command max-size
display history-command all
Use display history-command all to display all commands that are saved in the command
history buffer for all CLI sessions.
Syntax
display history-command all
Views
Any view
Predefined user roles
network-admin
Usage guidelines
The system automatically saves commands successfully executed by users to the command history
buffer for all CLI sessions. Users can view them but cannot recall them from the buffer.
Up to 1024 commands can be saved in the command history buffer. To buffer a new command when
the buffer is full, the system deletes the oldest command entry in the buffer.
A user logout does not cause the system to delete commands from the history buffer for all CLI
sessions.
The system displays passwords as asterisks (*) to ensure device security if the command history
buffer has password configuration commands.
8
Examples
# Display all commands saved in the command history buffer for all CLI sessions.
<Sysname> display history-command all
Date Time Terminal Ip User
03/16/2017 20:03:33 vty0 192.168.1.26 **
Cmd:dis his all
03/16/2017 20:03:29 vty0 192.168.1.26 **
Cmd:sys
Table 2 Command output
Field
Description
Date Date when the command was executed.
Time Time when the command was executed.
Terminal User line used by the user.
Ip IP address of the terminal used by the user.
User Username used by the user if the user login authentication mode is
scheme. If the login authentication mode is none or password, this field
displays **.
Cmd Command string entered by the user.
Related commands
display history-command
display hotkey
Use display hotkey to display hotkey information.
Syntax
display hotkey
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display hotkey information.
<Sysname> display hotkey
----------------- Hotkeys -----------------
-Defined function hotkeys-
CTRL_A Move the cursor to the beginning of the line.
CTRL_B Move the cursor one character to the left.
CTRL_C Stop the current command.
CTRL_D Erase the character at the cursor.
CTRL_E Move the cursor to the end of the line.
9
CTRL_F Move the cursor one character to the right.
CTRL_H Erase the character to the left of the cursor.
CTRL_N Display the next command in the history buffer.
CTRL_P Display the previous command in the history buffer.
CTRL_R Redisplay the current line.
CTRL_W Delete the word to the left of the cursor.
CTRL_X Delete all characters from the beginning of the line to the cursor.
CTRL_Y Delete all characters from the cursor to the end of the line.
CTRL_Z Return to the User View.
CTRL_] Kill incoming connection or redirect connection.
ESC_B Move the cursor back one word.
ESC_D Delete all characters from the cursor to the end of the word.
ESC_F Move the cursor forward one word.
-Defined command hotkeys-
CTRL_G display current-configuration
CTRL_L display ip routing-table
CTRL_O undo debugging all
-Undefined hotkeys-
CTRL_T NULL
CTRL_U NULL
Related commands
hotkey
hotkey
Use hotkey to configure a hotkey.
Use undo hotkey to restore the default.
Syntax
hotkey hotkey { command | function function | none }
undo hotkey hotkey
Default
Table 3 shows the default definitions for hotkeys.
Table 3 Default definitions for hotkeys
Hotkey
Function or command
Ctrl+A move_the_cursor_to_the_beginning_of_the_line: Moves the cursor to the
beginning of a line.
Ctrl+B move_the_cursor_one_character_to_the_left: Moves the cursor one
character to the left.
Ctrl+C
stop_the_current_command: Stops the current command.
Ctrl+D
erase_the_character_at_the_cursor: Deletes the character at the cursor.
Ctrl+E move_the_cursor_to_the_end_of_the_line: Moves the cursor to the end of a
line.
Ctrl+F move_the_cursor_one_character_to_the_right: Moves the cursor one
character to the right.
10
Hotkey
Function or command
Ctrl+G
display current-configuration
: Displays the running
configuration.
Ctrl+H erase_the_character_to_the_left_of_the_cursor: Deletes the character to the
left of the cursor.
Ctrl+L
display ip routing-table
: Displays the IPv4 routing table information.
Ctrl+N display_the_next_command_in_the_history_buffer: Displays the next
command in the history buffer. Password configuration commands, if any, are
skipped.
Ctrl+O
undo debugging all
: Displays all debugging functions.
Ctrl+P display_the_previous_command_in_the_history_buffer: Displays the
previous command in the history buffer. Password configuration commands, if
any, are skipped.
Ctrl+R
redisplay_the_current_line: Redisplays the current line.
Ctrl+T
N/A
Ctrl+U
N/A
Ctrl+W delete_the_word_to_the_left_of_the_cursor: Deletes the word to the left of
the cursor.
Ctrl+X delete_all_characters_from_the_beginning_of_the_line_to_the_cursor:
Deletes all characters to the left of the cursor.
Ctrl+Y delete_all_characters_from_the_cursor_to_the_end_of_the_line: Deletes
all characters from the cursor to the end of the line.
Ctrl+Z
return_to_the_User_View: Returns to user view.
Ctrl+] kill_incoming_connection_or_redirect_connection: Terminates the current
connection.
Esc+B
move_the_cursor_back_one_word: Moves the cursor back one word.
Esc+D delete_all_characters_from_the_cursor_to_the_end_of_the_word: Deletes
all characters from the cursor to the end of the word.
Esc+F
move_the_cursor_forward_one_word: Moves the cursor forward one word.
Views
System view
Predefined user roles
network-admin
Parameters
hotkey: Specifies a hotkey. To display the supported hotkeys, enter hotkey ? or see Table 3.
command: Specifies the command to be assigned to the hotkey.
function function: Specifies the function to be assigned to the hotkey. To display the
supported functions, enter hotkey hotkey function ? or see Table 3.
none: Removes the command or function assignment for the hotkey. After you remove the
assignment for a hotkey, pressing the hotkey does not execute any command or function.
Usage guidelines
The device supports a set of hotkeys. Pressing a hotkey executes the command or function assigned
to the hotkey. You can configure all the hotkeys except Ctrl+].
11
A hotkey can correspond to only one command or function. If you assign multiple commands or
functions to the same hotkey, the most recently assigned command or function takes effect.
A command or function can be assigned to multiple hotkeys. You can use any of those hotkeys to
execute the command or function.
If a hotkey is also defined by the terminal software you are using to interact with the device, the
terminal software definition takes effect.
Examples
# Assign the display tcp statistics command to hotkey Ctrl+T.
<Sysname> system-view
[Sysname] hotkey ctrl_t display tcp statistics
# Assign move_the_cursor_to_the_beginning_of_the_line function to hotkey Ctrl+U.
<Sysname> system-view
[Sysname] hotkey ctrl_u function move_the_cursor_to_the_beginning_of_the_line
# Disable the configurable command or function assigned to hotkey Ctrl+A.
<Sysname> system-view
[Sysname] hotkey ctrl_a none
Related commands
display hotkey
quit
Use quit to return to the upper-level view.
Syntax
quit
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
Executing this command in user view disconnects you from the device.
Examples
# Return from Ten-GigabitEthernet 1/0/1 interface view to system view and then to user view.
[Sysname-Ten-GigabitEthernet1/0/1] quit
[Sysname] quit
<Sysname>
repeat
Use repeat to repeat commands in the command history buffer for the current CLI session.
Syntax
repeat [ number ] [ count times ] [ delay seconds ]
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379

HPE FlexFabric 5940 Switch Series Fundamentals Reference guide

Category
Software
Type
Reference guide
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI