Upload files to Simple Application Server

更新时间:
复制 MD 格式

Use Command Assistant to upload local files, such as configuration files or scripts, to a Simple Application Server instance.

Prerequisites

  • The Simple Application Server instance must be Running.

  • The Cloud Assistant Agent must be Installed.

  • The file cannot exceed 24 KB.

    If you need to upload a file larger than 24 KB, we recommend that you use other methods. For more information, see data transfer.

Procedure

  1. Go to the Command Assistant page in the Simple Application Server console.

  2. In the upper-right corner of the page, click Send File.

  3. In the panel that appears, configure the parameters.

    The following table describes the parameters.

    Parameter

    Description

    Destination OS (Required)

    Select the operating system of the target instance.

    Upload File (Required)

    Select an upload method and follow the on-screen instructions.

    • Upload File: Click or drag a file to the upload area.

    • Paste File Content: Copy and paste the file content into the text box.

    Overwrite

    Indicates whether to overwrite an existing file that has the same name in the destination path. By default, this option is disabled.

    File Name (Required)

    Enter the file name.

    Important

    If Overwrite is disabled, the file name must be unique.

    Destination Path (Required)

    The absolute path on the Simple Application Server instance where the file is saved. The path must already exist. The default paths are:

    • Linux: /root.

    • Windows: C:\Users\Administrator\Documents.

    File Description

    Enter a description to help identify the file.

    Timeout Period

    The timeout period for the file sending task. If the task exceeds this timeout period, Cloud Assistant stops it.

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

    Select Instance

    Select one or more instances. If you select multiple instances, the same file is uploaded to all selected Simple Application Server instances.

  4. Click Send.

    On the File Sending Result tab, view the execution result.

    If the execution status is Succeeded, the file has been sent to the specified path on the target instance. In the Actions column, you can click View, Export, or Resend.

File sending results

  1. Go to the Command Assistant page in the Simple Application Server console.

  2. Click the File Sending Result tab.

  3. In the list, view the execution status, destination path, and file name of the file sending task.

    You can also perform the following operations in the Actions column:

    • Click View to see the execution details.

    • Click Export to export the results.

    • Click Resend to resend the file.