HP PROLIANT BL P-CLASS GBE User Manual

HP ProLiant BL p-Class GbE Interconnect
Switch Command Line Interface
Reference Guide
February 2003 (First Edition)
Part Number 322604-001
© 2003 Hewlett-Packard Development Company, L.P.
Microsoft®, Windows®, and Windows NT® are U.S. registered trademarks of Microsoft Corporation.
Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information in this document is provided “as is” without warranty of any kind and is subject to change without notice. The warranties for HP products are set forth in the express limited warranty statements accompanying such products. Nothing herein should be construed as constituting an additional warranty.
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.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
February 2003 (First Edition) Part Number 322604-001
HP CONFIDENTIAL Codename: DeLorean Part Number: 322604-001 Last Saved On: 2/3/03 11:16 AM

Contents

About This Guide
Technician Notes..........................................................................................................................................ix
Where to Go for Additional Help..................................................................................................................x
Telephone Numbers................................................................................................................................x
Chapter 1
Overview
Introduction ............................................................................................................................................... 1-1
Additional References ............................................................................................................................... 1-1
Before You Begin...................................................................................................................................... 1-1
Connecting to the GbE Interconnect Switches.......................................................................................... 1-2
Logging On to the GbE Interconnect Switch ............................................................................................ 1-2
Moving Between the Console Management Interfaces............................................................................. 1-3
Setting the Default Interface ............................................................................................................... 1-4
Displaying the Default Interface......................................................................................................... 1-4
Using the CLI ............................................................................................................................................ 1-4
Understanding Command Syntax Symbols ........................................................................................ 1-4
Understanding Common Parameter Definitions................................................................................. 1-6
Using Command Line Editing Keys ................................................................................................... 1-7
Executing a Command........................................................................................................................ 1-8
Using Command Completion ............................................................................................................. 1-9
Displaying Command History .......................................................................................................... 1-10
Customizing the Command Prompt..................................................................................................1-11
Clearing the CLI Screen.................................................................................................................... 1-11
Paging of Data Output ...................................................................................................................... 1-12
Configuring the GbE Interconnect Switch .............................................................................................. 1-12
Chapter 2
Configuring the GbE Interconnect Switch using the Command Line Interface
Overview ................................................................................................................................................... 2-1
Saving Changes ......................................................................................................................................... 2-1
Managing User Accounts .......................................................................................................................... 2-2
Adding a User Account....................................................................................................................... 2-3
Deleting a User Account..................................................................................................................... 2-4
Displaying User Account Information................................................................................................ 2-4
Updating User Account Information .................................................................................................. 2-4
Configuring Remote Management IP Interface Settings........................................................................... 2-5
Setting the Remote Management IP Interface Settings ...................................................................... 2-6
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide iii
Contents
Displaying Remote Management Interface Settings ...........................................................................2-8
Deleting the Secure IP Addresses........................................................................................................2-8
Configuring Basic GbE Interconnect Switch Information.........................................................................2-9
Setting System Name, Location, and Contact Information ................................................................. 2-9
Displaying GbE Interconnect Switch Information ..............................................................................2-9
Configuring Auto-Logout Timer .............................................................................................................2-13
Setting the Auto-Logout Time...........................................................................................................2-13
Displaying Auto-Logout Timer Settings ...........................................................................................2-14
Configuring MAC Address Aging Timer ................................................................................................2-14
Setting the MAC Address Age .......................................................................................................... 2-15
Displaying MAC Address Aging Timer Information........................................................................2-15
Clearing MAC Address Monitoring Table........................................................................................2-17
Configuring IGMP Snooping...................................................................................................................2-18
Enabling IGMP Snooping .................................................................................................................2-19
Disabling IGMP Snooping ................................................................................................................2-20
Setting IGMP Filter Mode for Processing Multicast Packets............................................................2-20
Adding IGMP Snooping Settings for a VLAN .................................................................................2-21
Modifying IGMP Settings for a VLAN.............................................................................................2-22
Deleting IGMP Snooping Settings for a VLAN................................................................................2-23
Displaying IGMP Snooping Settings ................................................................................................2-23
Configuring Class of Service, Default Port Priority, and Traffic Class...................................................2-25
Setting Class of Service, Default Port Priority, and Traffic Class.....................................................2-25
Displaying CoS Queue Information ..................................................................................................2-27
Configuring Port Trunking ......................................................................................................................2-28
Considerations when Creating a Port Trunking Group .....................................................................2-29
Creating a Port Trunk Group.............................................................................................................2-30
Adding a Port to an Existing Trunk...................................................................................................2-30
Deleting a Trunk Group or a Port from a Trunk Group ....................................................................2-31
Enabling a Trunk Group....................................................................................................................2-31
Disabling a Trunk Group................................................................................................................... 2-31
Clearing Trunk Utilization Counters .................................................................................................2-31
Configuring the Trunk Load Sharing Algorithm Options................................................................. 2-32
Displaying Trunk Load-Sharing Algorithm ......................................................................................2-32
Configuring GVRP ..................................................................................................................................2-33
Enabling GVRP Globally or on a Per Port Basis ..............................................................................2-34
Disabling GVRP Globally or on a Per Port Basis .............................................................................2-34
Displaying GVRP Settings................................................................................................................ 2-35
Configuring Telnet and Web Access Settings .........................................................................................2-35
Enabling Telnet Access .....................................................................................................................2-35
Disabling Telnet Access.................................................................................................................... 2-36
Displaying Telnet Access Settings ....................................................................................................2-36
Enabling Web Access........................................................................................................................ 2-36
Disabling Web Access.......................................................................................................................2-36
Displaying Web Access Settings....................................................................................................... 2-37
Configuring Backpressure Flow Control .................................................................................................2-37
Enabling Backpressure Flow Control................................................................................................2-37
Disabling Backpressure Flow Control...............................................................................................2-37
Displaying Backpressure Flow Control Settings............................................................................... 2-38
Configuring GbE Interconnect Switch Date and Time ............................................................................ 2-38
iv HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Contents
Setting Date and Time Parameters Manually ................................................................................... 2-39
Displaying Time Parameters............................................................................................................. 2-41
Enabling SNTP ................................................................................................................................. 2-41
Setting SNTP Parameters.................................................................................................................. 2-42
Displaying SNTP Parameters ........................................................................................................... 2-42
Disabling SNTP ................................................................................................................................ 2-43
Configuring Port Settings........................................................................................................................ 2-43
Speed/Duplex Settings...................................................................................................................... 2-43
Port Security Settings........................................................................................................................ 2-44
Setting Port Parameters..................................................................................................................... 2-45
Enabling Ports on a Per Port Basis ................................................................................................... 2-46
Disabling Ports or Port Security on a Per Port Basis ........................................................................ 2-46
Clearing Current Port Statistics ........................................................................................................ 2-46
Displaying Current Port Settings and Port Names............................................................................ 2-47
Configuring Bandwidth........................................................................................................................... 2-49
Adding and Configuring Restart Port Bandwidth Units ................................................................... 2-49
Deleting Ports from the Ingress and Egress Bandwidth Tables........................................................ 2-50
Modifying Ingress and Egress Bandwidth Parameters ..................................................................... 2-50
Displaying Current and Restart Port Bandwidth Settings................................................................. 2-51
Configuring Spanning Tree Protocol....................................................................................................... 2-51
Enabling STP .................................................................................................................................... 2-53
Disabling STP ................................................................................................................................... 2-54
Setting Global and Per Port STP Parameters.................................................................................... 2-54
Displaying STP Bridging and Per Port Settings ............................................................................... 2-57
Configuring Static (Destination Address) Filtering Table ...................................................................... 2-58
Adding Unicast Filter Actions .......................................................................................................... 2-59
Modifying Unicast Filter Actions ..................................................................................................... 2-60
Deleting the Unicast Filter Actions................................................................................................... 2-61
Displaying Unicast Filter Actions..................................................................................................... 2-61
Adding Multicast Filter Actions ....................................................................................................... 2-62
Modifying Multicast Filter Actions .................................................................................................. 2-62
Deleting Multicast Filter Actions...................................................................................................... 2-63
Displaying Multicast Filter Settings for a VLAN............................................................................. 2-63
Configuring VLANs................................................................................................................................ 2-64
Default VLAN .................................................................................................................................. 2-65
Creating an 802.1Q Static VLAN..................................................................................................... 2-66
Adding a Port to an Existing VLAN................................................................................................. 2-67
Deleting a VLAN or a Port from an Existing VLAN ....................................................................... 2-68
Modifying the Per Port VLAN Settings or VLAN Name................................................................. 2-69
Setting the PVID for a Port............................................................................................................... 2-70
Displaying VLAN Settings and Status .............................................................................................2-71
Enabling Ingress Filtering on a Per Port Basis ................................................................................. 2-72
Disabling Ingress Filtering on a Per Port Basis ................................................................................ 2-72
Displaying Ingress Filtering Information.......................................................................................... 2-73
Configuring Port Mirroring ..................................................................................................................... 2-73
Enabling Mirroring on a Port............................................................................................................ 2-74
Disabling Mirroring on a Port........................................................................................................... 2-74
Displaying Port Mirroring Status...................................................................................................... 2-75
Configuring Thresholds for Broadcast, Multicast, DA-Unknown Storm Prevention or Monitoring...... 2-75
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide v
Contents
Enabling Broadcast, Multicast, or DA-Unknown Packet Storm Monitoring....................................2-76
Disabling Monitoring Broadcast, Multicast, DA-Unknown Storm Monitoring................................2-76
Configuring Storm Threshold in Packets Per Second .......................................................................2-76
Displaying Broadcast, Multicast, DA-Unknown Storm Current Settings.........................................2-76
Configuring Priority MAC Address.........................................................................................................2-77
Adding Priority Level for a MAC Address .......................................................................................2-77
Deleting Priority Level for a MAC Address .....................................................................................2-78
Modifying Priority Level for a MAC Address ..................................................................................2-78
Displaying Current Priority Level for a MAC Address ....................................................................2-79
Configuring GbE Interconnect Switch Serial Port................................................................................... 2-79
Configuring the GbE Interconnect Switch Serial Port Settings ........................................................2-80
Displaying Current GbE Interconnect Switch Serial Interface Settings............................................ 2-81
Configuring the History Log.................................................................................................................... 2-81
Displaying the History Log ...............................................................................................................2-82
Clearing the History Log................................................................................................................... 2-83
Configuring SNMP/RMON Manager...................................................................................................... 2-83
Adding SNMP Management Interface Community Strings..............................................................2-84
Deleting SNMP Management Interface Community Strings ............................................................2-86
Displaying Current SNMP Management Interface Settings..............................................................2-86
Using System Utilities .............................................................................................................................2-87
Setting TFTP ..................................................................................................................................... 2-87
Initiating a TFTP Download for Firmware or Configuration File.....................................................2-88
Initiating a TFTP Upload for Log File or Configuration File ...........................................................2-89
Displaying TFTP Parameters ............................................................................................................2-90
Performing a Ping Test......................................................................................................................2-91
Rebooting the GbE Interconnect Switch..................................................................................................2-91
Logging Out............................................................................................................................................. 2-91
Appendix A
Commands
Introduction............................................................................................................................................... A-1
Using the Command Line Interface .......................................................................................................... A-1
Saving Changes......................................................................................................................................... A-1
Managing User Accounts.......................................................................................................................... A-2
Configuring Remote Management IP Interface Settings ..........................................................................A-2
Configuring Basic GbE Interconnect Switch Information........................................................................ A-3
Configuring Auto-Logout Timer ..............................................................................................................A-3
Configuring MAC-Address Aging Timer.................................................................................................A-4
Configuring IGMP Snooping.................................................................................................................... A-5
Configuring Class of Service, Default Port Priority, and Traffic Class.................................................... A-6
Configuring Port Trunking ....................................................................................................................... A-7
Configuring GVRP ...................................................................................................................................A-8
Configuring Telnet and Web Access Settings ..........................................................................................A-8
Configuring Backpressure Flow Control ..................................................................................................A-8
Configuring GbE Interconnect Switch Date and Time ............................................................................. A-9
Enabling Simple Network Time Protocol (SNTP)..................................................................................A-10
Configuring Port Settings .......................................................................................................................A-11
Configuring Bandwidth ..........................................................................................................................A-12
Configuring Spanning Tree Protocol ......................................................................................................A-13
vi HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Configuring Static (Destination Address) Filtering Table ..................................................................... A-14
Configuring VLANs............................................................................................................................... A-15
Configuring Port Mirroring .................................................................................................................... A-16
Configuring Thresholds for Broadcast, Multicast, Unknown Storm Prevention or Monitoring............ A-17
Configuring Priority MAC Address ....................................................................................................... A-17
Configuring GbE Interconnect Switch Serial Port .................................................................................A-18
Configuring the History Log .................................................................................................................. A-18
Configuring SNMP Manager ................................................................................................................. A-19
Using System Utilities............................................................................................................................ A-20
Rebooting the GbE Interconnect Switch ................................................................................................ A-20
Logging Out ........................................................................................................................................... A-20
Index
Contents
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide vii
This guide provides reference for configuring the GbE Interconnect Switch through the command line interface (CLI).
WARNING: To reduce the risk of personal injury from electric shock and hazardous energy levels, only authorized service technicians should attempt to repair this equipment. Improper repairs can create conditions that are hazardous.

