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

Configuration Guide - Basic Configuration

S1720, S2700, S5700, and S6720 V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
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).
Executing Commands in a Batch

Executing Commands in a Batch

Procedure

  • Automatic batch command execution

    Assistant tasks help implement automatic batch command execution. You can create a maximum of five assistant tasks on the device and each assistant task is bound with a batch file. After an execution time is configured, the device automatically executes commands in the batch file one by one. Automatic batch command execution is frequently used for periodic system upgrade or configuration.

    A batch file is a collection of executable commands and the file is in the format of *.bat. When the batch file is processed, commands in the file are executed one by one. Before configuring automatic batch command execution, edit the batch file on the PC and upload the batch file to the device. If the file name extension is not .bat, change it to .bat before you upload the batch file to the device. Alternatively, upload the batch file to the device and then run the rename command to change the file name extension.

    1. Run the system-view command to enter the system view.

    2. Run the assistant task task-name command to create an assistant task. You can create a maximum of five assistant tasks.

    3. Run the if-match timer cron seconds minutes hours days-of-month months days-of-week [ years ] command to specify the time for performing assistant tasks.
    4. Run the perform priority batch-file filename command to bind the batch file with the assistant task.

    5. Run the display assistant task history [ task-name ] command to check the operation records of assistant tasks.

Translation
Download
Updated: 2019-10-21

Document ID: EDOC1000178166

Views: 256988

Downloads: 1948

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