batch buffer

Creates a group of CLI commands per batch ID that is used in the automatic execution of commands in batches.
Syntax
batch buffer batch-id delimiting-character command-list delimiting-character
no batch buffer batch-id
Command Default

CLI commands are not grouped per batch.

Parameters
batch-id
Specifies the unique batch buffer ID. The value range is from 1 through 4.
delimiting-character
Enables an onboard editor on which the list of CLI commands is added. The second occurrence of the delimiting character closes the onboard editor.
command-list
Specifies the list of commands that you want to add in the batch buffer. A maximum of 10 commands can be added in a batch buffer.
Modes

Global configuration mode

Usage Guidelines

You can create only up to 4 batches and each batch can have a maximum of 10 commands.

The commands that are present at the user EXEC mode, privileged EXEC mode, global configuration mode, and sub-level commands can be added to a batch.

The commands that are saved in the batch buffer are applied on the device only if the execute batch command is issued.

The following list of commands cannot be issued using the batch process:

  • At the privileged EXEC level:
    • exit
    • ping
    • reload
    • telnet
    • quit
    • traceroute
    • ssh
  • At the global configuration level:
    • quit
    • relative-utilization
    • batch

Any command that requires user intervention will fail during batch execution.

The no form of the command removes the configured batch.

Examples

The following example creates a batch buffer containing two CLI commands.

device# configure terminal
device(config)# batch buffer 1 &
configure terminal
hostname ruckus &