Execute Automation Scripts

Updated: 2025/10/10
Read Time: 6 min
The cloud control backend supports single-device and multi-device batch script execution, enabling task scheduling, real-time monitoring, and quick termination operations to improve operational efficiency.

Cloud Control Backend Automation Script Operation Guide

The cloud control backend supports single-device script execution and batch script execution, facilitating task scheduling and real-time monitoring for operations personnel in multi-device environments.


Single-device Script Execution

Operation Steps

  1. Find the target device in the group control screen casting page.
  2. Right-click the device → Select Scripts → Select Script Code to open the script code list.
  3. Select the content to execute:
    • Scripts: Need to be configured once, then can be directly executed and used for batch operations.
    • Code: Temporary code snippets for execution, can be directly clicked to execute without additional configuration.
  4. Click the script or code to execute the operation.
  5. If you need to stop execution:
    • Click Terminate Script → Stop the script currently running on the device.
    • Click Terminate Code → Stop the code currently running on the device.
  6. View execution logs:
    • Can view the execution logs of the device, facilitating troubleshooting of exceptions or debugging scripts.

⚡ Tip: Single-device execution is suitable for temporary operations or debugging scripts, quickly verifying script functionality.


Batch Script Execution

Operation Steps

  1. Batch select target devices in the left device list.
  2. Select the content to execute in the script/code list area:
    • Scripts: Need to be configured once, then can be executed in batch.
    • Code: Can be directly clicked to execute without additional configuration.
  3. Click the Execute button, and the backend will simultaneously perform operations on all selected devices.
  4. Stop execution:
    • Terminate Script → Stop scripts running on all devices.
    • Terminate Code → Stop code running on all devices.
  5. Real-time monitoring:
    • If Real-time Logs are enabled, you can view the execution status and output logs of each device in real-time, making it easy to quickly identify abnormal devices.

⚡ Tip: Batch execution is suitable for task scheduling and unified operations across multiple devices, improving operational efficiency.


Operation Approach & Best Practices

  1. Unified Operation Entry
    • Maintain consistent logic for single-device and batch operations to reduce learning costs.
  2. Clear Task Management
    • Distinguish between scripts and code before execution, support real-time termination during execution, and retain logs after execution.
  3. Real-time Logs & Feedback
    • Logs display device name, execution status, and timestamp, allowing operations personnel to quickly locate issues.
  4. Exception Handling
    • When execution fails or devices go offline, provide clear prompts in the logs for easy troubleshooting.
  5. Recommended Usage Scenarios
    • Single-device Execution: Debugging scripts, temporary tasks, function verification.
    • Batch Execution: Multi-device task scheduling, unified operations, scheduled task execution.

Tips

  • Ensure target devices are online and accessible to the backend.
  • It is recommended to configure scripts in advance for more efficient batch execution.
  • After enabling the real-time log function, execution exceptions can be immediately detected, improving operational efficiency.