> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.red/llms.txt
> Use this file to discover all available pages before exploring further.

# Script Runner

> Create, manage, and execute scripts or Ansible playbooks in Orchestration.

**Script Runner** in Orchestration is the central hub for creating, managing, and running scripts and Ansible playbooks.\
It allows for quick execution of **tasks** across devices, track outputs, and manage associated resources like forms, tags, and Readmes, all in one place.\
Additionally, Script Runner provides the capability to set up easy-to-use, predefined "solutions" that users can access without ever needing direct access to the devices the solution is allowed to operate against.

***

## 📖 What is a Script?

A **Script** in Script Runner is a lightweight program that can be executed directly on the **F5 platform** to perform a wide variety of actions.\
We currently support four interpreters:

* **Bash**
* **Python**
* **Node**
* **TCLSH**

***

## 📌 Overview

The **Script Runner** page provides the following functionality:

* Create new scripts or solutions
* Edit and execute existing scripts
* View execution results in real time
* Manage forms, documentation, tags, and schedules associated with scripts
* Organize scripts and services in a structured, labeled table

The **New** button in the top-right corner provides options to:

* **Create Script**
* **Create Solution**

<img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/script-runner-new-button-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=17b961e997e7c877efd54db1490a9982" width="1920" height="1080" data-path="orchestration/orchestration-images/script-runner-new-button-dark.png" />

<img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/script-runner-new-button-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=17b961e997e7c877efd54db1490a9982" width="1920" height="1080" data-path="orchestration/orchestration-images/script-runner-new-button-dark.png" />

***

## 📋 Script & Service Table

All created scripts and services appear in a structured table.

| Column          | Description                                             |
| --------------- | ------------------------------------------------------- |
| **Name**        | Name of the script or service                           |
| **Runner**      | Type of runner (e.g., Script or Ansible)                |
| **Description** | Detailed explanation of what the script or service does |
| **Form**        | Add a form if none exists, or execute an existing form  |
| **Action Menu** | Options to manage the script or service                 |

***

## 📝 Creating a New Script

1. To create a new script, click "New Script" using the "New" button in the upper-right corner of the Script Runner page.

<img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/create-new-script-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=bd19dda1e87b4d640375cbd49be0dcbe" width="1920" height="1080" data-path="orchestration/orchestration-images/create-new-script-dark.png" />

<img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/create-new-script-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=bd19dda1e87b4d640375cbd49be0dcbe" width="1920" height="1080" data-path="orchestration/orchestration-images/create-new-script-dark.png" />

2. On the script creation page:

   * Write or copy the intended script for use.

   <img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/script-code-component-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=5165f546130a6d2923b242f8fdc70476" width="1920" height="1080" data-path="orchestration/orchestration-images/script-code-component-dark.png" />

   <img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/script-code-component-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=5165f546130a6d2923b242f8fdc70476" width="1920" height="1080" data-path="orchestration/orchestration-images/script-code-component-dark.png" />

   * **Script Runner** allows the ability to **Run** the script immediately against selected devices before saving. To do so, select the devices or device groups (includes the ability to chose device state: active, standby, or any if using device groups) that the script is intended to run against.

   <img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/koMaGrKIt_v1XVcy/orchestration/orchestration-images/set-devices-script-dark.png?fit=max&auto=format&n=koMaGrKIt_v1XVcy&q=85&s=281a98599d35d0e5aeedea48bba0a9cc" width="1920" height="1080" data-path="orchestration/orchestration-images/set-devices-script-dark.png" />

   <img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/koMaGrKIt_v1XVcy/orchestration/orchestration-images/set-devices-script-dark.png?fit=max&auto=format&n=koMaGrKIt_v1XVcy&q=85&s=281a98599d35d0e5aeedea48bba0a9cc" width="1920" height="1080" data-path="orchestration/orchestration-images/set-devices-script-dark.png" />

   * Select the "Run" button to execute the task.

   <img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/run-script-immediately-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=7f36e88b084895445ac2d03b830d8e49" width="1920" height="1080" data-path="orchestration/orchestration-images/run-script-immediately-dark.png" />

   <img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/run-script-immediately-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=7f36e88b084895445ac2d03b830d8e49" width="1920" height="1080" data-path="orchestration/orchestration-images/run-script-immediately-dark.png" />

<Tip> If run immediately, results are shown in real time on the right-hand side of the page </Tip>

* To save the script for later use, select Save Script, and enter a **Name** and **Description**.

