All Products
Search
Document Center

WUYING Workspace:Send remote commands

Last Updated:Apr 08, 2024

The remote command feature allows you to effectively perform O&M operations on cloud computers without the need to connect to the cloud computers from WUYING terminals. You can send remote commands to one or more cloud computers. You can also send remote commands to cloud computer pools. This topic describes how to use the remote command feature.

Background information

To use the remote command feature, you must activate Cloud Assistant. Cloud Assistant is a native O&M tool developed by Alibaba Cloud. You can use Cloud Assistant to remotely execute Bat, PowerShell, or Shell commands to automate O&M script execution and software installation or uninstallation on cloud computers, without having to connect to them.

Important

By default, Cloud Assistant is installed and started on cloud computers. We recommend that you keep Cloud Assistant running to keep features at work. The service name of Cloud Assistant installed on Windows cloud computers is Aliyun Assist Service. The service name of Cloud Assistant installed on Linux cloud computers is aliyun.

Prerequisites

The cloud computers to which you want to send remote commands are in the Running state.

Send remote commands to a single cloud computer

  1. Log on to the WUYING Workspace (Pro Edition) console.

  2. In the left-side navigation pane, choose Resources & Terminals > Cloud Computers.

  3. In the upper-left corner of the top navigation bar, select a region.

  4. On the Cloud Computers page, find the desired cloud computer and use one of the following methods to send remote commands:

    1. In the Actions column of the desired cloud computer, click the icon and select Send Remote Commands.

    2. Click the ID of the desired cloud computer. On the page that appears, click the Command Execution Details tab and the Send Remote Commands button.

  5. In the Send Remote Commands dialog box, configure the following parameters based on your business requirements and click Execute.

    Parameter

    Description

    Command Type

    • Windows cloud computers: Set the Command Type parameter to PowerShell or Bat.

    • Linux cloud computers: Set the Command Type parameter to Shell.

    Command Content

    Enter a command based on your business requirements.

    Note

    The command must be the type of command that returns a result upon each execution. Secondary interaction with the command output is not supported.

    After a command is run, you can continue to enter another command in the Command Content text box to run the command.

Send remote commands to multiple cloud computers

  1. Log on to the WUYING Workspace (Pro Edition) console.

  2. In the left-side navigation pane, choose Operations > Remote Commands.

  3. In the upper-left corner of the top navigation bar, select a region.

  4. On the Remote Commands page, click Batch Send Remote Commands.

  5. On the Batch Sending Remote Commands page, configure the following parameters based on your business requirements and click Confirm Send.

    Parameter

    Description

    Command Configuration

    • Command Type

      • Windows cloud computers: Set the Command Type parameter to PowerShell or Bat.

      • Linux cloud computers: Set the Command Type parameter to Shell.

    • Command Content

      Enter a command based on your business requirements.

      Note

      The command must be the type of command that returns a result upon each execution. Secondary interaction with the command output is not supported.

    Select a cloud computer

    Select the cloud computers to which you want to send remote commands.

    Note
    • You can select up to 50 cloud computers within the same region.

    • You can use one of the following fields to filter cloud computers: Cloud Computer ID, Cloud Computer Name, Username, Office Network ID/Name, and Expiration soon.

    After a command is run, you can continue to enter another command in the Command Content text box to run the command.

Send remote commands to cloud computer pools

  1. Log on to the WUYING Workspace (Pro Edition) console.

  2. In the left-side navigation pane, choose Resources & Terminals > Cloud Computer Pools.

  3. In the upper-left corner of the top navigation bar, select a region.

  4. On the Cloud Computer Pools page, find the desired cloud computer pool and click the pool ID.

  5. On the Command Execution Details tab, click Send Remote Commands.

  6. In the Send Remote Commands dialog box, configure the following parameters based on your business requirements and click Execute.

    Parameter

    Description

    Command Type

    • Windows cloud computers: Set the Command Type parameter to PowerShell or Bat.

    • Linux cloud computers: Set the Command Type parameter to Shell.

    Select Cloud Computer

    Select the cloud computers to which you want to send remote commands.

    • All: Send remote commands to all cloud computers that are in the Running state in the pool.

    • Specific: Select the desired cloud computers from the drop-down list to send remote commands.

    Command Content

    Enter a command based on your business requirements.

    Note

    The command must be the type of command that returns a result upon each execution. Secondary interaction with the command output is not supported.

    After a command is run, you can continue to enter another command in the Command Content text box to run the command.

Result

After a command returns an output, you can view the output in the Command Output text box and the execution result below the Command Output text box.

What to do next

After you execute a command, you can view the command status, ID, content, and execution time.

Scenario

Method

View command execution status on cloud computers

  • View command execution status on a single cloud computer

    On the Cloud Computers page, find the desired cloud computer and click its ID. Then, click the Command Execution Details tab to view the execution status of the remote commands that you sent.

  • View command execution status on multiple cloud computers

    On the Remote Commands page, search for the desired command by command ID and click the Command ID column or View in the Actions column. On the page that appears, click the Executions tab or the Command Content tab based on your business requirements.

View command execution status in a cloud computer pool

On the Cloud Computer Pools page, find the desired cloud computer pool and click its ID. Then, click the Command Execution Details tab to view the information about the remote commands that you sent.