auto-confirm

Syntax

auto-confirm

no auto-confirm

Description

Specifies that the CLI automatically enters the affirmative response (y) to all confirmation prompts, enabling commands to execute without waiting for user confirmation.

The no form of this command sets auto-confirmation to the default value disabled.

Command context

Manager (#)

Authority

Administrators or local user group members with execution rights for this command.

Usage

Some commands, such as boot command, prompt to confirm execution of the command or to save the current configuration. Typically, such commands display a confirmation message similar to the following:

Continue (y/n)?

This command is useful for automating switch configuration, but Hewlett Packard Enterprise recommends that you use the REST API instead of using CLI scripts to automate configuration operations.

When the switch reboots, auto-confirmation is set to the default (disabled).

Example

switch# auto-confirm