Managing File Transfer Tasks
A bastion host supports fast operations. You can quickly upload system disk files or local files to paths of many managed hosts at a time. You can upload one or more files to multiple hosts with just one file transfer task and the system returns the execution results.
This topic describes how to manage file transfer tasks, including creating, executing, and stopping file transfer tasks, and viewing task execution results.
Constraints
- Fast operation is supported by professional editions only.
- Fast operation tasks apply only to Linux hosts using the SSH protocol.
- Currently, Fast operation tasks cannot be performed on Windows host, database, or application resources.
Prerequisites
- You have the management permissions for the Fast Operation module.
- You have obtained the access permissions for the resources.
- The network between the managed hosts and the bastion host is connected.
Procedure
- Log in to your bastion host system.
- In the navigation pane on the left, choose .
- Click the File Transfer Console tab page. The page for fast file transfer is displayed.
- Configure fast file transfer information. Figure 1 File transfer console
Table 1 Parameters for fast file transfer Parameter
Description
File
Files to be transferred. The system disk file is selected by default. You can also upload the local file to the personal net disk and then select the file.
A maximum of 10 files can be selected.
Target Path
Absolute path on the host to which files are transferred
execute account
- Add an execution account or account group: Click Select. On the Execute Account or Execute Account Group tab page, select a resource account or account group from the Selectable accounts or Selectable account groups area, click
to move it to the Selected accounts or Selected account groups area, and click OK. - Remove an execution account or account group: Click Select. On the Execute Account or Execution Account Group tab page, select the desired resource account or account group in the Selected accounts or Selected Account Groups area, click
to move it to the Selectable accounts or Selectable account groups area, and click OK. - Reset an execution account or account group: Click Reset to clear the added execution account or account group.
NOTE:You can select a maximum of one account for each resource.
Options
(Optional)
- (Optional) If you have no permissions for the selected accounts, select Sudo to escalate your privilege and execute the task under the sudoers file.
- Override rename file: If a file with the same name as the file to be uploaded exists in the target path of the destination host, the existing file will be overwritten by the newly uploaded file.
- Add an execution account or account group: Click Select. On the Execute Account or Execute Account Group tab page, select a resource account or account group from the Selectable accounts or Selectable account groups area, click
- Execute the file transfer task.
Click Execute next to the File text box to execute the file transfer task.
- Stop the file transfer task. Click Stop to stop the task.
Stopping a task cannot stop the job that is being executed until the job is done.
- View the execution results.
After the file transfer task is executed, check the execution results. To view execution results of historical operation tasks, see Viewing Execution Logs
- In the execution result area, enter a keyword in the search box to quickly query the task execution result by resource name, execution result, host address, or execution account.
- Click Expand to view the execution results of the corresponding task.
- Click Export to download the corresponding execution logs in CSV format.