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

Managing File Transfer Tasks

CBH gives you the ability to quickly upload system disk files or local files to paths of multiple 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 available only in the CBH professional editions.
  • 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 Ops module.
  • You have obtained the access permissions for the resources.
  • The network connections between the managed hosts and the CBH system are normal.

Procedure

  1. Log in to the CBH system.
  2. Choose Operation > Fast Ops > 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