The execute 1 batch-file autodiagnose.bat command configures batch file execution for a maintenance assistant.
By default, no task is configured for a maintenance assistant.
Usage Scenario
To configure a device to automatically run a large number of commands when a specific condition is met, users can enable batch file execution for a maintenance assistant in the OPS.
After a maintenance assistant is created, the assistant must be configured with tasks. Each maintenance assistant can be configured with at most one batch file with the size not greater than 1 MB. The configuration modification in the script takes effect immediately and does not require committing.
When users configure the execute command, the OPS checks whether the file name extension is .bat but does not verify the file contents.
Prerequisites
The assistant command has been run in the system view to create a maintenance assistant.
The ops install file command has been run to save the batch file in the /user/bat directory.
Precautions
In VS mode, this command is supported only by the admin VS.