> 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/scheduler.md).

# Scheduler

## Requirements

Linux Control Center = 2.12.X or higher

## Overview

* The Schedule feature in the Linux Control Center platform provides a robust time automation capability. This feature allows you to schedule precise operations for individual Hosts, Host Groups or Workflow execution.
* The scheduling options cover all LCC *Actions* for single or recurring events, providing flexibility in the scheduling format.

## Objective

This document aims to demonstrate the step-by-step process for creating a schedule in Linux Control Center.

## Create a Schedule

1. Access the **Schedule** screen in the left side menu.

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

1. Click **Create**.

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

1. Fill in the **Name** field to identify the schedule.

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

## Action Selection

1. The first step is to select which **Action** will be executed in the schedule.

{% hint style="info" %}
Only one action can be executed per schedule, and only one of the three options among *Host/Host Group, Discover, Workflow, Reports* can be selected at a time.

If it is necessary to execute more than one action in a single schedule, you must create a *Workflow* flow and schedule its execution for the desired time.
{% endhint %}

### Hosts / Host Groups

1. Check the first option to run an LCC *Action* on a Host or Host Group.

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

1. At least 1 **Host** or a **Host Group** must be selected.
2. It is also possible to run on an individual Host or Host Group simultaneously.

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

1. Choose the **Action** you want to run on the schedule.

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

### Discover

1. Check the **Discover** option if you want to schedule the execution of a pre-configured **Discover**. This schedule allows you to run only 1 Discover.

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

### Workflow

1. Click **Workflow** to schedule the execution of a pre-configured **Workflow**.

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

### Reports

1. Click **Reports** to choose which pre-configured Report will be created in the schedule.

![](https://gitlab.com/7dev-doc/linux-control-center/-/blob/main/pt-br/images/schedule/create_schedule)

## Schedule Type

* This step defines how many times and at what time the schedule will be executed.

### Once

* With this type of schedule, the *Action* will be executed only once and the schedule will remain saved in the LCC Console.

1. Check the **One Time** option to execute only once.

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

1. Enter the **Time** you want to execute in the **Hour** field. (24-hour format)
2. Enter the **Minute** you want to execute in the **Minute** field. (0 to 59)

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

1. Enter the day of the **Month** on which you want to execute the action in the **Date** field.

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

### Repeatedly

* The *Repeatedly* scheduling type allows execution according to the 3 options below;

#### Every Minute

1. Check the **Minute** box and enter how many minutes the *Action* will be executed. This way, the action will be executed every X minutes defined. (1 to 59)

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

#### Daily

* This type of schedule executes the *Action* only once a day, at the configured time.

1. Enter the *Hour* of the day you want to execute the *Action* in the **Hour** field. (24-Hour Format)
2. Enter the *Minute* of the hour you want to execute the *Action* in the **Minutes** field. (0 to 59)

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

#### Advanced

{% hint style="info" %}

* If you want the *Action* to be executed daily, just leave the **Day of Week** field blank(\*)

* If you want the *Action* to be executed monthly, just leave the **Month** field blank(\*)
  {% endhint %}

* This type of scheduling allows the action to be executed every *Day of the Week*, *Day of the Month* or every *Month*.

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

1. Select the day of the week on which the *Action* will always be executed in the **Day of Week** field.

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

1. Select the day of the month on which the *Action* will always be executed in the **Day of Month** field.

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

1. Select the month on which the *Action* will always be executed in the **Month** field.

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

## Save and Enable or Disable Schedule

1. Click **Save** to create the schedule.

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

1. The screen of created schedules displays some information;

**Enabled/Disable**: Indicates whether the schedule is enabled or disabled.\
**Repeat**: Indicates that the schedule will occur periodically according to the date entered.\
**Last Run at**: Date of the last execution of the schedule.\
**Created at**: Date of creation of the schedule.\
**Updated at**: Date of the last change to the schedule.<br>

1. Click on the created schedule.

![](https://gitlab.com/7dev-doc/linux-control-center/-/blob/main/pt-br/images/schedule/create_schedule)

1. The **Enable Schedule** field allows you to Enable and/or Disable the Schedule. When Enabling, the schedule will be executed automatically according to the configuration.

![](https://gitlab.com/7dev-doc/linux-control-center/-/blob/main/pt-br/images/schedule/create_schedule)

1. It is also possible to *Delete* a schedule permanently by clicking the **Delete** button.

![](https://gitlab.com/7dev-doc/linux-control-center/-/blob/main/pt-br/images/schedule/create_schedule)
