Using the Command Line Interface (CLI)

CLI Control and Editing

Syntax: repeat [cmdlist] [count] [delay]

Repeats execution of a previous command. Repeats the last command by default until a key is pressed.

cmdlist: If a number or range of numbers is specified, the command repeats the nth most recent commands (where “n” is the position in the history list).

count: Repeats the command for the number of times specified.

delay: The command repeats execution after a delay for the number of seconds specified.

For example:

ProCurve(config)# repeat 1-4,7-8,10 count 2 delay 3

ProCurve(config)#

show history

 

 

 

 

 

3

show ver

 

 

 

 

 

 

 

2

show ip

 

 

 

 

 

 

 

1

show arp

 

 

 

 

 

 

 

ProCurve(config)#

repeat 1-2

 

 

 

 

 

Repeats the show arp and show ip commands.

 

 

 

IP ARP table

 

 

 

 

 

 

 

 

IP Address

MAC Address

Type

Port

 

 

 

 

---------------

----------------- ------- ----

 

 

 

 

15.255.128.1

000000-000000

 

dynamic

 

 

 

 

 

Internet (IP) Service

 

 

 

 

 

 

Default Gateway

:

 

 

 

 

 

 

 

Default TTL

: 64

 

 

 

 

 

 

 

Arp Age

: 20

 

 

 

 

 

 

 

Domain Suffix

:

 

 

 

 

 

 

 

DNS server

:

 

 

 

 

 

 

 

VLAN

IP Config

IP Address

Subnet Mask

Proxy ARP

 

-------------------- + ---------- ---------------

---------------

---------

 

DEFAULT_VLAN

DHCP/Bootp 15.255.131.90

255.255.248.0

No No

Figure 4-11. Example of repeat Command Using a Range

4-17