> For the complete documentation index, see [llms.txt](https://docs.linuxcontrolcenter.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linuxcontrolcenter.com.br/en/host-actions/execute-custom-script.md).

# 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

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-9c491171845e4402af4a9a00d4573628cae81ae9%2Fhosts_file_download.png?alt=media)
2. Click on **Actions** in the row and a desired host and click on **Execute Custom Script**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-c16d7755b56078efd8c3b7af6a592ff553e0e806%2Flinha_host.png?alt=media)
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**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-67067cc57f1e7a508c17e6c4f5d57f4d6817fe7d%2Factions_topo.png?alt=media)
4. Choose the Script you want to execute in the **Scripts** field

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-06991889c746098c9218037d320c09e788d62a71%2Fcampo_scripts.png?alt=media)
5. Click on **Yes** to execute the Script.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-120bcfbfdcd5708c54547960cfc11bf5ea1cfe73%2Fbotao_yes.png?alt=media)
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.

  ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-5d3b4da633a03137c80d31fdc06fa0faa9ec4937%2Factions_working.png?alt=media)