Technician Notes

WARNING: Only authorized technicians trained by HP should attempt to repair this equipment. All troubleshooting and repair procedures are detailed to allow only subassembly/module-level repair. Because of the complexity of the individual boards and subassemblies, no one should attempt to make repairs at the component level or to make modifications to any printed wiring board. Improper repairs can create a safety hazard.
WARNING: To reduce the risk of personal injury from electric shock and hazardous energy levels, do not exceed the level of repairs specified in these procedures. Because of the complexity of the individual boards and subassemblies, do not attempt to make repairs at the component level or to make modifications to any printed wiring board. Improper repairs can create conditions that are hazardous.
WARNING: To reduce the risk of electric shock or damage to the equipment:
Disconnect power from the system by unplugging all power cords from the power supplies.
Do not disable the power cord grounding plug. The grounding plug is an important safety feature.

About This Guide

Plug the power cord into a grounded (earthed) electrical outlet that is easily accessible at all times.
CAUTION: To properly ventilate the system, you must provide at least 7.6 cm (3.0 in.) of
clearance at the front and back of the server.
CAUTION: The computer is designed to be electrically grounded (earthed). To ensure proper operation, plug the AC power cord into a properly grounded AC outlet only.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide ix
About This Guide
NOTE: Any indications of component replacement or printed wiring board modifications may void any warranty.