<img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/save-script-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=e4b09f1561abd60216acc076abb663aa" width="1920" height="1080" data-path="orchestration/orchestration-images/save-script-dark.png" />

<img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/save-script-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=e4b09f1561abd60216acc076abb663aa" width="1920" height="1080" data-path="orchestration/orchestration-images/save-script-dark.png" />

3. Saving a script allows:

   * Ease of use through the script runner repo.

   <img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/save-final-script-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=51a6bd66c010b6f0fed6a3cf3a40cd41" width="1920" height="1080" data-path="orchestration/orchestration-images/save-final-script-dark.png" />

   <img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/save-final-script-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=51a6bd66c010b6f0fed6a3cf3a40cd41" width="1920" height="1080" data-path="orchestration/orchestration-images/save-final-script-dark.png" />

   * Ability to create easy-to-use forms for convenience in future use or for the creation of solutions.

   <img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/run-form-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=7c73fae2816e5b90cbcdbe79623fc981" width="1920" height="1080" data-path="orchestration/orchestration-images/run-form-dark.png" />

   <img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/run-form-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=7c73fae2816e5b90cbcdbe79623fc981" width="1920" height="1080" data-path="orchestration/orchestration-images/run-form-dark.png" />

**Optional:**

* Email script output to a chosen contact list
* Send notifications to a selected contact list

<img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/email-script-output.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=4627bc7d0745ac56608e6db12e6fcb13" width="1920" height="1080" data-path="orchestration/orchestration-images/email-script-output.png" />

<img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/email-script-output.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=4627bc7d0745ac56608e6db12e6fcb13" width="1920" height="1080" data-path="orchestration/orchestration-images/email-script-output.png" />

***

## 📖 Add README File

A **README file** can be found for a script or a service to provide documentation, usage notes, or additional context.

### ➤ Access the README Tab

Open any script or service and navigate to the **README** tab.

<img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/readme-tab-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=48841e0fb07ffcb9dd71cb6948fd9083" alt="README Tab Light Mode" width="1920" height="1080" data-path="orchestration/orchestration-images/readme-tab-dark.png" />

<img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/readme-tab-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=48841e0fb07ffcb9dd71cb6948fd9083" alt="README Tab Dark Mode" width="1920" height="1080" data-path="orchestration/orchestration-images/readme-tab-dark.png" />

### ➤ Edit or Add a README File

<Note>README files can only be added or edited for scripts, not for solutions or services</Note>

Click **Edit** to create a new README or update an existing one.\
Use this space to describe script functionality, usage instructions, or dependencies.

<img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/readme-tab-edit-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=96b8e91050749d384ebaa0cbb2ffebb4" alt="Edit README Light Mode" width="1920" height="1080" data-path="orchestration/orchestration-images/readme-tab-edit-dark.png" />

<img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/AQSK3WOPlgyaBGvE/orchestration/orchestration-images/readme-tab-edit-dark.png?fit=max&auto=format&n=AQSK3WOPlgyaBGvE&q=85&s=96b8e91050749d384ebaa0cbb2ffebb4" alt="Edit README Dark Mode" width="1920" height="1080" data-path="orchestration/orchestration-images/readme-tab-edit-dark.png" />

### ➤ View an Existing README

Once saved, the README is displayed in the tab for quick reference by all users who access the script or service.

<img className="block h-96 dark:hidden" src="https://mintcdn.com/cloudred/koMaGrKIt_v1XVcy/orchestration/orchestration-images/view-readme-file.png?fit=max&auto=format&n=koMaGrKIt_v1XVcy&q=85&s=651d5bb32878120616de029a23b165e4" width="1920" height="1080" data-path="orchestration/orchestration-images/view-readme-file.png" />

<img className="hidden h-96 dark:block" src="https://mintcdn.com/cloudred/koMaGrKIt_v1XVcy/orchestration/orchestration-images/view-readme-file.png?fit=max&auto=format&n=koMaGrKIt_v1XVcy&q=85&s=651d5bb32878120616de029a23b165e4" width="1920" height="1080" data-path="orchestration/orchestration-images/view-readme-file.png" />

<Tip>README files support Markdown syntax. Use Markdown for Better Formatting.</Tip>

***

## 🛠 Action Menu Options

The **Action Menu** provides quick management tools:

* **Delete** script or service
* **Add / Edit / Delete Form**
* **Create Solutions**
* **Add / Edit README** file associated with the script/service
* **Add Tags** for better categorization
* **View Scheduled Tasks** linked to the script/service
