Mellanox Technologies SX1018HP Command Reference Manual

Category
Networking
Type
Command Reference Manual

This manual is also suitable for

www.mellanox.com
Mellanox MLNX-OS™
Command Reference Guide for SX1018HP
Ethernet Managed Blade Switch
Rev 1.6.2
Software Ver. 3.3.1000
Document Number: 3454
Rev 1.6.2
Mellanox Technologies
2
Rev 1.6.2
Mellanox Technologies
3
Table of Contents
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Document Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Chapter 1 Using the Command Line Interface . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.1 CLI Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1.2 Syntax Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.3 Getting Help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.4 Prompt and Response Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.5 User Roles (Capabilities). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.6 Using the Negation Form. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.7 Parameter Key. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Chapter 2 System Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.1 Management Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
ip address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
alias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26
mtu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
duplex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
dhcp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
shutdown. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
zeroconf. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
ipv6 enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37
ipv6 address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
show interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
hostname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
ip name-server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
ip domain-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
ip/ipv6 host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
ip/ipv6 map-hostname. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
show hosts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
ip/ipv6 route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48
ipv6 default-gateway. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
show ip/ipv6 route. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51
show ip/ipv6 default-gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
ip arp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
show ip arp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
ipv6 neighbor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
clear ipv6 neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56
show ipv6 neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
ip dhcp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
show ip dhcp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
Rev 1.6.2
Mellanox Technologies
4
ipv6 enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59
ping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
traceroute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
tcpdump. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65
clear counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
2.2 License Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
show licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68
2.3 NTP, Clock & Time Zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
clock set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
clock timezone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
ntp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71
ntpdate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72
show clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
show ntp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
2.4 Software Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
image boot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
boot next . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
image default-chip-fw. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77
image delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78
image fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79
image install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80
image move. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81
image options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82
show bootvar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
show images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84
2.5 File Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
ftp-server enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85
show ftp-server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
debug generate dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
file debug-dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
file stats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
file tcpdump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89
show files debug-dump. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
show files stats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91
show files system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92
show files tcpdump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .93
configuration audit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94
configuration copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
configuration delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96
configuration fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97
configuration jump-start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98
configuration merge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
configuration move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
configuration new . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
configuration revert. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102
configuration switch-to . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103
configuration text fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
configuration text file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105
Rev 1.6.2
Mellanox Technologies
5
configuration text generate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
configuration upload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
show configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
show running-config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
2.6 Local and Remote Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
logging local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111
logging local override . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
logging <syslog IP address> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
logging receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116
logging format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
logging fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118
logging level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .120
logging files delete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121
logging files rotation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122
logging files upload. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124
show logging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125
show log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126
2.7 Maintenance Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
reload. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127
reset factory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128
2.8 User management and AAA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
username . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128
show usernames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
show users. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131
show whoami . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132
aaa accounting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132
aaa authentication login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134
aaa authentication attempts track enable. . . . . . . . . . . . . . . . . . . . .135
aaa authentication attempts lockout . . . . . . . . . . . . . . . . . . . . . . . .136
aaa authentication attempts class-override . . . . . . . . . . . . . . . . . . .139
aaa authentication attempts reset . . . . . . . . . . . . . . . . . . . . . . . . . .140
clear aaa authentication attempts . . . . . . . . . . . . . . . . . . . . . . . . . .141
aaa authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142
show aaa . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
show aaa authentication attempts . . . . . . . . . . . . . . . . . . . . . . . . . .145
radius-server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146
radius-server host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
show radius . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148
tacacs-server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149
tacacs-server host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .150
show tacacs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152
ldap base-dn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153
ldap bind-dn/bind-password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154
ldap group-attribute/group-dn. . . . . . . . . . . . . . . . . . . . . . . . . . . . .155
ldap host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156
ldap login-attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .157
ldap port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .158
ldap referrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159
Rev 1.6.2
Mellanox Technologies
6
ldap scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160
ldap ssl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .161
ldap timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163
ldap version. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .164
show ldap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165
2.9 Cryptographic (X.509, IPSec) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
crypto ipsec peer local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166
crypto certificate ca-list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .168
crypto certificate default-cert . . . . . . . . . . . . . . . . . . . . . . . . . . . . .169
crypto certificate generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .170
crypto certificate name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .171
crypto certificate system-self-signed . . . . . . . . . . . . . . . . . . . . . . .173
show crypto certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174
show crypto ipsec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .176
2.10 CLI Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
cli clear-history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177
cli default . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .178
cli session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180
show cli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182
2.11 Banner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
banner login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183
banner login-local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184
banner login-remote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184
banner motd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185
show banner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186
2.12 SSH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
ssh server enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186
ssh server host-key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .188
ssh server listen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .190
ssh server min-version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191
ssh server ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192
ssh server x11-forwarding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .193
ssh client global. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
ssh client user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .196
slogin. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197
show ssh client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198
show ssh server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199
2.13 Remote Login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
telnet-server enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .200
show telnet-server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201
2.14 XML Gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
xml-gw enable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202
show xml-gw. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203
2.15 Web Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
web auto-logout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .204
web client cert-verify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205
web client ca-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206
web enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207
Rev 1.6.2
Mellanox Technologies
7
web http. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .208
web httpd. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .210
web https . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211
web session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213
web proxy auth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .214
web proxy host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .216
show web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .217
2.16 SNMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
snmp-server community . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .218
snmp-server contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .219
snmp-server enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .220
snmp-server host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .221
snmp-server listen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223
snmp-server location. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .224
snmp-server notify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .225
snmp-server port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .226
snmp-server user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .227
show snmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .228
2.17 Scheduled Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .230
command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .231
comment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232
enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .233
execute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234
fail-continue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235
name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .236
schedule type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
schedule <recurrence type> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238
show jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
2.18 Event Notification. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
email autosupport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240
email autosupport ssl mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .241
email autosupport ssl cert-verify. . . . . . . . . . . . . . . . . . . . . . . . . . .242
email autosupport ssl ca-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .243
email dead-letter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .244
email domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .245
email mailhub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .246
email mailhub-port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .247
email notify event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248
email notify recipient . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249
email return-addr. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250
email return-host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251
email send-test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .252
email ssl mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253
email ssl cert-verify. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254
email ssl ca-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255
show email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .256
2.19 Statistics and Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
stats alarm <alarm-id> clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257
Rev 1.6.2
Mellanox Technologies
8
stats alarm <alarm-id> enable. . . . . . . . . . . . . . . . . . . . . . . . . . . . .258
stats alarm <alarm-id> event-repeat . . . . . . . . . . . . . . . . . . . . . . . .259
stats alarm <alarm-id> {rising | falling} . . . . . . . . . . . . . . . . . . . . .260
stats alarm <alarm-id> rate-limit . . . . . . . . . . . . . . . . . . . . . . . . . .261
stats chd <chd-id> clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .262
stats chd <chd-id> enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .263
stats chd <chd-id> compute time . . . . . . . . . . . . . . . . . . . . . . . . . .264
stats sample <sample-id> clear . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
stats sample <sample-id> enable . . . . . . . . . . . . . . . . . . . . . . . . . .267
stats sample <sample-id> interval. . . . . . . . . . . . . . . . . . . . . . . . . .268
stats clear-all . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .269
stats export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .270
show stats alarm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .271
show stats chd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272
show stats cpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .273
show stats sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .274
2.20 Chassis Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
health. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .274
power enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .276
usb eject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .277
system profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .278
show fan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .279
show version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280
show inventory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .281
show module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .282
show memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .283
show asic-version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .284
show power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .285
show power consumers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .286
show temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .287
show voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .288
show health-report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .289
show resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .290
show system profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .291
show system capabilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .292
show system mac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .293
show protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .294
Chapter 3 Ethernet Switching. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
3.1 Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
interface ethernet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .297
flowcontrol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .298
mtu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .299
shutdown. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .300
description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301
speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .302
clear counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .303
show interfaces ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .304
show interfaces ethernet [<inf>] capabilities . . . . . . . . . . . . . . . . .305
show interfaces ethernet [<inf>] description . . . . . . . . . . . . . . . . .306
Rev 1.6.2
Mellanox Technologies
9
show interfaces ethernet [<inf>] status. . . . . . . . . . . . . . . . . . . . . .307
show interfaces ethernet [<inf>] transceiver . . . . . . . . . . . . . . . . .308
module-type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .308
3.2 Link Aggregation Group (LAG) and LACP. . . . . . . . . . . . . . . . . . . . . . . 310
interface port-channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .310
lacp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .311
lacp system-priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312
lacp (interface) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .313
port-channel load-balance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .314
channel-group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .315
show lacp system-identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .316
show lacp counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .317
show lacp interface ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .318
show lacp interface neighbor . . . . . . . . . . . . . . . . . . . . . . . . . . . . .320
show lacp interfaces port-channel. . . . . . . . . . . . . . . . . . . . . . . . . .321
3.3 VLANs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
vlan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .322
name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .323
show vlan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .324
switchport mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .325
switchport access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .326
switchport {hybrid, trunk} allowed vlan . . . . . . . . . . . . . . . . . . . .327
show interface switchport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .328
3.4 MAC Address Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328
mac-address-table aging-time . . . . . . . . . . . . . . . . . . . . . . . . . . . . .328
mac-address-table static . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .330
clear mac-address-table dynamic . . . . . . . . . . . . . . . . . . . . . . . . . .331
show mac-address-table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .332
show mac-address-table aging-time . . . . . . . . . . . . . . . . . . . . . . . .333
3.5 Spanning Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
spanning-tree. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .334
spanning-tree (timers) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .335
spanning-tree port type (default global) . . . . . . . . . . . . . . . . . . . . .336
spanning-tree priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .337
spanning-tree port-priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .338
spanning-tree cost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339
spanning-tree port type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .340
spanning-tree guard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .341
spanning-tree bpdufilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .342
clear spanning-tree counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .343
show spanning-tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .344
3.6 IGMP Snooping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
ip igmp snooping (admin). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .345
ip igmp snooping (config). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .346
ip igmp snooping fast-leave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .348
ip igmp snooping static-group . . . . . . . . . . . . . . . . . . . . . . . . . . . .349
ip igmp snooping mrouter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .351
ip igmp snooping unregistered multicast . . . . . . . . . . . . . . . . . . . .352
Rev 1.6.2
Mellanox Technologies
10
show ip igmp snooping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .353
show ip igmp snooping groups . . . . . . . . . . . . . . . . . . . . . . . . . . . .354
show ip igmp snooping vlan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .355
show ip igmp snooping mrouter . . . . . . . . . . . . . . . . . . . . . . . . . . .356
show ip igmp snooping interfaces. . . . . . . . . . . . . . . . . . . . . . . . . .357
show ip igmp snooping statistics . . . . . . . . . . . . . . . . . . . . . . . . . .358
3.7 Link Layer Discovery Protocol (LLDP). . . . . . . . . . . . . . . . . . . . . . . . . . 359
lldp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .359
lldp reinit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .360
lldp timer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .361
lldp tx-delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .362
lldp tx-hold-multiplier. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .363
lldp {receive | transmit} . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .364
lldp tlv-select. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .365
show lldp local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .366
show lldp interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .367
show lldp interface ethernet <inf> remote . . . . . . . . . . . . . . . . . . .368
show lldp timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .369
show lldp statistics global . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .370
show lldp statistics [interface ethernet <inf>]. . . . . . . . . . . . . . . . .371
3.8 Quality of Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
dcb ets enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .372
dcb ets tc bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .373
vlan map-priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .374
show dcb ets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .375
show dcb ets interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .376
dcb priority-flow-control enable . . . . . . . . . . . . . . . . . . . . . . . . . . .378
dcb priority-flow-control priority . . . . . . . . . . . . . . . . . . . . . . . . . .379
dcb priority-flow-control mode on . . . . . . . . . . . . . . . . . . . . . . . . .380
show dcb priority-flow-control. . . . . . . . . . . . . . . . . . . . . . . . . . . .381
3.9 Access Control List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382
ipv4/mac access-list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .382
ipv4/mac port access-group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .383
deny/permit (MAC ACL rule) . . . . . . . . . . . . . . . . . . . . . . . . . . . .384
deny/permit (IPv4 ACL rule) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .385
deny/permit (IPv4 TCP/UDP ACL rule) . . . . . . . . . . . . . . . . . . . .386
access-list action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .387
vlan-map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .388
show access-list action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .389
show mac/ipv4 access-lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .390
show mac/ipv4 access-lists summary . . . . . . . . . . . . . . . . . . . . . . .391
Chapter 4 IP Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
4.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
ip routing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .392
show ip routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .393
interface vlan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .393
ip address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .395
counters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .396
Rev 1.6.2
Mellanox Technologies
11
description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .397
mtu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .398
shutdown. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .399
clear counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .400
show interfaces vlan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .401
interface loopback. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .402
show interfaces loopback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .402
ip route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .403
ip load-sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .404
show ip route. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .405
show ip load-sharing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .406
ip arp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .407
ip arp timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .408
clear ip arp. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .409
show ip arp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .410
ping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .411
traceroute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .412
tcpdump. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .415
Rev 1.6.2
Mellanox Technologies
12
Document Revision History
Table 1 - Document Revision History - Ethernet
Document
Revision
Date Changes
Rev. 1.6.2 Jan. 2013 Added command “banner login-local”
Added command “banner login-remote”
Added “force” option to commands “dcb priority-flow-control mode on”,
“flowcontrol”, and “mtu <size>”.
Rev. 1.6.1 Nov. 2012 Updated interface port-channel command with range options
Updated interface ethernet command with range option
Rev. 1.5.4 Sep. 2012 Added ‘boot next’ command
Rev. 1.5.3 Aug. 2012 Removed “ip default-gateway” command
Rev 1.5.2 June 2012 Added command “igmp snooping unregistered multicast”
Update command “switchport access”
Rev 1.5.1 May 2012 Added LLDP commands
Rev 1.5.0 May 2012 Initial version
Rev 1.6.2
Mellanox Technologies
13
About this Manual
This manual provides general information concerning MLNX-OS™ Command Line Interface.
Intended Audience
This manual is intended for network administrators who are responsible for configuring and man-
aging Mellanox Technologies’ MLNX-OS Switch Platforms.
Related Documentation
The following table lists the documents referenced in this users manual.
All of these documents can be found on the Mellanox Website. They are available either through
the product pages or through the support page with a login and password.
Table 2 - Reference Documents
Document Name Description
InfiniBand Architecture Specification, Vol. 1,
Release 1.2.1
The InfiniBand Architecture Specification that is pro-
vided by IBTA.
SwitchX® Hardware Installation Guide Each Mellanox Technologies’ switch platform is
shipped with an Installation Guide document to
bring-up and initialize the switch platform.
SwitchX® Hardware User Manual This document contains hardware descriptions, LED
assignments and hardware specifications among other
things.
Switch Errata For any possible errata due to hardware issues see the
switch support product page. This requires a customer
support login.
MX-OS Software WebUI Users Manual WebUI users manual for MX-OS.
Mellanox MLNX-OS SwitchX Software
User Manual
This document contains information regarding con-
figuring and managing Mellanox Technologies'
SwitchX® Switch Platforms.
Mellanox MLNX-OS Software Configuration
Guide
Configuration Guide for MLNX-OS displaying dif-
ferent configuration scenarios.
Rev 1.6.2
Mellanox Technologies
14
Documentation Conventions
Typographical Conventions
Table 3 - Typographical Conventions
Description Convention Example
File names file.extension
Directory names directory
Commands and their parameters command param1 sx10xx-1 > show hosts
Required item < >
Optional item [ ]
Mutually exclusive parameters {p1, p2, p3} or {p1 | p2 |
p3}
Optional mutually exclusive parame-
ters
[p1 | p2 | p3]
Prompt of a command in Standard
mode
hostname > sx10xx-1 >
Prompt of a command in Enable mode hostname # sx10xx-1 #
Prompt of a command in Config mode hostname (config) # sx10xx-1 (config) #
Comments to explain command
examples
// // This is a comment
Variables for which users supply spe-
cific values
Italic font enable
Emphasized words Italic font These are emphasized words
Note <text> This is a note.
Warning <text> Make sure to connect to the
RS-232 RJ-45 port of the
switch and not to the MGT
port.
Rev 1.6.2
Mellanox Technologies
15
Glossary
Table 4 - Glossary
AAA Authentication, Authorization, and Accounting:
Authentication - verifies user credentials (username and password)
Authorization - grants or refuses privileges to a user/client for accessing specific
services
Accounting - tracks network resources consumption by users
ARP Address Resolution Protocol. A protocol that translates IP addresses into
MAC addresses for communication over a local area network (LAN).
BOARD_MONITOR Board temperature sensor for the selected Leaf or Spine module.
CA (Channel Adapter) A device which terminates an Infiniband link, and executes transport level
functions.
CLI Command Line Interface. A user interface in which you type commands at the
prompt.
DCB Data Center Bridging.
DCBX DCBX protocol is an extension of the Link Layer Discovery Protocol
(LLDP). DCBX end points exchange request and acknowledgment messages.
For flexibility, parameters are coded in a type-length-value (TLV) format.
DHCP The Dynamic Host Configuration Protocol (DHCP) is an automatic configura-
tion protocol used on IP networks.
Director Class Switch A high density InfiniBand chassis switch system.
DMA (Direct Memory Access) Allowing Hardware to move data blocks directly to the memory, bypassing
the CPU.
DNS Domain Name System. A hierarchical naming system for devices in a com-
puter network.
Edge Switch A switch system with a 1RU form factor.
ETS ETS provides a common management framework for assignment of band-
width to traffic classes.
Fabric Management The use of a set of tools (APIs) to configure, discover, and manage and a
group of devices organized as a connected fabric.
FTP File Transfer Protocol (FTP) is a standard network protocol used to transfer
files from one host to another over a TCP-based network, such as the Internet.
Gateway A network node that interfaces with another network using a different network
protocol.
GID (Global IDentifier) A 128-bit number used to identify a Port on a network adapter (see below), a
port on a Router, or a Multicast Group.
GUID (Globally Unique IDenti-
fier)
A 64-bit number that uniquely identifies a device or component in a subnet.
HA (High Availability) A system design protocol that provides redundancy of system components,
thus enables overcoming single or multiple failures in minimal downtime.
Rev 1.6.2
Mellanox Technologies
16
IB InfiniBand.
LACP Link Aggregation Control Protocol (LACP) provides a method to control the
bundling of several physical ports together to form a single logical channel.
LACP allows a network device to negotiate an automatic bundling of links by
sending LACP packets to the peer (directly connected device that also imple-
ments LACP).
LDAP The Lightweight Directory Access Protocol is an application protocol for
reading and editing directories over an IP network.
LID (Local IDentifier) A 16 bit address assigned to end nodes by the subnet manager
Each LID is unique within its subnet.
LLDP Link Layer Discovery Protocol (LLDP) is an industry standard protocol
designed to supplant proprietary Link-Layer protocols such as Extreme's EDP
(Extreme Discovery Protocol) and CDP (Cisco Discovery Protocol). The goal
of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-
Layer notifications to adjacent network devices.
MAC A Media Access Control address (MAC address) is a unique identifier
assigned to network interfaces for communications on the physical network
segment. MAC addresses are used for numerous network technologies and
most IEEE 802 network technologies including Ethernet.
MTU (Maximum Transfer Unit) The maximum size of a packet payload (not including headers) that can be
sent /received from a port.
PFC/FC Priority Based Flow Control applies pause functionality to traffic classes OR
classes of service on the Ethernet link.
QoS or Quality of Service Quality of service is the ability to manage different applications or users by
priority such that a required bit rate, delay, packet dropping probability, and/or
other measures may be guaranteed.
QSFP_AMBIENT_TEMP Ambient temperature sensor of the QSFP cage for the selected Leaf or Spine
module
RADIUS Remote Authentication Dial In User Service. A networking protocol that
enables AAA centralized management for computers to connect and use a net-
work service.
RDMA (Remote Direct Memory
Access)
Accessing memory in a remote side without involvement of the remote CPU.
RSTP Rapid Spanning Tree Protocol. A spanning-tree protocol used to prevent loops
in bridge configurations. RSTP is not aware of VLANs and blocks ports at the
physical level.
SA (Subnet Administrator) The interface for querying and manipulating subnet management data.
SCP Secure Copy or SCP is a means of securely transferring computer files
between a local and a remote host or between two remote hosts. It is based on
the Secure Shell (SSH) protocol.
Table 4 - Glossary
Rev 1.6.2
Mellanox Technologies
17
SM (Subnet Manager) An entity that configures and manages the subnet, discovers the network
topology, assign LIDs, determines the routing schemes and sets the routing
tables. There is only one master SM and possible several slaves (Standby
mode) at a given time. The SM administers switch routing tables thereby
establishing paths through the fabric.
SNMP Simple Network Management Protocol. A network protocol for the manage-
ment of a network and the monitoring of network devices and their functions.
SNTP Network Time Protocol. A protocol for synchronizing computer clocks in a
network.
SSH Secure Shell. A protocol (program) for securely logging in to and running pro-
grams on remote machines across a network. The program authenticates
access to the remote machine and encrypts the transferred information through
the connection.
syslog A standard for forwarding log messages in an IP network.
TACACS+ Terminal Access Controller Access-Control System Plus. A networking proto-
col that enables access to a network of devices via one or more centralized
servers. TACACS+ provides separate AAA services.
TCA (Target Channel Adapter) A Channel Adapter that is not required to support verbs, usually used in I/O
devices.
WebUI Web User Interface. A user interface in which you select commands from drop
down menus or by clicking on icons.
XML Gateway Extensible Markup Language Gateway. Provides an XML request-response
protocol for setting and retrieving HW management information.
Table 4 - Glossary
Rev 1.6.2
Mellanox Technologies
18
1 Using the Command Line Interface
This chapter explains how to use the command line interface (CLI) of MLNX-OS SwitchX®.
1.1 CLI Modes
The CLI can be in one of three modes, and each mode makes available a certain group (or level) of
commands for execution. The different CLI configuration modes are:
Table 5 - CLI Modes and Config Context
Mode/Context Description
Standard When the CLI is launched, it begins in Standard mode. This is the
most restrictive mode and only has commands to query a
restricted set of state information. Users cannot take any actions
that directly affect the system, nor can they change any configu-
ration.
Enable The “enable” command moves the user to Enable mode. This
mode offers commands to view all state information and take
actions like rebooting the system, but it does not allow any con-
figuration to be changed. Its commands are a superset of those in
Standard mode. To return to Standard mode, enter “disable”.
Config The “configure terminal” command moves the user from Enable
mode to Config mode. Config mode is allowed only for user
accounts in the “admin” role (or capabilities) – see “User Roles
(Capabilities)”. This mode has a full unrestricted set of com-
mands to view anything, take any action, or change any configu-
ration. Its commands are a superset of those in Enable mode. To
return to Enable mode, enter “exit” or “no configure”. Note that
moving directly from/to Standard mode to/from Config mode is
not possible.
Config Interface Management Configuration mode for management interface mgmt0, mgmt1
and loopback.
Config interface ethernet Configuration mode for Ethernet interface.
Config Interface Port Channel Configuration mode for Port channel (LAG).
Config Vlan Configuration mode for VLAN.
Any Command Mode Several commands such as “show” can be applied within any
context.
Rev 1.6.2
Mellanox Technologies
19
1.2 Syntax Conventions
To help you identify the parts of a CLI command, this section uses conventions to show the syntax of
commands.
1.3 Getting Help
You may request context-sensitive help at any time by pressing “?” on the command line. This will
show a list of choices for the word you are on, or a list of top-level commands if you have not
typed anything yet.
For example, if you are in Standard mode and you type “?” at the command line, then you will get
the following list of available commands
Table 6 - Syntax Conventions
Syntax Convention Description Example
< > Angled brackets Indicates a value/variable that
must be replaced.
<1...65535> or <switch inter-
face>
[ ] Square brackets Encloses optional parameters.
However, only one parameter out
of the list of parameters listed can
be used. You cannot have a com-
bination of the parameters unless
otherwise stated.
[destination-ip | destination-port |
destination-mac]
{ } Braces Encloses alternatives or variables
that are required for the parameter
in square brackets.
[mode {active | on | passive}]
| Vertical bar Identifies mutually exclusive
choices.
active | on | passive
Do not enter the angled or square brackets, vertical bar, or braces in command lines.
This guide uses these symbols only to show the types of entries.
CLI commands and options are in lowercase and are case-sensitive.
For example, when you enter the enable command, enter it all in lowercase, not
ENABLE or Enable. Text entries you create are also case-sensitive. For example, if you
set a LAG name to Lag1, enter it exactly, not lag1 or LAG1.
switch [standalone: master] > ?
Rev 1.6.2
Mellanox Technologies
20
If you type a legal string and then you press “?” without a space character before it, then you will
either get a description of the command that you have typed so far or the possible command/
parameter completions. If you press “?” after a space character and “<cr>” is shown, this means
that what you have entered so far is a complete command, and that you may press Enter (carriage
return) to execute it.
Try the following to get started:
You can also enter “help” to view a description of the interactive help system.
Note also that the CLI supports command and/or parameter tab-completions and their shortened
forms. For example, you can enter “en” instead of the “enable” command, or “cli cl” instead of “cli
clear-history”. In case of ambiguity (more than one completion option is available, that is), then
you can click double tabs to obtain the disambiguation options. Thus, if you are in Enable mode
and you wish to learn which commands start with the letter “c”, type “c” and click twice on the tab
key to get the following:
(There are three commands that start with the letter “c”: clear, cli and configure.)
cli Configure CLI shell options
enable Enter enable mode
exit Log out of the CLI
help View description of the interactive help system
no Negate or clear certain configuration options
ping Send ICMP echo requests to a specified host
show Display system configuration or statistics
slogin Log into another system securely using ssh
switch Configure switch on system
telnet Log into another system using telnet
terminal Set terminal parameters
traceroute Trace the route packets take to a destination
switch-11a596 [standalone: master] >
?
show ?
show c?
show clock?
show clock ?
show interfaces ? (from enable mode)
switch [standalone: master] # c<tab>
clear cli configure
switch-1 [standalone: master] # c
  • 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
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415

Mellanox Technologies SX1018HP Command Reference Manual

Category
Networking
Type
Command Reference Manual
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