Where to Go for Additional Help

In addition to this guide, the following information sources are available:
HP ProLiant BL p-Class GbE Interconnect Switch User Guide
HP ProLiant BL p-Class GbE Interconnect Switch Menu-driven Interface Reference
Guide
HP ProLiant BL p-Class GbE Interconnect Switch Web-based Interface Reference Guide
Service Quick Reference Guide
Service training guides
Service advisories and bulletins
QuickFind information services
Insight Manager software

Telephone Numbers

For the name of your nearest HP authorized reseller:
In the United States, call 1-800-345-1518.
In Canada, call 1-800-263-5868.
For HP technical support:
In the United States and Canada, call 1-800-652-6672.
Outside the United States and Canada, refer to
www.hp.com
x HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide

Introduction

The ProLiant BL p-Class GbE Interconnect Switch provides provides command line, menu­driven, Simple Network Management Protocol (SNMP), and Web-based management interfaces. The command line interface (CLI) and menu-driven interface allow you to set up and control the GbE Interconnect Switch using either the serial or Ethernet ports on the switch. This guide discusses how to use the CLI to set up and manage the GbE Interconnect Switch.
The command line interface provides standard scripting capabilities as well as enhanced systems management, monitoring, and deployment. The CLI can be accessed remotely via Telnet, or locally via the RS-232 console and SLIP sessions.
For quick reference, Appendix A provides a comprehensive listing of the commands supported by the GbE Interconnect Switch CLI.
1
Overview

