redo

Syntax

redo [ <number> | <command-str> ]

Description

Parameters/Options/Flags/Strings/...

The redo command re-executes a command. The last command that was used is executed by default.

Specifiers

<number>

Specifies the position of the command in the history list. When the position is specified, the nth command starting from the most recent command in the history is executed.

<command-str>

Specifies the name of a previously executed command. The most recently executed command whose name matches the specified string is executed.

Example

This example shows the use of the redo command.

switch(config)# show history
2       show arp
1       show flash

switch(config)# redo 2

  IP ARP table

   IP Address     MAC Address     Type      Port
   -------------  --------------  --------  ----
   15.255.128.1   00000c-07ac00   dynamic   A11