Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of executing a command in one or more instances after creating a cloud assistant command

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of executing a command in one or more instances after creating a cloud assistant command, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Execute a command

After you create a cloud helper command, you can execute the command in one or more instances. The execution status and results of multiple instances do not affect each other, and you can also set the execution cycle for the command.

Use restriction

In an Ali cloud region, you can execute cloud assistant commands up to 500 times a day.

You can select up to 50 instances at a time.

The state of the target instance must be in Running.

The target instance must have the Cloud Assistant client installed.

The network type of the target instance must be a private network VPC.

The interval set by the periodic cloud assistant command cannot be less than 10 seconds.

The time benchmark for cycle execution is UTC + 08:00, and this time is based on the system time of the instance. You need to make sure that the time or time zone of your ECS instance is the same as your expected time.

Execute a command

The steps to execute the command on the administrative console are as follows:

Log in to the ECS Management console.

On the left navigation bar, click the Cloud Assistant.

Select the region.

Locate the cloud assistant command to be executed, click execute in the list of operations on the right, and click execute in the pop-up window on the right:

Click to view the command contents to confirm the command contents.

Click to select an instance, and in the pop-up window:

Check one or more instances.

Click to select the instance.

Description

Bat or PowerShell command can only select Windows instance, Shell command can only select Linux instance, and the instance must have cloud assistant client installed. Otherwise, the instance cannot be selected after clicking the icon.

Click OK.

Choose to execute immediately or regularly:

Execute immediately: the cloud helper command can be executed once in the instance.

Timed execution: use Cron expressions to set commands as periodic tasks. Fill in the execution time. For more details, please see the description of the value of Cron expression.

Click execute.

You can also use ECS API InvokeCommand to execute cloud helper commands.

Stop executing a command

Prerequisite: the command execution state must be in progress (Running) or periodic command.

The steps to stop the command on the administrative console are as follows:

Log in to the ECS Management console.

In the left navigation bar, select Cloud Assistant.

Select the region.

In the execution record area, find the command that needs to be stopped, and click stop execution in the action bar.

Next step

Query execution result and status

Thank you for reading this article carefully. I hope it will be helpful for you to share the method of creating a cloud assistant to execute the command in one or more instances. At the same time, I also hope that you will support and pay attention to the industry information channel. if you encounter problems, look for detailed solutions waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report