When executing the following operations in the CLI, you often need to confirm again. How can I turn off the reconfirmation and execute the command directly?
Example
[LEAF-1-Twenty-FiveGigE1/0/6]port link-mode bridge
The configuration of the interface will be restored to the default. Continue? [Y/N]:N
Example
<H3C>delete test1.cfg
Delete flash:/test1.cfg? [Y/N]:y
Deleting file flash:/test1.cfg... Done.
<H3C>
You can use terminal mmi-mode enable to enter machine-machine interaction (MMI) mode. Please note that this function is only supported in newer versions. Please consult the command manual before using it.
Use terminal mmi-mode enable to enter machine-machine interaction (MMI) mode.
Use undo terminal mmi-mode enable to enter human-machine interaction mode.
Syntax
terminal mmi-mode enable
undo terminal mmi-mode enable
Default
The user is in human-machine interaction mode.
Views
User view
Predefined user roles
network-admin
Usage guidelines
|
CAUTION: Do not enter MMI mode unless required. Use caution when you execute this command. |
Operating mechanism
In MMI mode, interactive commands that require confirmation by pressing Y/N, Y/N/C, or Enter in human-machine interaction mode do not require any confirmation. For example, when the reboot command is executed in human-machine interaction mode, you must press Y/N to proceed with the reboot operation. In MMI mode, the reboot operation is completed without requiring any confirmation after you execute the reboot command.
Restrictions and guidelines
· If pausing between screens of output for the current CLI session has been enabled before you enter MMI mode, all output is displayed at a time and the screen is refreshed continuously until the final screen is displayed.
· After you configure the configuration reauthentication enable command, disruptive commands that require reauthentication do not need to be confirmed again.
· Commands that require strings to be input for execution still require manual input and confirmation.
Examples
# Enter MMI mode.
<Sysname> terminal mmi-mode enable
(M)<Sysname> system-view
(M)[Sysname]
# Exit MMI mode.
(M)<Sysname> undo terminal mmi-mode enable
<Sysname>