Additional References

Additional information about installing and configuring the GbE Interconnect Switch is available in the following guides, which are located on the ProLiant BL p-Class GbE Interconnect Switch Management System Utilities and User Documentation CD:
HP ProLiant BL p-Class GbE Interconnect Switch User Guide
HP ProLiant BL p-Class GbE Interconnect Switch Menu-driven Interface Reference Guide
HP ProLiant BL p-Class GbE Interconnect Switch Web-based Interface Reference Guide

Before You Begin

The ProLiant BL p-Class GbE Interconnect Switch supports a wide array of functions and provides flexibility and increased network performance. Some planning is required to arrive at a deployment strategy that maximizes the potential of the interconnect switch. Refer to the “Planning the GbE Interconnect Switch Configuration” section in HP ProLiant p-Class GbE Interconnect Switch User Guide for items to keep in mind as you configure your GbE Interconnect Switches.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 1-1
Overview

Connecting to the GbE Interconnect Switches

You can use the command line interface by connecting the interconnect switch to a VT100-compatible terminal or a computer running an ordinary terminal emulator program (for example, the terminal program included with the Windows® operating system) using an RS-232C serial cable.
Set your terminal parameters to the following settings:
VT-100/ANSI compatible
9600 baud
8 data bits
No parity
One stop bit
No flow control
After you have set an IP address for each GbE Interconnect Switch, you can use a Telnet program (in VT100-compatible terminal mode) to access and control the switch. All of the screens are identical, whether they are accessed from the serial port or from a Telnet interface.

Logging On to the GbE Interconnect Switch

When you log on to a GbE Interconnect Switch, the following screen is displayed.
IMPORTANT: The GbE Interconnect Switch does not have any initial user names or passwords set. HP recommends that after logging on, you create at least one Root-level user as the switch administrator. (Refer to Table 2-1 in Chapter 2 for an explanation of user privileges.) If you forget your password after it has been set up, call HP Customer Support to get a MAC-based backdoor password.
1-2 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Overview
To log on for the first time:
1. Leave the Username field blank and press the Tab key.
2. Leave the Password field blank and press the Enter key. The main menu for the GbE
Interconnect Switch is displayed.
NOTE: After user accounts are created, subsequent users will type their user name and password, then press the Enter key to gain access to the switch console.
The main menu displays the major categories for switch management.

