Command Reference Guide
Command Modes
CLI Command Reference
September 2014 Page 19
HP Moonshot Switch Module CLI Command Reference
Table 6 explains how to enter each command mode. To exit a mode and return to the previous mode, enter
exit. To exit to Privileged EXEC mode, enter end.
Note: Entering end from Privileged EXEC mode exits to User EXEC mode. To exit User EXEC mode,
enter
logout.
Table 6: CLI Mode Access
Command Mode Access Method
User EXEC This is the first level of access.
Privileged EXEC From the User EXEC mode, enter
enable.
Global Config From the Privileged EXEC mode, enter
configure.
VLAN Config From the Privileged EXEC mode, enter
vlan database.
Interface Config From the Global Config mode, enter one of the following, depending on the type
of interface:
interface unit/slot/port
interface unit/slot/port(startrange)-unit/slot/port(endrange)
interface loopback id
interface lag lag-intf-num
interface vlan vlan-id
The following example shows how to enter interface configuration mode for the
range of interfaces that includes physical ports 1, 2, 3, and 4.
interface 1/0/1-1/0/4
Note: The interface unit/slot/port command and range command can be
used to enter interface configuration mode for a physical port (for example,
1/0/1), VLAN routing interface (for example, 0/4/1), or LAG (for example, 0/3/1).
Line Console From the Global Config mode, enter
line console.
Line SSH From the Global Config mode, enter
line ssh.
Line Telnet From the Global Config mode, enter
line telnet.
AAA IAS User Config
From the Global Config mode, enter
aaa ias-user username name.
Mail Server Config
From the Global Config mode, enter
mail-server ip_address
Time Range Config
From the Global Config mode, enter
time-range name
Policy-Map
Config
From the Global Config mode, enter policy-map.
Policy-Class-Map Config From the Policy Map mode enter
class.
Class-Map
Config
From the Global Config mode, enter
class-map match-all class-name ipv4. If
the named class has already been created, enter class-map class-name. See
“class-map” on page 629 for more information.
Ipv6-Class-Map
Config
From the Global Config mode, enter
class-map match-all class-name ipv6. If
the named class has already been created, enter
class-map class-name. See
“class-map” on page 629 for more information.
Router OSPF Config From the Global Config mode, enter
router ospf.
Router RIP
Config
From the Global Config mode, enter
router rip.