Help Center/ Cloud Bastion Host/ User Guide/ Operation/ Fast O&M/ Managing File Transfer Tasks
Updated on 2024-09-24 GMT+08:00

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

  1. Log in to your bastion host.
  2. Choose Operation > Fast Operation > File Transfer Console to go to the File Transfer Console tab.

    Figure 1 File Transfer Console

  3. Configure fast file transfer information.

    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

    • The managed resource account allowed to execute the script. You can select a created SSH account or account group.
    • You can also Reset the selected 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.

  4. Execute the file transfer task.

    Click Execute next to the File text box to execute the file transfer task.

  5. 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.

  6. 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

    1. In the execution result area, enter a keyword in the search box to quickly query the task execution result by resource name, execution result, or execution account.
    2. Click Expand to view the execution results of the corresponding task.
    3. Click Export to download the corresponding execution logs in CSV format.
      Figure 2 File transfer task results