Moving Between the Console Management Interfaces

The menu-driven interface is the factory default setting. To access the command line interface (CLI) from the menu-driven interface, highlight the Switch to CLI Mode option on the main menu and then press the Enter key. The command line prompt for the CLI will display.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 1-3
Overview
When you are in a CLI session, you can access the menu-driven interface by executing the following command at the command prompt:
Command Description
menu
Moving between the CLI and menu-driven interface does not change the default interface. This means that if the default is the menu-driven interface and user 1 connects and switches to the CLI, when user 2 connects, they see the menu-driven interface when they log on.

Setting the Default Interface

Use the following command to change the interface default. This command takes effect immediately for the next log in. It will be lost, however, on reboot. To save the default permanently to non-volatile RAM (NVRAM), type the cfg save command. Refer to the “Saving Changes” section later in this chapter.
Use the following command to set the default interface:
Command Description
def-interface set {menu | cli}

Displaying the Default Interface

Use the following command to display the default interface:
Command Description
Toggles from the CLI to the menu-driven interface
Sets the default interface to either the menu-driven interface or the CLI
def-interface show
Displays the default interface

Using the CLI

This section describes how to use the command line interface to enter CLI commands.

Understanding Command Syntax Symbols

Command syntax is presented as a combination of defined strings, keywords, variables, and symbols. Symbols indicate how to enter the command, and should not be typed as part of the command itself.
Text in boldface must be entered literally as shown. Do not type any symbols that may appear in boldface.
1-4 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
The following table summarizes the command syntax symbols:
Table 1-1: Command Syntax Symbols
Symbol Description Example
Overview
<variable> Angle brackets (< >) enclose
italicized text. You must enter the correct variable or variables for the text.
[ ]
Square brackets ( [ ] ) enclose an optional entry.
If several optional items are listed, the items may be entered in any order.
{ } Curly brackets ( { } ) enclose a
required entry.
If several optional items are listed inside curly brackets, you must type at least one of those items.
user delete user <username>
In this example, you type user delete user and the name of user account you want to delete.
system show [advanced]
Acceptable entries are:
system show
system show advanced
log show [num <num>] [item <index>]
Acceptable entries are:
log show
log show num <num>
log show item <index>
log show num <num> item <index>
log show item <index> num <num>
bandwidth delete port <portlist> { [ingress] [egress] }
Acceptable entries are:
bandwidth delete port <portlist> ingress
bandwidth delete port <portlist> egress
bandwidth delete port <portlist> ingress egress
bandwidth delete port <portlist> egress ingress
| Vertical bars ( | ) separate mutually
exclusive items in a list, of which exactly one may be typed.
igmp set filter {all | unregistered | filter}
Acceptable entries are:
igmp set filter all
igmp set filter unregistered
igmp set filter filter
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 1-5
Overview

Understanding Common Parameter Definitions

The following table describes how to enter common variable parameters used throughout this chapter.
Table 1-2: Common Parameters
Parameter Description
<string> Type character strings as follows:
If the string of character includes blank space, you must type it within
quotation marks (“ ”).
Example: system set sysname “lab switch”
If the string of characters does not include any blank space, you may type
the string within or without quotation marks (“ ”).
Example: system set sysname lab
<portlist> Type a port number or numbers in the following ways:
One number
Example: port 3
A list of numbers are separated by a comma (,)
Example: port 1, 3, 6, 8
A range of numbers are entered with a dash (-)
Example: port 1-3
A range of numbers plus additional numbers are separated by commas
Example: port 1-3, 6, 8
All ports are identified by adding an asterisk (*) after the keyword port
Example: port *
<ip_addr> Type an IP address in the following format where xxx is a number from 0 to
255. Leading zeros may be used, but are not required.
Format: xxx.xxx.xxx.xxx
Example: 172.1.001.1
<iplist> Type the IP address or addresses. Separate multiple IP addresses with
commas.
<mac_addr> Type a MAC address in the following format where xx is a two-digit,
zero-filled, hexadecimal number.
Format: xx.xx.xx.xx.xx.xx
Example: 00.02.A5.D1.01.44
continued
1-6 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Overview
Table 1-2: Common Parameters continued
Parameter Description
<vlan_id> Type a VLAN ID in the following format where nnnn is a number from 1 to
4094. Leading zeros are allowed, but not necessary.
Format: nnnn
Example: 24
<vlan_name> Type a name that is 1 to 15 characters in length to identify the VLAN. Use an
underscore (_) to connect words. If the string of character includes blank space, you must type it within quotation marks (“ ”).
Example: default_vlan
<vlanlist> Type a VLAN number or numbers in the following ways:
One number
Example: vlan 20
A list of numbers are separated by a comma (,)
Example: vlan 10, 30, 60, 80
A range of numbers are entered with a dash (-)
Example: vlan 10-15
A range of numbers plus additional numbers are separated by commas
Example: vlan 10-15, 60, 80
All VLANs on all units are identified by adding an asterisk (*) after the
keyword vlan
Example: vlan *

