# Execute Custom Scripts

## Requirements

Linux Control Center = 2.10.X or higher

## Overview

The Execute Custom Script action is used to execute custom scripts on hosts that are being managed by the LCC.

## Objective

The purpose of this document is to demonstrate step by step how to use the Execute Custom Script action of the Linux Control Center.

## Executing Custom Scripts

1. Access the **Hosts** screen

   ![](/files/kLRZy7Wmwcn7AYdWfqAw)
2. Click on **Actions** in the row and a desired host and click on **Execute Custom Script**.

   ![](/files/LoZe8ljjrsGYZUQEN8kj)
3. To execute on multiple Hosts simultaneously, select the desired Hosts and click on **Actions** at the top of the page and click on **Execute Custom Script**.

   ![](/files/MV1IkpiskXy2fT7CGLty)
4. Choose the Script you want to execute in the **Scripts** field

   ![](/files/Lw3WIBLKotQ7TDxMIZ5e)
5. Click on **Yes** to execute the Script.

   ![](/files/wt4fmlz75HBG9F6lIC8y)
6. Click on the **Queue Working** button at the top of the page to monitor the execution of the action.

* **Note:** An independent **Execute Custom Script** Action will be created for each Host if the action is executed on more than one Host simultaneously, with separate logs for each execution.

  ![](/files/pLrOwWuEk3bGigbVWddq)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.linuxcontrolcenter.com.br/en/host-actions/execute-custom-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
