All Products
Search
Document Center

Send local files to ECS instances

Last Updated: Oct 15, 2020

This topic describes how to use the file send feature to upload local files such as configuration files and scripts to ECS instances.

Prerequisites

  • The ECS instances are in the Running (Running) state.

  • The Cloud Assistant client is installed on the ECS instances. For more information, see Install the Cloud Assistant client.

  • You can send a file to a maximum of 50 instances in a single API call.

  • The file content is no larger than 32 KB in size after it is encoded in Base64.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Maintenance & Monitoring > ECS Cloud Assistant.

  3. In the top navigation bar, select a region.

  4. Click Send File.

  5. In the Command Information section, configure the parameters.

    Parameter

    Description

    Destination System

    The operating system of the ECS instances. Valid values:

    • Linux

    • Windows

    Upload File

    The file upload method. Valid values:

    • Upload File: You can click the upload section and select a file, or drag a file to the upload section.

    • Paste File Content: You can paste the file content to the field.

    Note

    The file content cannot exceed 32 KB in size after it is encoded in Base64.

    File Name

    The name of the file.

    Note

    If you turn off Overwrite, the file name must be unique within the destination path of the ECS instance.

    Destination Path

    The path to save the file.

    • Default value when Destination System is set to Linux: /root

    • Default value when Destination System is set to Windows: C:/Users/Administrator/Documents

    File Description

    The description of the file.

    User

    The user to which the file belongs.

    This parameter is required only for Linux instances.

    User Group

    The user group to which the file belongs.

    This parameter is required only for Linux instances.

    Permission

    The file permissions.

    The default value is 0644, which indicates that the owner of the file has read and write permissions, and users within the same group and public users have read permissions.

    This parameter is required only for Linux instances.

    Overwrite

    Specifies whether to overwrite files with the same name within the destination path.

    Timeout Period

    The timeout period for the file send task. When a file send task times out, Cloud Assistant forcibly stops the task process.

    Valid values: 10 to 86400. Unit: seconds. Default value: 60.

  6. In the Select Instances section, select one or more instances.

  7. Click Create Task.

  8. In the pane that appears, view the execution result of the file send task.

    The file is sent

View file send results

  1. In the left-side navigation pane, choose Maintenance & Monitoring > ECS Cloud Assistant.

  2. Click the File Sending Result tab.

  3. In the task list, view the execution status, execution ID, and destination path of the task.

    You can also click the corresponding operation names in the Actions column to perform the following operations:

    • Click View to view the task execution result on each ECS instance.

    • Click Export to export the execution results.

    • Click Send Again to execute this task again.

References