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

A method for reasonably managing your own command resources after creating a cloud assistant command

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail how to manage your own command resources reasonably after creating a cloud assistant command. The editor finds it very practical, so I share it with you as a reference. I hope you can gain something after reading this article.

Management command

After you have created a cloud assistant command, it is recommended that you manage your command resources reasonably. You can re-modify the command name and description, clone the command, or delete the command that is no longer needed to ensure that the command limit is not exceeded.

Modify command name and description

The steps to modify the command name and description on the ECS management console are as follows:

Log in to the ECS Management console.

In the left navigation bar, select Cloud Assistant.

Select the region.

Move the mouse to the command you need to modify, and then click the icon that appears in the pop-up window:

Command name: fill in the new command name.

Command description: fill in the new command description.

Click OK to complete the modification.

You can also use ECS API ModifyCommand to modify command information.

Clone command

The clone command is equivalent to a new version of the cloud assistant command. You can retain all the information about the cloned command, or you can modify the name, description, type, content, execution path, or timeout of the command. The steps to clone a command on the ECS management 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 helper command that needs to be cloned, and click Clone in the list of actions on the right.

In the Clone Command dialog box, you can. Complete the following optional steps:

Enter a new command name, such as HelloECS.

Enter a new command description, such as UserGuide.

Click the icon to change the command type in the drop-down list. Windows instances can choose Bat or Power Shell, while Linux instances need to select Shell.

Edit or paste the contents of the new command.

Determine the path to execute the command. The Bat or PowerShell command is located in the directory where the cloud helper client process resides by default, for example, C:\ ProgramData\ aliyun\ assist\ $(version). The Shell command defaults to the / root directory.

Sets the maximum timeout of the command in the instance, in seconds, with a default of 3600. A timeout occurs when the command you create cannot be run for some reason. After the timeout, the command process is forcibly terminated.

After confirming the changes, click OK.

Delete command

In an Ali cloud region, you can create up to 100 cloud assistant commands. It is recommended that you clean up commands on a regular basis to ensure adequate command usage. The steps to delete a command on the ECS Management 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 helper command that needs to be deleted:

Delete a command: click Delete in the list of actions on the right.

Delete multiple commands: select the target instance and click the delete command.

This is the way to manage your own command resources reasonably after creating a cloud assistant command. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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