Using Command Line Editing Keys

The following describes the line-editing keys available using the CLI:
Keys Description
Backspace
Ctrl+D or Delete
Ctrl+F or Right Arrow
Ctrl+B or Left Arrow
Ctrl+A
Ctrl+E
Ctrl+C
Deletes the character to the left of the cursor and shifts the remainder of the line to the left
Deletes the character under the cursor and shifts the remainder of the line to the left
Moves the cursor to the right
Moves the cursor to the left
Moves the cursor to the first character in the line
Moves the cursor to the space to the right of the last character in the line
Terminates the command and displays a new prompt
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 1-7
Overview

Executing a Command

Several help features are available to make executing commands easy.
Command Help
The help command can be used to display
• • A complete list of all commands
A description of a specific command, including valid parameters, their ranges, and the default
Command Description
help
[<command>]
Displays a complete list of available commands
To display a help message for a specific command, type help and the command.
The following list displays when you type the command help.
The following displays when you type help cos set.
1-8 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Question Mark (?)
You can also access help by typing a question mark (?) at the beginning of a command or partial command.
This example shows the help that displays when you type ? gvrp enable.

Using Command Completion

You can complete a command by typing a partial character string at the command prompt and then pressing the Tab key. When possible, the system displays the complete command for you. When not possible, the system generates an error message.
Overview
For example:
At the command prompt, type sy sh and then press the Tab key.
The system completes the command.
The cursor appears immediately after the keyword, allowing you to enter additional information. If no command exists that matches what you have typed, no action is carried out and the system returns to the prompt.
In addition, you can type an abbreviation for the command and press the Enter key. The system will complete and execute your command if possible.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 1-9
Overview
For example:
At the command prompt, type sys sh and then press the Enter key. The system completes and executes the command.

Displaying Command History

The CLI maintains a buffer of recent commands that have been entered, with a maximum of 25 commands saved in the buffer per CLI session. When the buffer reaches 25 commands, it adds any new commands and deletes the earliest commands.
Use the following command to display the history buffer:
Command Description
history
Use the following to clear the commands in the history buffer:
Command Description
history clear
Displays the contents of the history buffer
Clears the history buffer
1-10 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide

Customizing the Command Prompt

The default command prompt is the greater than sign ( > ). You can customize the command prompt using the following command:
Command Description
Overview
prompt <prompt_string>
For example:

Clearing the CLI Screen

Customizes the command prompt
Type prompt and the customized prompt word or string of words. The customized prompt takes effect immediately, for all sessions and all users.
To clear the current CLI screen and display a fresh page with a command prompt, use the following command:
Command Description
clear
Clears the current CLI screen and displays a fresh page with a command prompt
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 1-11
Overview

Paging of Data Output

You can configure the switch module to display one page of data at a time. This is helpful when you are in a Telnet session and are using the show commands to display information about the switch.
Paging is on with every new CLI session. To avoid the paging prompts when using scripts, set paging to off.
Use the following command to set the paging option:
Command Description
paging {on | off}
Configures the switch to display one page of data at a time
If paging is turned off, data will display continuously until the end of the data is reached.

Configuring the GbE Interconnect Switch

After logging on to the GbE Interconnect Switch for the first time, perform the following tasks:
Configure the IP address
Set up users, passwords, and access privileges
Change default SNMP community strings for read/write and read-only
For information on how to configure these and other GbE Interconnect switch features, refer to Chapter 2.
NOTE: After configuring the IP address on the GbE Interconnect Switch, the GbE Interconnect Switch can be accessed using Telnet, SNMP, or a Web browser. Refer to the section, “Configuring the Remote Management IP Interface Settings,” in Chapter 2 for information on how to set up the IP address.
1-12 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
HP CONFIDENTIAL Codename: DeLorean Part Number: 322604-001 Last Saved On: 2/3/03 11:08 AM
Configuring the GbE Interconnect Switch using the

Overview

This chapter describes how to configure the GbE Interconnect Switch from the command line interface (CLI).

Saving Changes

