Reading Time:1 minute
0 words

Batch Execution ​

Batch Execution is the GM Desktop Client's multi-machine command execution and task management center. It supports dispatching commands or scripts to multiple servers simultaneously, with real-time tracking of execution status and results per machine. Ideal for batch inspections, unified configuration, service restarts, and other cross-machine operations scenarios.

Batch Execution

Core Features ​

FeaturePurposeCore Capabilities
Task ListTask OverviewSearch, time sorting, status and result statistics
Batch ExecutionTask CreationNew command/script/Quick Commands — three sources, multi-machine selection
Task DetailsExecution TrackingPer-machine results, status filtering
Execution LogsResult ViewingCommand output details, log download

Task List ​

The main interface displays all batch execution task history in a table, with search by task name.

List Fields ​

FieldDescription
TaskTask name and icon
Start TimeTime the task was created and started
StatusCurrent task status
ResultsExecution result statistics: 🟢 Succeeded / ⚠️ Stopped / 🔴 Failed
ActionsView logs, copy, re-execute, and other quick actions

Task Status ​

StatusColorDescription
In ProgressBlueTask is executing, not all machines completed
CompletedGreenAll target machines have finished execution

Search by task name

The top search box supports filtering the task list by task name.

Batch Execute Commands ​

Click the action button at the top-right to open the "Batch Execute Commands" dialog and create a new batch execution task.

Batch Execute Commands

Basic Configuration ​

FieldDescriptionConstraints
Task NameDisplay name for this batch execution taskMax 20 characters
Select MachinesChoose target machines for execution, supports multi-selectMulti-select dropdown

Execution Content ​

Three ways to specify the content to execute:

SourceDescription
>_ New CommandWrite commands directly
📄 New ScriptWrite multi-line scripts
SH Quick CommandsSelect saved commands from Quick Commands
  • When selecting from Quick Commands, displays "Selected: command name" with script preview and a "Reselect" option.

Note

Interactive commands, dynamic commands, and interactive scripts cannot be batch executed.

Execution Parameters ​

FieldDescriptionDefault
TimeoutCommand execution timeout per machine60 seconds
Save as Common CommandCheck to save this command to Quick CommandsUnchecked
  • Click "Execute Now" to start batch dispatching commands.
  • Click "Cancel" to discard the task.

Task Details ​

Click a task row in the task list to view per-machine execution results.

Task Details

Task Overview ​

The top of the details page displays:

  • Task Name & Status: e.g., "Query Port 1(2) Completed".
  • Executed Command: Shows the full command executed.
  • Result Filter Tabs: Filter the machine list by status:
TabDescription
AllShow all target machines
🟢 CompletedSuccessfully executed machines
⚠️ StoppedMachines where execution was aborted
🔴 FailedMachines where execution failed

Machine Execution List ​

FieldDescription
MachineTarget machine IP or name, with left dot indicating online status
ResultExecution result on this machine (Completed/Failed/Stopped)
ActionsView logs, copy results, and other action buttons

View Logs ​

Click the "View Logs" icon on a machine row in the task details to open a log viewer showing the complete command output on that machine.

View Logs

  • Log Content: Displays the standard output of the command on that machine.
  • Download: Click "Download" to save the log as a local file for archiving and sharing.