The perform batch-file command configures an assistant task to process a batch file.
The undo perform command disables the assistant task from processing a batch file.
By default, no batch file is configured for the assistant task.
Parameter | Description | Value |
---|---|---|
priority | Specifies a priority for an assistant task. |
The value is fixed at 1 because one assistant task can process only one batch file. |
filename | Specifies the name of the batch file processed by the assistant task. |
*.bat file. NOTE:
The batch file must be stored in the flash:/user/bat/ directory. |
Usage Scenario
After you successfully create an assistant task and specify the execution time, you can run this command to configure the device to process a batch file at the specified time.
Prerequisites
An assistant task has been created using the assistant task command and the execution time has been specified using the if-match timer cron command.
Precautions
To delete an assistant task that is being executed, stop it first. To delete an assistant task to be executed, directly delete it. The device will not execute the assistant task in the future.
# Configure the assistant task huawei to process the batch file sys.bat at 20:00 on 2012-05-04.
<HUAWEI> system-view
[HUAWEI] assistant task huawei
[HUAWEI-assistant-task-huawei] if-match timer cron * 0 20 4 5 * 2012
[HUAWEI-assistant-task-huawei] perform 1 batch-file sys.bat
# Disable the assistant task to process the batch file.
<HUAWEI> system-view
[HUAWEI] assistant task huawei
[HUAWEI-assistant-task-huawei] undo perform 1
Info: Start to delete the action.
[HUAWEI-assistant-task-huawei] display this
# assistant task huawei if-match timer cron * 0 20 4 5 * 2012 # return