The GbE Interconnect Switch has two types of memory: dynamic RAM and non-volatile RAM (NVRAM).
Restarting the GbE Interconnect Switch erases all configuration settings in RAM and reloads the stored settings from NVRAM. Thus, it is necessary to save all configuration setting changes to NVRAM before rebooting the GbE Interconnect Switch.
2
Command Line Interface
After the configuration settings have been saved to NVRAM, they become the current runtime settings for the GbE Interconnect Switch. These settings are then used every time the GbE Interconnect Switch is rebooted.
Use the following command to retain any configuration changes permanently in NVRAM:
Command Description
cfg save
IMPORTANT: After saving your final configuration, HP highly recommends that you save the
configuration image to TFTP server storage. Refer to the “Initiating a TFTP Upload for Log File or Configuration File” section later in this chapter for more information.
Use the following command to display the current configuration settings:
Command Description
cfg show
Saves current configuration settings to the switch NVRAM
Displays current configuration settings
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 2-1
Configuring the GbE Interconnect Switch using the Command Line Interface
For example:

Managing User Accounts

After logging on to the GbE Interconnect Switch for the first time, you need to set up at least one user account with Root access rights. You can set up a maximum of eight users on a GbE Interconnect Switch.
There are three levels of user access rights: Root, User+, and User. Some menu selections available to users with Root privileges may not be available to those with User+ and User privileges.
2-2 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Configuring the GbE Interconnect Switch using the Command Line Interface
The following table summarizes user access rights.
Table 2-1: User Access Rights
Privilege Root User+ User
Configuration Yes Read-only Read-only
Network Monitoring Yes Read-only Read-only
Community Strings and Trap Stations Yes Read-only Read-only
Update Firmware and Configuration Files Yes No No
System Utilities Yes Ping-only Ping-only
Factory Reset Yes No No
Reboot Switch Yes Yes No
Add/Update/Delete User Accounts Yes No No
View User Accounts Yes No No
The following shows the factory default user account settings:
Feature Default Value
Username None
Password None

Adding a User Account

Use the following command to add user account information:
Command Description
user add
user <username>
access {r | u+ | u}
Adds a user account
Type the following in the command:
user <username>—Type user and the user’s name.
Username can be between 1 and 15 characters.
access {r | u+ | u}—Type access and the user’s
access level:
r—root
u+—user +
u—user
After entering the command, the system will prompt twice to enter the user’s password.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 2-3
Configuring the GbE Interconnect Switch using the Command Line Interface

Deleting a User Account

Use the following command to delete a user account:
Command Description
user delete user <username>

Displaying User Account Information

Use the following command to display user account information:
Command Description
user show
For example:

Updating User Account Information

Deletes the specified user’s account
Displays all user account information including each user’s name and access level
Use the following command to modify user account information:
Command Description
user modify user <username>
{
[access {r | u+ | u}]
[password]
}
2-4 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Modifies a user’s account information
Type the user’s name and one or both of the following:
access {r | u+ | u}—Type access the new access
level:
r—root
u+—user +
u—user
password—If password is entered, the system will
prompt twice to enter the user’s password.
Configuring the GbE Interconnect Switch using the Command Line Interface

Configuring Remote Management IP Interface Settings

Each GbE Interconnect Switch must be assigned its own IP address, which is used for communication with an SNMP network manager or other TCP/IP application (for example Web or TFTP). The factory default is set for the GbE Interconnect Switch to automatically obtain the IP address using DHCP service from a DHCP server on the attached network. You can manually change the default switch IP address to meet the specification of your networking address scheme. If you select the manual mode and do not assign the IP address, the system assigns a default IP address for Switch A as 10.90.90.90 and for Switch B as
10.90.90.91. The system also assigns a default subnet mask of 255.0.0.0.
The GbE Interconnect Switch IP address is also assigned a unique MAC address by the factory. This MAC address cannot be changed and can be found on the initial boot console screen and the Logon screen, or by accessing basic switch information. Refer to the “Displaying Basic GbE Interconnect Switch Information” section later in this chapter.
In addition, you can
Set an IP address for a default gateway. This becomes necessary when the network management station is located on a different IP network from the GbE Interconnect Switch, making it necessary for management packets to go through a router to reach the network manager, and vice-versa.
Set a list of up to eight secure IP addresses of network management stations that are allowed to manage the interconnect switch. Only those network management stations can access the switch management inerfaces once set.
Set a management VLAN ID (VID) for the IP interface so that the GbE Interconnect Switch can be accessed from the designated management VLAN.
Change the default SNMP community strings in the GbE Interconnect Switch and set the access rights of these community strings. Refer to the “Adding SNMP Management Interface Community Strings” section later in this chapter.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 2-5
Configuring the GbE Interconnect Switch using the Command Line Interface
The following shows the factory default remote management settings:
Feature Default Value
DHCP Service Enabled
BootP Service Disabled
IP Address (if DHCP is selected) Switch A = DHCP server assigned unique IP
address, subnet mask, and default gateway
Switch B = DHCP server assigned unique IP address, subnet mask, and default gateway
IP Address (if manual IP option is selected) Switch A = 10.90.90.90
Switch B = 10.90.90.91
Subnet Mask (if manual IP option is selected) 255.0.0.0
Default Gateway (if manual IP option is selected)
Management VID (MVID) 1
0.0.0.0

