Basic Operation Guide 2013/06
Table Of Contents
- Switch Software
- Contents
- 1 Commands found in the Basic Operation Guide
- 2 Getting started
- 3 Using the Menu Interface
- 4 Using the Command Line Interface (CLI)
- Overview
- Accessing the CLI
- Using the CLI
- Return message types with CLI commands
- CLI interactive commands
- CLI control and editing
- 5 Using the HP WebAgent
- 6 Switch memory and configuration
- Overview
- Configuration file management
- Using the CLI to implement configuration changes
- Creating a custom default configuration
- Using the menu and WebAgent to implement configuration changes configuration file
- Zeroization
- Using Primary and Secondary flash image options
- Multiple configuration files
- Display configuration of selected interface
- Automatic configuration update with DHCP Option 66
- 7 Interface access and system information
- 8 Configuring IP addressing
- Overview
- IP configuration
- Loopback interfaces
- IP Preserve: retaining VLAN-1 IP addressing across configuration file downloads
- Configuring a single source IP address
- 9 Software management
- Downloading switch documentation and software from the web
- Viewing or downloading the software manual set
- Downloading software updates for your switch
- Software signing and verification
- Saving configurations while using the CLI
- Important: Best Practices for software updates
- Updating the switch: overview
- Updating the switch: detailed steps
- Rolling back switch software
- Viewing or transferring alternate configuration files
- Downloading switch documentation and software from the web
- Index

Example 21 The running config file with banner motd configured in non-interactive mode
HP Switch(config)# show running-config
Running configuration:
;J8693A Configuration Editor; Created on release #K.15.10.0001
hostname "HP Switch"
vlan 1
name "DEFAULT_VLAN"
untagged 1-48, a1-a4
ip address dhcp-bootp
exit
banner motd "You can use the \’banner motd\’ CLI command in
non-interactive mode.\n\n\tThe banner motd command will support
escape characters."
You can use a delimiting character other than quotes as well, as shown in the example below.
Example 22 Configuring the banner message using an alternate delimiter of ‘#’
HP Switch(config)# banner motd #
Enter TEXT message. End with the character ‘#’
You can use the \’banner motd\’ CLI command in non-interactive mode.
\n\n\tThe banner motd command will support escape characters.#
CLI control and editing
Executing a prior command—redo
The redo command executes a prior command in the history list.
Syntax:
redo [ number | command-str ]
Re-executes a command from history. Executes the last command by default.
number: The position of the command to execute in the history list. When number
is specified, the nth command starting from the most recent command in the history
is executed.
command-str: When command-str is specified, the most recent command whose
name matches the specified string is executed.
Example 23 The redo command
HP Switch(config)# show history
2 show arp
1 show flash
HP Switch(config)# redo 2
IP ARP table
IP Address MAC Address Type Port
-------------- ---------------- -------- ----
15.255.128.1 00000c-07ac00 dynamic A11
Repeating execution of a command
The repeat command executes a previous command in the history list.
40 Using the Command Line Interface (CLI)










