HP Moonshot-180G Reference guide

Category
Software
Type
Reference guide
HP Moonshot-45G/180G Switch Module
CLI Command Reference
Software Version 2.0
Published: September 2014
Edition: 4
Part Number: 727829-002
© Copyright 2003, 2014 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice. The only warranties for HP 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. HP shall not be liable for technical or editorial errors or omissions contained herein.
Confidential computer software. Valid license from HP 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.
Table of ContentsHP Moonshot Switch Module CLI Command Reference
CLI Command Reference
September 2014 Page 3
Table of Contents
About This Document.....................................................................................................................................9
Purpose ....................................................................................................................................................9
Audience ..................................................................................................................................................9
Support and Other Resources ........................................................................................................................9
Before you Contact HP.............................................................................................................................9
HP Contact Information .........................................................................................................................10
Documentation Feedback ............................................................................................................................10
Section 1: About Switch Module Software ...................................................................... 11
Overview.......................................................................................................................................................11
Scope......................................................................................................................................................11
Product Concept ....................................................................................................................................11
Section 2: Using the Command-Line Interface ................................................................. 12
Command Syntax..........................................................................................................................................12
Using the “No” Form of a Command ...........................................................................................................13
Command Conventions ................................................................................................................................13
Common Parameter Values .........................................................................................................................14
unit/slot/port Naming Convention..............................................................................................................15
CLI Output Filtering ......................................................................................................................................16
Command Modes .........................................................................................................................................17
Command Completion and Abbreviation ....................................................................................................20
CLI Error Messages .......................................................................................................................................20
CLI Line-Editing Conventions........................................................................................................................21
Using CLI Help ...............................................................................................................................................22
Accessing the CLI ..........................................................................................................................................23
Section 3: Stacking Commands........................................................................................ 24
Switch Stacking.............................................................................................................................................24
Stack Port Commands ..................................................................................................................................33
Stack Firmware Synchronization Commands ..............................................................................................35
Nonstop Forwarding Commands .................................................................................................................37
Section 4: Management Commands ................................................................................ 41
Enable and Do Commands ...........................................................................................................................42
Network Interface Commands.....................................................................................................................43
IPv6 Management Commands.....................................................................................................................49
Console Port Access Commands ..................................................................................................................59
Table of ContentsHP Moonshot Switch Module CLI Command Reference
CLI Command Reference
September 2014 Page 4
Telnet Commands.........................................................................................................................................62
Secure Shell Commands ............................................................................................................................... 67
Management Security Commands...............................................................................................................69
Access Commands ........................................................................................................................................70
User Account Commands .............................................................................................................................71
SNMP Commands .......................................................................................................................................100
RADIUS Commands ....................................................................................................................................115
TACACS+ Commands ..................................................................................................................................128
Configuration Scripting Commands ...........................................................................................................134
Banner, Prompt, and Host Name Commands............................................................................................136
Section 5: Utility Commands ......................................................................................... 138
AutoInstall Commands ...............................................................................................................................139
CLI Output Filtering Commands .................................................................................................................142
Dual Image Commands ..............................................................................................................................145
Bootcode and Firmware Commands .........................................................................................................146
System Information and Statistics Commands..........................................................................................148
Warp Core Expandable Port Configuration ...............................................................................................174
Logging Commands ....................................................................................................................................176
Email Alerting and Mail Server Commands ...............................................................................................184
Device Location, System Utility, and Clear Commands.............................................................................190
Simple Network Time Protocol Commands...............................................................................................199
Time Zone Commands................................................................................................................................206
DNS Client Commands................................................................................................................................210
IP Address Conflict Commands ..................................................................................................................216
Serviceability Packet Tracing Commands ..................................................................................................217
Support Mode Commands .........................................................................................................................241
sFlow Commands........................................................................................................................................243
Switch Database Management Template Commands ..............................................................................250
Remote Monitoring Commands.................................................................................................................252
Section 6: Switching Commands.................................................................................... 268
Port Configuration Commands ..................................................................................................................269
Spanning Tree Protocol Commands...........................................................................................................275
VLAN Commands ........................................................................................................................................298
Double VLAN Commands ...........................................................................................................................313
Private VLAN Commands ...........................................................................................................................317
Provisioning (IEEE 802.1p) Commands ......................................................................................................320
Cut-Through (ASF) Commands...................................................................................................................321
Table of ContentsHP Moonshot Switch Module CLI Command Reference
CLI Command Reference
September 2014 Page 5
Asymmetric Flow Control...........................................................................................................................322
Protected Ports Commands .......................................................................................................................324
GARP Commands........................................................................................................................................326
GVRP Commands........................................................................................................................................328
GMRP Commands.......................................................................................................................................330
Port-Based Network Access Control Commands.......................................................................................333
802.1X Supplicant Commands ...................................................................................................................348
Storm-Control Commands..........................................................................................................................352
Link Local Protocol Filtering Commands....................................................................................................359
MMRP Commands......................................................................................................................................360
MVRP Commands.......................................................................................................................................364
Port-Channel/LAG (802.3ad) Commands ..................................................................................................368
Port Mirroring Commands .........................................................................................................................388
Static MAC Filtering Commands ................................................................................................................392
DHCP L2 Relay Agent Commands...............................................................................................................396
DHCP Client Commands .............................................................................................................................401
DHCP Snooping Configuration Commands ................................................................................................403
Dynamic ARP Inspection Commands.........................................................................................................413
IGMP Snooping Configuration Commands ................................................................................................421
IGMP Snooping Querier Commands ..........................................................................................................430
MLD Snooping Commands .........................................................................................................................434
MLD Snooping Querier Commands............................................................................................................443
Port Security Commands............................................................................................................................447
LLDP (802.1AB) Commands ........................................................................................................................453
LLDP-MED Commands ................................................................................................................................462
Denial of Service Commands......................................................................................................................469
MAC Database Commands.........................................................................................................................480
ISDP Commands .........................................................................................................................................483
UniDirectional Link Detection Commands.................................................................................................490
Priority-Based Flow Control Commands....................................................................................................495
Section 7: Routing Commands....................................................................................... 500
Address Resolution Protocol Commands ..................................................................................................501
IP Routing Commands ................................................................................................................................508
Router Discovery Protocol Commands ......................................................................................................528
Virtual LAN Routing Commands ................................................................................................................532
Virtual Router Redundancy Protocol Commands......................................................................................535
DHCP and BOOTP Relay Commands ..........................................................................................................544
Table of ContentsHP Moonshot Switch Module CLI Command Reference
CLI Command Reference
September 2014 Page 6
IP Helper Commands ..................................................................................................................................546
Open Shortest Path First Commands.........................................................................................................555
General OSPF Commands ....................................................................................................................555
OSPF Interface Commands ..................................................................................................................575
IP Event Dampening Commands..........................................................................................................581
OSPF Graceful Restart Commands.......................................................................................................583
OSPFv2 Stub Router Commands..........................................................................................................586
OSPF Show Commands ........................................................................................................................587
Routing Information Protocol Commands.................................................................................................607
ICMP Throttling Commands .......................................................................................................................614
Loopback Interface Commands..................................................................................................................616
Section 8: Quality of Service Commands........................................................................ 618
Class of Service Commands ........................................................................................................................619
Differentiated Services Commands ...........................................................................................................627
DiffServ Class Commands...........................................................................................................................628
DiffServ Policy Commands .........................................................................................................................637
DiffServ Service Commands .......................................................................................................................643
DiffServ Show Commands ..........................................................................................................................644
Management Access Control List...............................................................................................................651
MAC Access Control List Commands..........................................................................................................657
IP Access Control List Commands ..............................................................................................................663
IPv6 Access Control List Commands...........................................................................................................672
Time Range Commands for Time-Based ACLs ...........................................................................................676
iSCSI Optimization Commands...................................................................................................................680
Section 9: Log Message Information.............................................................................. 686
Core.............................................................................................................................................................686
Utilities........................................................................................................................................................688
Management ..............................................................................................................................................692
Switching ....................................................................................................................................................694
QoS..............................................................................................................................................................701
Routing........................................................................................................................................................702
Stacking.......................................................................................................................................................704
Technologies...............................................................................................................................................704
O/S Support ................................................................................................................................................706
Command Index............................................................................................................ 708
List of TablesHP Moonshot Switch Module CLI Command Reference
CLI Command Reference
September 2014 Page 7
List of Tables
Table 1: Parameter Conventions......................................................................................................................13
Table 2: Parameter Descriptions ......................................................................................................................14
Table 3: Type of Slots .......................................................................................................................................15
Table 4: Type of Ports.......................................................................................................................................15
Table 5: CLI Command Modes..........................................................................................................................17
Table 6: CLI Mode Access .................................................................................................................................19
Table 7: CLI Error Messages .............................................................................................................................20
Table 8: CLI Editing Conventions ......................................................................................................................21
Table 9: Copy Parameters ..............................................................................................................................197
Table 10: Default Ports - UDP Port Numbers Implied by Wildcard ................................................................546
Table 11: Trapflags Groups.............................................................................................................................573
Table 12: Type of OSPF Packets Sent and Received on the Interface ............................................................599
Table 13: Ethertype Keyword and 4-digit Hexadecimal Value .......................................................................658
Table 14: ACL Command Parameters.............................................................................................................663
Table 15: BSP Log Messages...........................................................................................................................686
Table 16: NIM Log Messages..........................................................................................................................686
Table 17: SIM Log Message ............................................................................................................................687
Table 18: System Log Messages .....................................................................................................................687
Table 19: Trap Mgr Log Message ...................................................................................................................688
Table 20: DHCP Filtering Log Messages..........................................................................................................688
Table 21: NVStore Log Messages ...................................................................................................................689
Table 22: RADIUS Log Messages.....................................................................................................................689
Table 23: TACACS+ Log Messages ..................................................................................................................690
Table 24: LLDP Log Message...........................................................................................................................690
Table 25: SNTP Log Message ..........................................................................................................................690
Table 26: DHCPv6 Client Log Messages..........................................................................................................691
Table 27: DHCPv4 Client Log Messages..........................................................................................................691
Table 28: SNMP Log Message.........................................................................................................................692
Table 29: EmWeb Log Messages ....................................................................................................................692
Table 30: CLI_UTIL Log Messages...................................................................................................................692
Table 31: CLI_WEB_MGR Log Messages ........................................................................................................692
Table 32: SSHD Log Messages ........................................................................................................................693
Table 33: User_Manager Log Messages.........................................................................................................693
Table 34: Protected Ports Log Messages........................................................................................................694
Table 35: IP Subnet VLANS Log Messages ......................................................................................................694
List of TablesHP Moonshot Switch Module CLI Command Reference
CLI Command Reference
September 2014 Page 8
Table 36: Mac-based VLANs Log Messages....................................................................................................695
Table 37: 802.1X Log Messages......................................................................................................................695
Table 38: IGMP Snooping Log Messages........................................................................................................696
Table 39: GARP/GVRP/GMRP Log Messages..................................................................................................696
Table 40: 802.3ad Log Messages....................................................................................................................697
Table 41: FDB Log Message ............................................................................................................................697
Table 42: Double VLAN Tag Log Message ......................................................................................................697
Table 43: IPv6 Provisioning Log Message.......................................................................................................697
Table 44: MFDB Log Message.........................................................................................................................697
Table 45: 802.1Q Log Messages .....................................................................................................................698
Table 46: 802.1S Log Messages......................................................................................................................700
Table 47: Port Mac Locking Log Message.......................................................................................................700
Table 48: Protocol-based VLANs Log Messages .............................................................................................700
Table 49: ACL Log Messages...........................................................................................................................701
Table 50: CoS Log Message ............................................................................................................................701
Table 51: DiffServ Log Messages ....................................................................................................................701
Table 52: DHCP Relay Log Messages ..............................................................................................................702
Table 53: OSPFv2 Log Messages.....................................................................................................................702
Table 54: Routing Table Manager Log Messages ...........................................................................................703
Table 55: VRRP Log Messages ........................................................................................................................703
Table 56: ARP Log Message............................................................................................................................703
Table 57: RIP Log Message .............................................................................................................................703
Table 58: EDB Log Message............................................................................................................................704
Table 59: Switching Silicon Error Messages ...................................................................................................704
Table 60: Linux BSP Log Message...................................................................................................................706
Table 61: OSAPI Linux Log Messages..............................................................................................................706
CLI Command Reference
September 2014 Page 9
HP Moonshot Switch Module CLI Command Reference
About This Document
Purpose
This document describes command-line interface (CLI) commands you use to view and configure HP
Moonshot-45G Switch Module and Moonshot-180G Switch Module software. You can access the CLI by using
a direct connection to the serial port or by using Telnet or SSH over a remote network connection.
Audience
This document is for system administrators who configure and operate systems using HP Moonshot Switch
Module software. This document assumes that the reader has a basic knowledge of Ethernet and networking
concepts.
Support and Other Resources
Before you Contact HP
Be sure to have the following information available before you call HP:
Technical support registration number (if applicable)
Product serial number
Product model name and number
Product identification number
Applicable error messages
Add-on boards or hardware
Third-party hardware or software
Operating system type and revision level
CLI Command Reference
September 2014 Page 10
HP Moonshot Switch Module CLI Command Reference
HP Contact Information
For United States and worldwide contact information, see the Contact HP website (http://www.hp.com/go/
assistance).
In the United States:
To contact HP by phone, call 1-800-334-5144. For continuous quality improvement, calls may be recorded
or monitored.
If you have purchased a Care Pack (service upgrade), see the Support & Drivers website (http://
www8.hp.com/us/en/support-drivers.html). If the problem cannot be resolved at the website, call 1-800-
633-3600. For more information about Care Packs, see the HP website (http://pro-aq-
sama.houston.hp.com/services/cache/10950-0-0-225-121.html).
Documentation Feedback
HP is committed to providing documentation that meets your needs. To help us improve the documentation,
send any errors, suggestions, or comments to Documentation Feedback (mailto:[email protected]
).
Include the document title and part number, version number, or the URL when submitting your feedback.
About Switch Module Software
CLI Command Reference
September 2014 Page 11
HP Moonshot Switch Module CLI Command Reference
Section 1: About Switch Module Software
Overview
The HP Moonshot-45G Switch Module and Moonshot-180G Switch Module
software has two purposes:
Assist attached hardware in switching frames, based on Layer 2, 3, or 4 information contained in the
frames.
Provide a complete device management portfolio to the network administrator.
Scope
HP Moonshot Switch Module software encompasses both hardware and software support. The software is
partitioned to run in the following processors:
•CPU
This code runs the networking device management portfolio and controls the overall networking device
hardware. It also assists in frame forwarding, as needed and specified.
Networking device processor
This code does the majority of the packet switching, usually at wire speed.
Product Concept
Fast Ethernet and Gigabit Ethernet switching continues to evolve from high-end backbone applications to
desktop switching applications. The price of the technology continues to decline, while performance and
feature sets continue to improve. Devices that are capable of switching Layers 2, 3, and 4 are increasingly in
demand. HP Moonshot Switch Module software provides a flexible solution to these ever-increasing needs.
HP Moonshot Switch Module software includes a set of comprehensive management functions for managing
both HP Moonshot Switch Module software and the network. You can manage the HP Moonshot Switch
Module software by using one of the following two methods:
Command-Line Interface (CLI)
Simple Network Management Protocol (SNMP)
Each of the HP Moonshot Switch Module management methods enables you to configure, manage, and
control the software locally or remotely using in-band or out-of-band mechanisms. Management is standards-
based, with configuration parameters and a private MIB providing control for functions not completely
specified in the MIBs.
Using the Command-Line Interface
CLI Command Reference
September 2014 Page 12
HP Moonshot Switch Module CLI Command Reference
Section 2: Using the Command-Line Interface
The command-line interface (CLI) is a text-based way to manage and monitor the system. You can access the
CLI by using a direct serial connection or by using a remote logical connection with Telnet or SSH.
This chapter describes the CLI syntax, conventions, and modes. It contains the following sections:
“Command Syntax” on page 12
“Command Conventions” on page 13
“Common Parameter Values” on page 14
“unit/slot/port Naming Convention” on page 15
“Using the “No” Form of a Command” on page 13
“Command Modes” on page 17
“Command Completion and Abbreviation” on page 20
“CLI Error Messages” on page 20
“CLI Line-Editing Conventions” on page 21
“Using CLI Help” on page 22
Accessing the CLI” on page 23
Command Syntax
A command is one or more words that might be followed by one or more parameters. Parameters can be
required or optional values.
Some commands, such as
show network or clear vlan, do not require parameters. Other commands, such as
network parms, require that you supply a value after the command. You must type the parameter values in a
specific order, and optional parameters follow required parameters. The following example describes the
network parms command syntax:
network parms ipaddr netmask [gateway]
network parms is the command name.
ipaddr and netmask are parameters and represent required values that you must enter after you type the
command keywords.
[gateway] is an optional parameter, so you are not required to enter a value in place of the parameter.
Using the “No” Form of a Command
CLI Command Reference
September 2014 Page 13
HP Moonshot Switch Module CLI Command Reference
The CLI Command Reference lists each command by the command name and provides a brief description of
the command. Each command reference also contains the following information:
Format shows the command keywords and the required and optional parameters.
Mode identifies the command mode you must be in to access the command.
Default shows the default value, if any, of a configurable setting on the device.
The
show commands also contain a description of the information that the command shows.
Using the “No” Form of a Command
The no keyword is a specific form of an existing command and does not represent a new or distinct command.
Almost every configuration command has a
no form. In general, use the no form to reverse the action of a
command or reset a value back to the default. For example, the
no shutdown configuration command reverses
the shutdown of an interface. Use the command without the keyword
no to re-enable a disabled feature or to
enable a feature that is disabled by default. Only the configuration commands are available in the
no form.
Command Conventions
The parameters for a command might include mandatory values, optional values, or keyword choices.
Parameters are order-dependent. Table 1 describes the conventions this document uses to distinguish
between value types.
Table 1: Parameter Conventions
Symbol Example Description
[] square brackets
[value]
Indicates an optional parameter.
italic font in a
parameter
.
value or [value]
Indicates a variable value. You must replace the italicized text
and brackets with an appropriate value, which might be a
name or number.
{} curly braces
{choice1 | choice2}
Indicates that you must select a parameter from the list of
choices.
| Vertical bars
choice1 | choice2
Separates the mutually exclusive choices.
[
{}] Braces within
square brackets
[{choice1 | choice2}]
Indicates a choice within an optional element.
Common Parameter Values
CLI Command Reference
September 2014 Page 14
HP Moonshot Switch Module CLI Command Reference
Common Parameter Values
Parameter values might be names (strings) or numbers. To use spaces as part of a name parameter, enclose the
name value in double quotes. For example, the expression “System Name with Spaces” forces the system to
accept the spaces. Empty strings (““) are not valid user-defined strings. Table 2 describes common parameter
values and value formatting.
Table 2: Parameter Descriptions
Parameter Description
ipaddr This parameter is a valid IP address. Enter the IP address in a the standard dotted
decimal format, for example 192.168.2.10.
In addition to the standard format, the CLI accepts decimal, hexadecimal and octal
formats through the following input formats (where n is any valid hexadecimal, octal
or decimal number):
0xn (CLI assumes hexadecimal format.)
0n (CLI assumes octal format with leading zeros.)
n (CLI assumes decimal format.)
ipv6-address
FE80:0000:0000:0000:020F:24FF:FEBF:DBCB, or
FE80:0:0:0:20F:24FF:FEBF:DBCB, or
FE80::20F24FF:FEBF:DBCB
For additional information, refer to RFC 3513.
Interface or
unit/slot/port
Valid slot and port number separated by a forward slash. For example, 1/0/1
represents unit number 1, slot number 0, and port number 1.
Logical Interface Represents a logical slot and port number. This is applicable in the case of a port-
channel (LAG). You can use the logical unit/slot/port to configure the port-channel.
Character strings Use double quotation marks to identify character strings, for example, “System
Name with Spaces”. An empty string (“”) is not valid.
unit/slot/port Naming Convention
CLI Command Reference
September 2014 Page 15
HP Moonshot Switch Module CLI Command Reference
unit/slot/port Naming Convention
HP Moonshot Switch Module software references physical entities such as cards and ports by using a unit/
slot/port naming convention. The HP Moonshot Switch Module software also uses this convention to identify
certain logical entities, such as Port-Channel interfaces.
The unit number identifies the stack member within a stack of switches. The slot number has two uses. In the
case of physical ports, it identifies the card containing the ports. In the case of logical and CPU ports it also
identifies the type of interface or port.
The port identifies the specific physical port or logical interface being managed on a given slot.
Table 3: Type of Slots
Slot Type Description
Physical slot numbers Physical slot numbers begin with zero, and are allocated up to the maximum
number of physical slots. Internal ports are located on slot 0, and external
ports are located on slot 1. For example, the external uplink/stacking ports are
1/1/1, 1/1/2, 1/1/3, and so on.
Logical slot numbers Logical slots immediately follow physical slots and identify port-channel (LAG)
or router interfaces.
A LAG (port-channel) interface uses 3 as the slot number. By default, the first
LAG that is configured is 0/3/1.
A VLAN routing interface uses 4 as the slot number. By default, the first VLAN
configured as a VLAN routing interface is 0/4/1.
CPU slot numbers The CPU slots immediately follow the logical slots.
Table 4: Type of Ports
Port Type Description
Physical Ports The physical ports for each slot are numbered sequentially starting from one,
For example, port 1 on slot 0 (an internal port) for a stand alone (nonstacked)
switch is 1/0/1, port 2 is 1/0/2, port 3 is 1/0/3, and so on.
Logical Interfaces Port-channel or Link Aggregation Group (LAG) interfaces are logical interfaces
that are only used for bridging functions.
VLAN routing interfaces are only used for routing functions.
Loopback interfaces are logical interfaces that are always up.
CPU ports CPU ports are handled by the driver as one or more physical entities located on
physical slots.
Note: In the CLI, loopback interfaces do not use the unit/slot/port format. To specify a loopback
interface, you use the loopback ID.
CLI Output Filtering
CLI Command Reference
September 2014 Page 16
HP Moonshot Switch Module CLI Command Reference
CLI Output Filtering
Many CLI show commands display a large amount of content. This can make output difficult to parse through
to find the information of desired importance. The CLI Output Filtering feature allows you to optionally specify
arguments in
show commands to filter the CLI output to display only the desired information. The result is to
simplify the display and make it easier to find the desired information.
The main functions of the CLI Output Filtering feature are:
Pagination Control
Supports enabling/disabling paginated output for all
show CLI commands. When disabled, the output is
displayed in its entirety. When enabled, the command output is displayed page-by-page such that
content does not scroll off the terminal screen until the user presses a key to continue.
Output Filtering
Grep”-like control for modifying the displayed output to show only the user-desired content.
Filter displayed output to include only lines containing a specified string match.
Filter displayed output to exclude lines containing a specified string match.
Filter displayed output to include only lines including and following a specified string match.
Filter displayed output to include only a specified section of the content (e.g. interface 10/1) with a
configurable end-of-section delimiter.
String matching is case insensitive.
Pagination, when enabled, also applies to filtered output.
Example: The following shows an example of the extensions made to the CLI
show commands for the
Output Filtering feature.
(Routing) #show running-config ?
<cr> Press enter to execute the command.
| Output filter options.
<scriptname> Script file name for writing active configuration.
all Show all the running configuration on the switch.
(Routing) #show running-config | ?
begin Begin with the line that matches
exclude Exclude lines that matches
include Include lines that matches
section Display portion of lines
For commands for the feature, see “CLI Output Filtering Commands” on page 142.
Note: Although some HP Moonshot Switch Module show commands already support pagination, the
implementation is unique per command and not generic to all commands.
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.
Command Modes
CLI Command Reference
September 2014 Page 18
HP Moonshot Switch Module CLI Command Reference
Line Telnet
(Routing) (config-telnet)#
Contains commands to configure telnet
login/enable authentication.
AAA IAS User
Config
(Routing) (Config-IAS-User)#
Allows password configuration for a user in
the IAS database.
Mail Server Config
(Routing) (Mail-Server)#
Allows configuration of the email server.
Time Range Config
(Routing) (config-time-range)#
Allows configuration of periodic and absolute
entries in within a named time range.
Policy Map
Config
(Routing) (Config-policy-map)#
Contains the QoS Policy-Map configuration
commands.
Policy Class
Config
(Routing) (Config-policy-class-map)#
Consists of class creation, deletion, and
matching commands. The class match
commands specify Layer 2, Layer 3, and
general match criteria.
Class Map Config
(Routing) (Config-class-map)#
Contains the QoS class map configuration
commands for IPv4.
Ipv6_Class-Map
Config
(Routing) (Config-class-map)#
Contains the QoS class map configuration
commands for IPv6.
Router OSPF
Config
(Routing) (Config-router)#
Contains the OSPF configuration commands.
Router RIP Config
(Routing) (Config-router)#
Contains the RIP configuration commands.
IPv4 ACL Config
(Routing) (Config-ipv4-acl)#
Allows you to create a IPv4 ACL and configure
rules for the ACL.
IPv6 ACL Config
(Routing) (Config-ipv6-acl)#
Allows you to create a IPv4 ACL and configure
rules for the ACL.
MAC Access-list
Config
(Routing) (Config-mac-access-list)#
Allows you to create a MAC Access-List and to
enter the mode containing MAC Access-List
configuration commands.
Management ACL
Config
(Routing) (config-macal)#
Allows you to create a management ACL and
configure rules for the ACL.
TACACS Config
(Routing) (Tacacs)#
Contains commands to configure properties
for the TACACS servers.
Stack Global
Config Mode
(Routing) (Config stack)#
Allows you to access the Stack Global Config
Mode.
ARP Access-List
Config Mode
(Routing) (Config-arp-access-list)#
Contains commands to add ARP ACL rules in
an ARP Access List.
Support Mode
(Routing) (Support)#
Allows access to the support commands,
which should only be used by the
manufacturer's technical support personnel
as improper use could cause unexpected
system behavior and/or invalidate product
warranty.
Data Center
Bridging
(Routing) (config-if-dcb)#
Allows access to priority flow control (PFC)
commands for an interface.
Table 5: CLI Command Modes (Cont.)
Command Mode Prompt Mode Description
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.
Command Completion and Abbreviation
CLI Command Reference
September 2014 Page 20
HP Moonshot Switch Module CLI Command Reference
Command Completion and Abbreviation
Command completion finishes spelling the command when you type enough letters of a command to uniquely
identify the command keyword. Once you have entered enough letters, press the SPACEBAR or TAB key to
complete the word.
Command abbreviation allows you to execute a command when you have entered there are enough letters to
uniquely identify the command. You must enter all of the required keywords and parameters before you enter
the command.
CLI Error Messages
If you enter a command and the system is unable to execute it, an error message appears. Table 7 describes
the most common CLI error messages.
IPv6 Access-list Config From the Global Config mode, enter
ipv6 access-list name.
IPv4 Access-list Config From the Global Config mode, enter
ip access-list name.
MAC Access-list Config From the Global Config mode, enter
mac access-list extended name.
Management Access-list
Config
From the Global Config mode, enter
management access-list name.
TACACS Config From the Global Config mode, enter
tacacs-server host ip-addr, where ip-
addr
is the IP address of the TACACS server on your network.
Stack Global Config Mode From the Global Config mode, enter the
stack command.
ARP Access-List Config Mode From the Global Config mode, enter the
arp access-list command.
Support Mode From the Privileged EXEC mode, enter
support.
Note: The
support command is available only if the techsupport enable
command has been issued.
Data Center Bridging
From the Interface Config mode, enter
datacenter-bridging.
Table 7: CLI Error Messages
Message Text Description
% Invalid input detected at '^'
marker.
Indicates that you entered an incorrect or unavailable command. The
carat (^) shows where the invalid text is detected. This message also
appears if any of the parameters or values are not recognized.
Command not found / Incomplete
command. Use ? to list commands.
Indicates that you did not enter the required keywords or values.
Ambiguous command
Indicates that you did not enter enough letters to uniquely identify the
command.
Table 6: CLI Mode Access (Cont.)
Command Mode Access Method
  • 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
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524
  • Page 525 525
  • Page 526 526
  • Page 527 527
  • Page 528 528
  • Page 529 529
  • Page 530 530
  • Page 531 531
  • Page 532 532
  • Page 533 533
  • Page 534 534
  • Page 535 535
  • Page 536 536
  • Page 537 537
  • Page 538 538
  • Page 539 539
  • Page 540 540
  • Page 541 541
  • Page 542 542
  • Page 543 543
  • Page 544 544
  • Page 545 545
  • Page 546 546
  • Page 547 547
  • Page 548 548
  • Page 549 549
  • Page 550 550
  • Page 551 551
  • Page 552 552
  • Page 553 553
  • Page 554 554
  • Page 555 555
  • Page 556 556
  • Page 557 557
  • Page 558 558
  • Page 559 559
  • Page 560 560
  • Page 561 561
  • Page 562 562
  • Page 563 563
  • Page 564 564
  • Page 565 565
  • Page 566 566
  • Page 567 567
  • Page 568 568
  • Page 569 569
  • Page 570 570
  • Page 571 571
  • Page 572 572
  • Page 573 573
  • Page 574 574
  • Page 575 575
  • Page 576 576
  • Page 577 577
  • Page 578 578
  • Page 579 579
  • Page 580 580
  • Page 581 581
  • Page 582 582
  • Page 583 583
  • Page 584 584
  • Page 585 585
  • Page 586 586
  • Page 587 587
  • Page 588 588
  • Page 589 589
  • Page 590 590
  • Page 591 591
  • Page 592 592
  • Page 593 593
  • Page 594 594
  • Page 595 595
  • Page 596 596
  • Page 597 597
  • Page 598 598
  • Page 599 599
  • Page 600 600
  • Page 601 601
  • Page 602 602
  • Page 603 603
  • Page 604 604
  • Page 605 605
  • Page 606 606
  • Page 607 607
  • Page 608 608
  • Page 609 609
  • Page 610 610
  • Page 611 611
  • Page 612 612
  • Page 613 613
  • Page 614 614
  • Page 615 615
  • Page 616 616
  • Page 617 617
  • Page 618 618
  • Page 619 619
  • Page 620 620
  • Page 621 621
  • Page 622 622
  • Page 623 623
  • Page 624 624
  • Page 625 625
  • Page 626 626
  • Page 627 627
  • Page 628 628
  • Page 629 629
  • Page 630 630
  • Page 631 631
  • Page 632 632
  • Page 633 633
  • Page 634 634
  • Page 635 635
  • Page 636 636
  • Page 637 637
  • Page 638 638
  • Page 639 639
  • Page 640 640
  • Page 641 641
  • Page 642 642
  • Page 643 643
  • Page 644 644
  • Page 645 645
  • Page 646 646
  • Page 647 647
  • Page 648 648
  • Page 649 649
  • Page 650 650
  • Page 651 651
  • Page 652 652
  • Page 653 653
  • Page 654 654
  • Page 655 655
  • Page 656 656
  • Page 657 657
  • Page 658 658
  • Page 659 659
  • Page 660 660
  • Page 661 661
  • Page 662 662
  • Page 663 663
  • Page 664 664
  • Page 665 665
  • Page 666 666
  • Page 667 667
  • Page 668 668
  • Page 669 669
  • Page 670 670
  • Page 671 671
  • Page 672 672
  • Page 673 673
  • Page 674 674
  • Page 675 675
  • Page 676 676
  • Page 677 677
  • Page 678 678
  • Page 679 679
  • Page 680 680
  • Page 681 681
  • Page 682 682
  • Page 683 683
  • Page 684 684
  • Page 685 685
  • Page 686 686
  • Page 687 687
  • Page 688 688
  • Page 689 689
  • Page 690 690
  • Page 691 691
  • Page 692 692
  • Page 693 693
  • Page 694 694
  • Page 695 695
  • Page 696 696
  • Page 697 697
  • Page 698 698
  • Page 699 699
  • Page 700 700
  • Page 701 701
  • Page 702 702
  • Page 703 703
  • Page 704 704
  • Page 705 705
  • Page 706 706
  • Page 707 707
  • Page 708 708
  • Page 709 709
  • Page 710 710
  • Page 711 711
  • Page 712 712
  • Page 713 713
  • Page 714 714
  • Page 715 715
  • Page 716 716
  • Page 717 717
  • Page 718 718
  • Page 719 719

HP Moonshot-180G Reference guide

Category
Software
Type
Reference guide

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

Finding information in a document is now easier with AI