Setting the Remote Management IP Interface Settings

To access and manage the GbE Interconnect Switch from an SNMP-based Network Management System, or by using the Telnet protocol or the Web, you must first configure the remote management IP interface parameters.
The IP address can be assigned by one of the following methods:
Manual—This option allows you to manually configure an IP address, subnet mask, and default gateway for the GbE Interconnect Switch.
BOOTP—This option configures the switch to send out a BOOTP broadcast request for IP information. The BOOTP protocol allows IP addresses, network masks, and default gateways to be assigned by a central BOOTP server attached to the same network to which the GbE Interconnect Switch is connected.
DHCP—This option configures the switch to send out a DHCP broadcast request. The DHCP protocol allows IP addresses, network masks, and default gateways to be assigned by a DHCP server attached to the same network to which the GbE Interconnect Switch is connected. DHCP protocol is the factory default mode.
2-6 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Configuring the GbE Interconnect Switch using the Command Line Interface
Use the following command to configure the remote management IP interface settings:
Command Description
mgmt-if set
{
[mode {manual | bootp | dhcp}]
[ipaddr <ip_addr>]
[netmask <subnet_mask>]
[def-gateway <ip_addr>]
[mvid <vlan_id>]
[secure-ip <iplist> ]
}
Sets the remote management parameters including:
mode {manual | bootp | dhcp}—Type
mode and manual, bootp, or dhcp. The default is dhcp.
If you choose manual, type the following:
ipaddr <ip_addr>—Type ipaddr and
the IP address in the form of xxx.xxx.xxx.xxx, where each xxx is a number between 0 and 255.
netmask <subnet_mask>—Type
netmask and 255.0.0.0 for a Class A network, 255.255.0.0 for a Class B network, 255.255.255.0 for a Class C network, or type a custom subnet mask.
def_gateway <ip_addr>—Type
def-gateway and the IP address that determines where packets with a destination address outside the current subnet should be sent.
mvid <vlan_id>—Management VLAN ID
(MVID) is the VLAN ID of the management processor port. Type mvid and the VLAN ID through which you want to access the GbE Interconnect Switch management interface.
secure-ip <iplist>—Type secure-ip and
the management station IP addresses that are allowed to access the switch management interface. Enter from one to eight addresses, separated by commas.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 2-7
Configuring the GbE Interconnect Switch using the Command Line Interface

Displaying Remote Management Interface Settings

Use the following command to display the remote management interface settings:
Command Description
mgmt-if show
For example:

Deleting the Secure IP Addresses

Use the following command to delete the secure IP addresses:
Command Description
mgmt-if delete secure-ip <iplist>
Displays the remote management interface current IP and VLAN settings
Deletes the secure IP addresses
Enter from one to eight addresses, separated by commas.
2-8 HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide
Configuring the GbE Interconnect Switch using the Command Line Interface

Configuring Basic GbE Interconnect Switch Information

This section describes how to configure basic GbE Interconnect Switch information.

Setting System Name, Location, and Contact Information

The following shows the factory default settings for system name, system location, and system contact:
Feature Default Value
System Name None
System Location None
System Contact None
Use the following command to configure the system name, location, and contact information:
Command Description
system set
{
[sysname <system_name>]
[sysloc <system_location>]
[contact <system_contact >]
}

Displaying GbE Interconnect Switch Information

Configures system information
Enter the following in the command:
sysname <system_name>—Type
sysname and a system name. The system name can be up to 255 characters in length. Blank spaces are allowed.
sysloc <system_location>—Type
sysloc and the system location. The system location can be up to 255 characters in length. Blank spaces are allowed.
contact <system_contact >—Type
contact and the name of the contact person. HP recommends entering the name of the person who is responsible for the maintenance of the network system on which the GbE Interconnect Switch is located. The contact name can be up to 255 characters in length. Blank spaces are allowed.
You can display basic information about the GbE Interconnect Switch including the type of switch, any external modules that are installed, and the MAC address (assigned by the factory and unchangeable) for that GbE Interconnect Switch. In addition, the boot PROM and firmware version numbers display. This information is helpful in monitoring PROM and firmware updates.
HP ProLiant BL p-Class GbE Interconnect Switch Command Line Interface Reference Guide 2-9
Loading...
+ 104 hidden pages