Cloud Assistant lets you upload a local file (up to 24 KB), such as a configuration file or a script, to one or more Elastic Compute Service (ECS) instances.
Prerequisites
-
The ECS instance must be in the Running state.
-
The file must not exceed 24 KB.
ImportantTo upload a file larger than 24 KB, use another method. For more information, see Upload or download files.
Procedure
Go to the Cloud Assistant console.
In the top navigation bar, select the region and resource group of the resource that you want to manage.
-
On the ECS Instance tab, select the target instance and click Send File in the Actions column.
-
If the Cloud Assistant status is Not Installed, follow the on-screen instructions to install it.
-
If the Cloud Assistant status is System Error or the agent version does not meet the requirements (earlier than 1.0.2.569 for Linux instances or earlier than 1.0.0.149 for Windows instances), restart the Cloud Assistant Agent or manually install the Cloud Assistant Agent.
NoteYou can also click Send File in the upper-right corner of the Cloud Assistant page to upload the same file to multiple ECS instances.
-
-
In the Command Information section, configure the parameters and then click Run.
Parameter
Description
File
Select a file upload method and follow the on-screen instructions to complete the upload.
File Name
Specify a name for the file.
ImportantIf the Overwrite parameter is disabled, the file name cannot be the same as the name of an existing file in the destination path.
Destination Path
The absolute path on the ECS instance where you want to save the file. This path must exist. The default target paths are as follows:
-
Linux:
/root -
Windows:
C:\Users\Administrator\Documents
File Description
Enter a description for the file.
User
Specify the owner of the file.
NoteThis parameter is available only for Linux instances.
User Group
Specify the owning group for the file.
NoteThis parameter is available only for Linux instances.
Permission
Set file permissions in the same format as for the
chmodcommand.The default value is
0644. This value grants the file owner read and write permissions, and grants the user group and other users read-only permissions.NoteThis parameter is available only for Linux instances.
Overwrite
Specifies whether to overwrite an existing file with the same name in the target path.
By default, existing files are not overwritten.
Timeout Period
The timeout period for the file sending task. If the task takes longer than this value, Cloud Assistant forcibly terminates it.
Valid values: 10 to 86400. Unit: seconds. Default value: 60.
Tag
Add tags to the task to classify and maintain it. You must specify a Tag Key and a Value for each tag.
-
View file sending results
-
In the left-side navigation pane, choose Maintenance & Monitoring > Cloud Assistant.
-
Click the File Sending Result tab.
-
In the task list, view information about the file sending tasks, such as the execution status, execution ID, and target path.
You can also perform the following operations in the Actions column of the task list:
-
Click View to check the execution results of the task on each ECS instance.
-
Click Export to export the execution results.
-
Click Send Again to run the task again.
-
Related APIs
-
SendFile: Upload a local file to one or more ECS instances using Cloud Assistant.
-
DescribeSendFileResults: Query the results of a file sending task.