No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
execute

execute

Function

The execute command executes a specified batch file.

Format

execute batch-filename

Parameters

Parameter Description Value
batch-filename

Specifies the name of a batch file.

The value is a string of 5 to 64 case-sensitive characters without spaces. The file name extension is .bat.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a series of commands are frequently executed, write these commands in a batch file, and store this file in system. In this way, you can only execute this command to run multiple commands which were manually entered before. This command improves maintenance and management efficiency.

  • The batch file is edited in .txt format. When editing the file, ensure that one command occupies one line. After editing the file, save the file and change the file name extension to .bat.

  • Transfer the batch file in file transmission mode to the device.

Prerequisites

Before running the execute command, ensure that the batch file to be processed is in the current directory; otherwise, the system cannot find the batch file.

Precautions

  • The commands in a batch file are run one by one. A batch file cannot contain invisible characters (control characters or escape characters, such as \r, \n, and \b). If any invisible character is detected, the execute command exits from the current process and no rollback is performed.

  • The execute command does not ensure that all commands can be run. If the system runs a wrong or immature command, it displays the error and goes to next command. The execute command does not perform the hot backup operation, and the command format or content is not restricted.

Example

# Execute the test.bat file in the directory flash:/. The test.bat file contains three commands: system-view, aaa and local-user huawei password irreversible-cipher Huawei@123and ftp server enable.

<Huawei> system-view
[Huawei] execute test.bat
[Huawei] system-view
           ^
Error: Unrecognized command found at '^' position.
[Huawei] aaa
[Huawei-aaa] local-user huawei password irreversible-cipher Huawei@123
[Huawei-aaa]

When the system runs the first command system-view in current system view, it displays an error and continues to run the following commands.

The system displays the execution of a batch file in AAA view.

[Huawei-aaa] display this 
 local-user huawei password irreversible-cipher %$%$FX5rCRo<n&ug5uL{J:rA!NE<%$%$
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 202323

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next