Basic Operation Guide 2013/06

Table Of Contents
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)