Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch
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.