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
Table of Contents
About This Document.....................................................................................................................................9
Using CLI Help............................................................................................................................................... 22
Accessing the CLI ..........................................................................................................................................23
Stack Port Commands ............................................................................................................................... ...33
IP Routing Commands ............................................................................................................................... .508
DHCP and BOOTP Relay Commands ..........................................................................................................544
CLI Command Reference
September 2014Page 5
Table of ContentsHP Moonshot Switch Module CLI Command Reference
IP Helper Commands ..................................................................................................................................546
Open Shortest Path First Commands.........................................................................................................555
General OSPF Commands ....................................................................................................................555
O/S Support ................................................................................................................................................706
Table 3: Type of Slots .......................................................................................................................................15
Table 4: Type of Ports....................................................................................................................................... 15
Table 16: NIM Log Messages..........................................................................................................................686
Table 60: Linux BSP Log Message ...................................................................................................................706
Table 61: OSAPI Linux Log Messages..............................................................................................................706
CLI Command Reference
September 2014Page 8
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 2014Page 9
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-
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:docsfeedback@hp.com
Include the document title and part number, version number, or the URL when submitting your feedback.
).
CLI Command Reference
September 2014Page 10
HP Moonshot Switch Module CLI Command Reference
About Switch Module Software
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 standardsbased, with configuration parameters and a private MIB providing control for functions not completely
specified in the MIBs.
CLI Command Reference
September 2014Page 11
HP Moonshot Switch Module CLI Command Reference
Using the Command-Line Interface
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
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
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.
show network or clear vlan, do not require parameters. Other commands, such as
CLI Command Reference
September 2014Page 12
HP Moonshot Switch Module CLI Command Reference
Using the “No” Form of a Command
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
command or reset a value back to the default. For example, the
the shutdown of an interface. Use the command without the keyword
enable a feature that is disabled by default. Only the configuration commands are available in the
no form. In general, use the no form to reverse the action of a
no shutdown configuration command reverses
no to re-enable a disabled feature or to
no form.
Command Conventions
The parameters for a command might include mandatory values, optional values, or keyword choices.
Parameters are order-dependent. Tab le 1 describes the conventions this document uses to distinguish
between value types.
Table 1: Parameter Conventions
SymbolExampleDescription
[] square brackets
italic font in a
parameter
{} curly braces
.
| Vertical bars
[
{}] Braces within
square brackets
[value]
value or [value]
{choice1 | choice2}
choice1 | choice2
[{choice1 | choice2}]
Indicates an optional parameter.
Indicates a variable value. You must replace the italicized text
and brackets with an appropriate value, which might be a
name or number.
Indicates that you must select a parameter from the list of
choices.
Separates the mutually exclusive choices.
Indicates a choice within an optional element.
CLI Command Reference
September 2014Page 13
HP Moonshot Switch Module CLI Command Reference
Common Parameter Values
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. Tab le 2 describes common parameter
values and value formatting.
Table 2: Parameter Descriptions
ParameterDescription
ipaddrThis 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 InterfaceRepresents 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 stringsUse double quotation marks to identify character strings, for example, “System
Name with Spaces”. An empty string (“”) is not valid.
CLI Command Reference
September 2014Page 14
HP Moonshot Switch Module CLI Command Reference
unit/slot/port Naming Convention
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.
Table 3: Type of Slots
Slot TypeDescription
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.
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 numbersThe CPU slots immediately follow the logical slots.
The port identifies the specific physical port or logical interface being managed on a given slot.
Table 4: Type of Ports
Port TypeDescription
Physical PortsThe 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 InterfacesPort-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 portsCPU 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 Command Reference
September 2014Page 15
HP Moonshot Switch Module CLI Command Reference
CLI Output Filtering
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
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
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.
show commands to filter the CLI output to display only the desired information. The result is to
show CLI commands. When disabled, the output is
Note: Although some HP Moonshot Switch Module show commands already support pagination, the
implementation is unique per command and not generic to all commands.
• 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.
CLI Command Reference
September 2014Page 16
HP Moonshot Switch Module CLI Command Reference
Command Modes
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.
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.
The command prompt changes in each command mode to help you identify the current mode. Tab le 5
describes the command modes and the prompts visible in that mode.
Table 5: CLI Command Modes
Command ModePromptMode 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
• Link aggregation group (LAG, also known
as port-channel)
• VLAN routing interface
• Loopback interface
(Routing) (Interface vlan vlan-id)#
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.
CLI Command Reference
September 2014Page 17
HP Moonshot Switch Module CLI Command Reference
Table 5: CLI Command Modes (Cont.)
Command ModePromptMode Description
Line Telnet
(Routing) (config-telnet)#
Contains commands to configure telnet
login/enable authentication.
AAA IAS User
Config
Mail Server Config
Tim e Range Config
(Routing) (Config-IAS-User)#
(Routing) (Mail-Server)#
(Routing) (config-time-range)#
Allows password configuration for a user in
the IAS database.
Allows configuration of the email server.
Allows configuration of periodic and absolute
entries in within a named time range.
Policy Map
Config
Policy Class
Config
(Routing) (Config-policy-map)#
(Routing) (Config-policy-class-map)#
Contains the QoS Policy-Map configuration
commands.
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
Router OSPF
(Routing) (Config-class-map)#
(Routing) (Config-router)#
Contains the QoS class map configuration
commands for IPv6.
Contains the OSPF configuration commands.
Config
Router RIP Config
IPv4 ACL Config
(Routing) (Config-router)#
(Routing) (Config-ipv4-acl)#
Contains the RIP configuration commands.
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
TACACS Config
(Routing) (config-macal)#
(Routing) (Tacacs)#
Allows you to create a management ACL and
configure rules for the ACL.
Contains commands to configure properties
for the TACACS servers.
Stack Global
Config Mode
ARP Access-List
Config Mode
Support Mode
(Routing) (Config stack)#
(Routing) (Config-arp-access-list)#
(Routing) (Support)#
Allows you to access the Stack Global Config
Mode.
Contains commands to add ARP ACL rules in
an ARP Access List.
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.
Command Modes
CLI Command Reference
September 2014Page 18
HP Moonshot Switch Module CLI Command Reference
Command Modes
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,
logout.
enter
Table 6: CLI Mode Access
Command ModeAccess Method
User EXECThis is the first level of access.
Privileged EXECFrom the User EXEC mode, enter
Global ConfigFrom the Privileged EXEC mode, enter
VLAN ConfigFrom the Privileged EXEC mode, enter
enable.
configure.
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 ConsoleFrom the Global Config mode, enter
Line SSHFrom the Global Config mode, enter
Line TelnetFrom the Global Config mode, enter
AAA IAS User Config
Mail Server Config
Tim e Range Config
Policy-Map
From the Global Config mode, enter
From the Global Config mode, enter
From the Global Config mode, enter
From the Global Config mode, enter policy-map.
line console.
line ssh.
line telnet.
aaa ias-user username name.
mail-server ip_address
time-range name
Config
Policy-Class-Map ConfigFrom the Policy Map mode enter
Class-Map
Config
From the Global Config mode, enter
the named class has already been created, enter class-map class-name. See
class.
class-map match-all class-name ipv4. If
“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 ConfigFrom the Global Config mode, enter
Router RIP
From the Global Config mode, enter
router ospf.
router rip.
Config
CLI Command Reference
September 2014Page 19
HP Moonshot Switch Module CLI Command Reference
Table 6: CLI Mode Access (Cont.)
Command ModeAccess Method
Command Completion and Abbreviation
IPv6 Access-list ConfigFrom the Global Config mode, enter
IPv4 Access-list ConfigFrom the Global Config mode, enter
MAC Access-list ConfigFrom the Global Config mode, enter
Management Access-list
From the Global Config mode, enter
ipv6 access-list name.
ip access-list name.
mac access-list extended name.
management access-list name.
Config
TACACS ConfigFrom the Global Config mode, enter
is the IP address of the TACACS server on your network.
addr
Stack Global Config ModeFrom the Global Config mode, enter the
ARP Access-List Config Mode From the Global Config mode, enter the
Support ModeFrom the Privileged EXEC mode, enter
Note: The
support command is available only if the techsupport enable
tacacs-server host ip-addr, where ip-
stack command.
arp access-list command.
support.
command has been issued.
Data Center Bridging
From the Interface Config mode, enter
datacenter-bridging.
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. Tab le 7 describes
the most common CLI error messages.
Table 7: CLI Error Messages
Message TextDescription
% Invalid input detected at '^'
marker.
Command not found / Incomplete
command. Use ? to list commands.
Ambiguous command
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.
Indicates that you did not enter the required keywords or values.
Indicates that you did not enter enough letters to uniquely identify the
command.
CLI Command Reference
September 2014Page 20
HP Moonshot Switch Module CLI Command Reference
CLI Line-Editing Conventions
CLI Line-Editing Conventions
Ta bl e 8 describes the key combinations you can use to edit commands or increase the speed of command
entry. You can access this list from the CLI by entering
Table 8: CLI Editing Conventions
Key SequenceDescription
DEL or BackspaceDelete previous character.
Ctrl-AGo to beginning of line.
Ctrl-EGo to end of line.
Ctrl-FGo forward one character.
Ctrl-BGo backward one character.
Ctrl-DDelete current character.
Ctrl-U, XDelete to beginning of line.
Ctrl-KDelete to end of line.
Ctrl-WDelete previous word.
Ctrl-TTranspose previous character.
Ctrl-PGo to previous line in history buffer.
Ctrl-RRewrites or pastes the line.
Ctrl-NGo to next line in history buffer.
Ctrl-YPrints last deleted character.
Ctrl-QEnables serial flow.
Ctrl-SDisables serial flow.
Ctrl-ZReturn to root command prompt.
Tab, <SPACE>Command-line completion.
ExitGo to next lower command prompt.
?List available commands, keywords, or parameters.
help from the User or Privileged EXEC modes.
CLI Command Reference
September 2014Page 21
HP Moonshot Switch Module CLI Command Reference
Using CLI Help
Using CLI Help
Enter a question mark (?) at the command prompt to display the commands available in the current mode.
(Routing) >?
enable Enter into user privilege mode.
help Display help for various special keys.
logout Exit this session. Any unsaved changes are lost.
ping Send ICMP echo packets to a specified IP address.
quit Exit this session. Any unsaved changes are lost.
show Display Switch Options and Settings.
telnet Telnet to a remote host.
Enter a question mark (?) after each word you enter to display available command keywords or parameters.
(Routing) #network ?
ipv6 Configure IPv6 parameters for system network.
mac-address Configure MAC Address.
mac-type Select the locally administered or burnedin MAC
address.
mgmt_vlan Configure the Management VLAN ID of the switch.
parms Configure Network Parameters of the device.
protocol Select DHCP, BootP, or None as the network config
protocol.
If the help output shows a parameter in angle brackets, you must replace the parameter with a value.
(Routing) #network parms ?
<ipaddr> Enter the IP Address.
none Reset IP address and gateway on management interface
If there are no additional command keywords or parameters, or if additional parameters are optional, the
following message appears in the output:
<cr> Press Enter to execute the command
You can also enter a question mark (?) after typing one or more characters of a word to list the available
command or parameters that begin with the letters, as shown in the following example:
You can access the CLI by using a direct console connection or by using a telnet or SSH connection from a
remote management host.
For the initial connection, you must use a direct connection to the console port. You cannot access the system
remotely until the system has an IP address, subnet mask, and default gateway. You can set the network
configuration information manually, or you can configure the system to accept these settings from a BOOTP or
DHCP server on your network. For more information, see “Network Interface Commands” on page 43.
For step-by-step instructions about how to connect to the switch management interface, see the HP Moonshot
Switch Module Administrator’s Guide.
CLI Command Reference
September 2014Page 23
HP Moonshot Switch Module CLI Command Reference
Stacking Commands
Section 3: Stacking Commands
This chapter describes the stacking commands available in the HP Moonshot Switch Module CLI.
The Stacking Commands chapter includes the following sections:
• “Switch Stacking” on page 24
• “Stack Port Commands” on page 33
• “Nonstop Forwarding Commands” on page 37
Note: The Primary Management Unit is the unit that controls the stack.
Switch Stacking
This section describes the commands you use to configure switch stacks.
stack
This command sets the mode to Stack Global Config.
Format
ModeGlobal Config
stack
member
This command configures a switch. The unit is the switch identifier of the switch to be added/removed from
the stack. The
the switch being preconfigured. The switch index is a 32-bit integer. This command is executed on the Primary
Management Unit.
Format
ModeStack Global Config
switchindexis the index into the database of the supported switch types, indicating the type of
member unit switchindex
Note: Switch index can be obtained by executing the show supported switchtype command in User
EXEC mode.
CLI Command Reference
September 2014Page 24
HP Moonshot Switch Module CLI Command Reference
Switch Stacking
no member
This command removes a switch from the stack. The unit is the switch identifier of the switch to be removed
from the stack. This command is executed on the Primary Management Unit.
Format
no member unit
ModeStack Global Config
switch priority
This command configures the ability of a switch to become the Primary Management Unit. The unit is the
switch identifier. The
switch over another. The range for priority
value is the preference parameter that allows the user to specify, priority of one backup
is 0 to 15. The switch with the highest priority value will be chosen
to become the Primary Management Unit if the active Primary Management Unit fails. Setting the value to 0
prevents the unit from being able to become the Management Unit. The switch priority defaults to the
hardware management preference value 1. Switches that do not have the hardware capability to become the
Primary Management Unit are not eligible for management.
Defaultenabled
Format
switch unit priority value
ModeGlobal Config
switch renumber
This command changes the switch identifier for a switch in the stack. The oldunit is the current switch
identifier on the switch whose identifier is to be changed. The
identifier. Upon execution, the switch will be configured with the configuration information for the new switch,
if any. The old switch configuration information will be retained, however the old switch will be operationally
unplugged. This command is executed on the Primary Management Unit. After issuing this command, you are
prompted to reload the unit that is being renumbered. The renumbering will not take effect until the unit is
reloaded.
newunit is the updated value of the switch
Note: If the management unit is renumbered, then the running configuration is no longer applied (i.e.
the stack acts as if the configuration had been cleared).
Format
switch oldunit renumber newunit
ModeGlobal Config
CLI Command Reference
September 2014Page 25
HP Moonshot Switch Module CLI Command Reference
Switch Stacking
movemanagement
This command moves the Primary Management Unit functionality from one switch to another. The fromunit
is the switch identifier on the current Primary Management Unit. The tounit is the switch identifier on the new
Primary Management Unit. Upon execution, the entire stack (including all interfaces in the stack) is
unconfigured and reconfigured with the configuration on the new Primary Management Unit. After the reload
is complete, all stack management capability must be performed on the new Primary Management Unit. To
preserve the current configuration across a stack move, execute the
nvram:startup-config
(in Privileged EXEC) command before performing the stack move. A stack move causes
all routes and layer 2 addresses to be lost. This command is executed on the Primary Management Unit. The
system prompts you to confirm the management move.
copy system:running-config
Format
movemanagement fromunit tounit
ModeStack Global Config
standby
Use this command to configure a unit as a Standby Management Unit (STBY).
Note: The Standby Management Unit cannot be the current Management Unit. The Standby unit
should be a management-capable unit.
Format
ModeStack Global Config
ParameterDescription
Standby Management Unit NumberIndicates the unit number which is to be the Standby Management
no standby
standby unit number
Unit. unit number must be a valid unit number.
The no form of this command allows the application to run the auto Standby Management Unit logic.
Format
no standby
ModeStack Global Config
CLI Command Reference
September 2014Page 26
HP Moonshot Switch Module CLI Command Reference
Switch Stacking
slot
This command configures a slot in the system. The unit/slot is the slot identifier of the slot. The cardindex is
the index into the database of the supported card types, indicating the type of the card being preconfigured in
the specified slot. The card index is a 32-bit integer. If a card is currently present in the slot that is unconfigured,
the configured information will be deleted and the slot will be re-configured with default information for the
card.
Format
ModeGlobal Config
Note: Card index can be obtained by executing show supported cardtype command in User EXEC
mode.
no slot
This command removes configured information from an existing slot in the system.
slot unit/slot cardindex
Format
no slot unit/slot cardindex
ModeGlobal Config
Note: Card index can be obtained by executing show supported cardtype command in User EXEC
mode.
set slot disable
This command configures the administrative mode of the slot(s). If you specify [all], the command is applied to
all slots, otherwise the command is applied to the slot identified by
If a card or other module is present in the slot, this administrative mode will effectively be applied to the
contents of the slot. If the slot is empty, this administrative mode will be applied to any module that is inserted
into the slot. If a card is disabled, all the ports on the device are operationally disabled and shown as
“unplugged” on management screens.
Format
set slot disable [unit/slot] | all]
ModeGlobal Config
unit/slot.
CLI Command Reference
September 2014Page 27
HP Moonshot Switch Module CLI Command Reference
Switch Stacking
no set slot disable
This command unconfigures the administrative mode of the slot(s). If you specify all, the command removes
the configuration from all slots, otherwise the configuration is removed from the slot identified by
If a card or other module is present in the slot, this administrative mode removes the configuration from the
contents of the slot. If the slot is empty, this administrative mode removes the configuration from any module
inserted into the slot. If a card is disabled, all the ports on the device are operationally disabled and shown as
“unplugged” on management screens.
unit/slot.
Format
no set slot disable [unit/slot] | all]
ModeGlobal Config
set slot power
This command configures the power mode of the slot(s) and allows power to be supplied to a card located in
the slot. If you specify
identified by
unit/slot.
Use this command when installing or removing cards. If a card or other module is present in this slot, the power
mode is applied to the contents of the slot. If the slot is empty, the power mode is applied to any card inserted
into the slot.
Format
set slot power [unit/slot] | all]
ModeGlobal Config
no set slot power
This command unconfigures the power mode of the slot(s) and prohibits power from being supplied to a card
located in the slot. If you specify
prohibits power to the slot identified by
all, the command is applied to all slots, otherwise the command is applied to the slot
all, the command prohibits power to all slots, otherwise the command
unit/slot.
Use this command when installing or removing cards. If a card or other module is present in this slot, power is
prohibited to the contents of the slot. If the slot is empty, power is prohibited to any card inserted into the slot.
Format
no set slot power [unit/slot] | all]
ModeGlobal Config
reload (Stack)
This command resets the entire stack or the identified unit. The unit is the switch identifier. The system
prompts you to confirm that you want to reset the switch.
Format
ModePrivileged EXEC
September 2014Page 28
reload [unit]
CLI Command Reference
HP Moonshot Switch Module CLI Command Reference
show slot
This command displays information about all the slots in the system or for a specific slot.
Format
ModeUser EXEC
TermDefinition
show slot [unit/slot]
Switch Stacking
SlotThe slot identifier in a
unit/slot format.
StatusThe slot is empty, full, or has encountered an error
Admin StateThe slot administrative mode is enabled or disabled.
Power StateThe slot power mode is enabled or disabled.
Configured Card
Model Identifier
The model identifier of the card preconfigured in the slot. Model Identifier is a 32-character
field used to identify a card.
PluggableCards are pluggable or non-pluggable in the slot.
Power DownIndicates whether the slot can be powered down.
If you supply a value for
unit/slot, the following information appears:
TermDefinition
SlotThe slot identifier in a
unit/slot format.
Slot StatusThe slot is empty, full, or has encountered an error
Admin StateThe slot administrative mode is enabled or disabled.
Power StateThe slot power mode is enabled or disabled.
Inserted Card
Model Identifier
Inserted Card
The model identifier of the card inserted in the slot. Model Identifier is a 32-character field
used to identify a card. This field is displayed only if the slot is full.
The card description. This field is displayed only if the slot is full.
Description
Configured Card
Model Identifier
Configured Card
The model identifier of the card preconfigured in the slot. Model Identifier is a 32-character
field used to identify a card.
A description of the card configured for the slot.
Description
PluggableCards are pluggable or non-pluggable in the slot.
Power DownIndicates whether the slot can be powered down.
CLI Command Reference
September 2014Page 29
HP Moonshot Switch Module CLI Command Reference
Switch Stacking
show supported cardtype
This commands displays information about all card types or specific card types supported in the system.
Format
show supported cardtype [cardindex]
ModeUser EXEC
If you do not supply a value for
cardindex, the following output appears:
TermDefinition
Card Index (CID)The index into the database of the supported card types. This index is used when
preconfiguring a slot.
Card Model
The model identifier for the supported card type.
Identifier
If you supply a value for
cardindex, the following output appears:
TermDefinition
Card TypeThe 32-bit numeric card type for the supported card.
Model IdentifierThe model identifier for the supported card type.
Card Description The description for the supported card type.
show switch
This command displays switch status information about all units in the stack or a single unit when you specify
the unit value.
Format
show switch [unit]
ModePrivileged EXEC
TermDefinition
SwitchThe unit identifier assigned to the switch.
When you do not specify a value for
unit, the following information appears:
TermDefinition
Management
Switch
Indicates whether the switch is the Primary Management Unit, a stack member, a
configured standby switch, an operational standby switch, or the status is unassigned.
Standby StatusIndicates whether the switch a configured or operational standby switch.
Preconfigured
Model Identifier
The model identifier of a preconfigured switch ready to join the stack. The Model Identifier
is a 32-character field assigned by the device manufacturer to identify the device.
CLI Command Reference
September 2014Page 30
Loading...
+ 689 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.