Skip to content

Multi-Execution

When you need to distribute the same command to multiple servers (like checking clock synchronization or verifying system versions), Multi-Exec drastically reduces repetitive work.

You can select target servers and launch Multi-Exec in two ways:

  1. From Active Connected Tabs: When you are in the terminal panel (Normal Mode), provided you have at least two or more active Tabs, press x to target all currently running tabs and initiate bulk execution.
  2. Directly from Connection List: In the Connection List interface, press x to initiate bulk execution. (Note: The V key multi-selection mode in the connection list is primarily for management tasks like bulk deletion; do not confuse it with bulk execution). PhanTerm will establish secure temporary connections in the background to execute the task.

Multi-Exec employs a secure, three-stage overlay panel design:

  1. Command Input Stage: Here, you write the Bash command to be executed (you can press Ctrl+S to open the Snippet library for quick insertion).
  2. Execution & Cancellation Stage: Upon pressing Enter, the command is dispatched to all target servers in high-concurrency mode. If you spot a mistake in your command, you can quickly press Esc to abort the dispatch; the system will safely retain any partial results already returned.
  3. Result Aggregation Stage: After execution, the stdout/stderr from all servers are displayed in split panels, which you can quickly navigate using j/k.

During the result presentation stage, if you need to verify whether all machines returned identical output, you can press d to enable Diff Mode. In this mode:

  • All “consistent lines” (lines that are exactly the same across every machine’s output) are dimmed.
  • Any lines that differ on some machines or appear on only one machine are highlighted in color and prefixed with an ! warning.

This makes it possible to spot anomalous configurations or un-updated nodes at a glance among the complex outputs of dozens of servers.