Managing Script Operation Tasks
A bastion host supports fast operations. You can manage many scripts concurrently by executing commands. You can execute the same script on multiple host resources that use the SSH protocol through one task, and the corresponding execution results are returned accordingly.
This topic describes how to manage script operation tasks, including creating, executing, and stopping script operation 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.
- Choose Operation > Fast Operation > Script Console to go to the quick script operation page.
Figure 1 Script Console
- Configure fast script operation information.
Table 1 Fast script operation parameters Parameter
Description
Script
The script to be executed for the host resources.
- You can select the script content in the script management module or upload a new local script file.
Param
(Optional) user-defined script parameter.
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) If you have no permissions for the selected accounts, select Sudo to escalate your privilege and execute the task under the sudoers file.
- Execute the script operation task.
Click Execute next to the Script text box to execute the script operation task.
- Stop the script operation task.
Click Stop to stop the task.
Stopping a task cannot stop the corresponding job that is being executed on a certain resource.
- View the execution results.
After the script operation 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, 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot