Command Reference Guide

Command Modes
CLI Command Reference
September 2014 Page 17
HP Moonshot Switch Module CLI Command Reference
Command Modes
The CLI groups commands into modes according to the command function. Each of the command modes
supports specific HP Moonshot Switch Module software commands. The commands in one mode are not
available until you switch to that particular mode, with the exception of the User EXEC mode commands. You
can execute the User EXEC mode commands in the Privileged EXEC mode.
The command prompt changes in each command mode to help you identify the current mode. Table 5
describes the command modes and the prompts visible in that mode.
Note: Show commands are available in every mode.
Note: The do command allows Privileged EXEC mode commands to be executed in any command
mode. For more information, see do (Privileged EXEC commands)” on page 42.
Table 5: CLI Command Modes
Command Mode Prompt Mode Description
User EXEC
(Routing) >
Contains a limited set of commands to view
basic system information.
Privileged EXEC
(Routing) #
Allows you to issue any EXEC command, enter
the VLAN mode, or enter the Global
Configuration mode.
Global Config
(Routing) (Config)#
Groups general setup commands and permits
you to make modifications to the running
configuration.
VLAN Config
(Routing) (Vlan)#
Groups all the VLAN commands.
Interface Config
(Routing) (Interface unit/slot/port)#
(Routing) (Interface Loopback id)#
(Routing) (Interface unit/slot/port
(startrange)-unit/slot/port(endrange)#
(Routing) (Interface lag lag-intf-num)#
(Routing) (Interface vlan vlan-id)#
Manages the operation of an interface or
range of interfaces including the following
interface types:
•Physical port
Link aggregation group (LAG, also known
as port-channel)
VLAN routing interface
Loopback interface
Line Console
(Routing) (config-line)#
Contains commands to configure outbound
Telnet settings and console interface settings,
as well as to configure console login/enable
authentication.
Line SSH
(Routing) (config-ssh)#
Contains commands to configure SSH login/
enable authentication.