EV Observe - Synthetic Monitoring Module - Scheduler

Last modified on 2023/09/28 16:51

The Scheduler allows you to schedule the execution of a task on remote machines. This may involve the launch of a non-graphical job (Job machine) and/or the execution of a scenario (Job session).

It can also be used to deploys tasks on the network for the local machine and child machines.
 

It is accessible from the Scheduler menu of the Scripts Manager tool or directly via the Systray.

Operating principle

You can run scenarios with different frequency on the same machine. For example, you could have scenario #1 running every 5 minutes and scenario #2 scheduled every 15 minutes.

To achieve this, the Scheduler regularly monitors scripts to be run in the machine and pushes them into the queue. Scenarios are then executed sequentially, in queue order.

Caution

  • In the case of scenarios to be played on the same machine at the same time, the order of execution is alphabetical.

Best Practice

  • You can start a task immediately without waiting for the scheduled iteration if you just want to check it. Click Start Now in the menu bar.
  • You can add exclusions in the initial schedule if maintenance periods are planned making the application unavailable. Click Exclusion in the menu bar.

Description of the screen

The screen is made up of the following zones:

          Scheduler with areas.png

Menu bar

Send Task: Launch the task depending on its programming.

Start Now: Allows to check the task immediately without waiting for the scheduled iteration.

Sequencing: Allows to organize and sequence the scenarios. Open url.png See Scripts Sequencing.

Exclusion: Allows to add exclusions in the initial schedule.

Best Practice icon.png  Add exclusions if maintenance periods are planned making the application unavailable.

Tasks

A task is a set of one or more scenarios that will be played according to a specific schedule. The left panel Tasks allows you to manage all the existing tasks.

The toolbar allows you to:

  • Create a new task
  • Rename the task
  • Copy a task
  • Delete the task
  • Refresh the list of tasks

          Scheduler - Tasks - Toolbar.png

Properties of the selected task

The central panel Properties displays all the properties contextual to the task.

          Scheduler - Tasks - Properties.png

Days: List of days on which the task is active (checked box) or inactive (unchecked box).

Date: Date range for programming period.

  • If the EndDateTask parameter is empty, there is no end date.

Hour: Time range for programming period.

  • UseLocalMachine: Indicates whether to use local machine time or database time. This allows management metrics from machines on several time zones.

Runtime:

  • FrequencyStart: Frequency of task execution (in minutes).
  • JobIterations: Number of times that the scenario is played in this task.
  • Mode:
    • DropIfLate: Allows to not reprogram the task if the same is in the queue waiting to be played.
    • NeverOverTakeSchedule: The task is independent of scheduled tasks waiting to be executed in the queue.
  • Sequencing: List of scenarios included in the task.
  • ShiftStartMin: Interval to run the task between different machines.
    • If interval is 0, the task starts on the different parent machines at the same time.
    • If interval if different from 0, the task is shifted from one machine to another. This option allows for example to manage application licenses.

Task: Indicates if the task is active or not.

Misc:

  • OnError:
    • ContinueScheduling: The scheduling of the task continues on a script error.
    • StopScheduling: The scheduling of the task is suspended on a script error.

Machines linked to the selected task

The central panel Running on User(s) displays the list of the machines on which the task is scheduled.

          Scheduler - Tasks - Destinations.png

Scripts sequencing

The right panel Scripts Sequencing displays the list of the scenarios to be played in the task.

  • It can be user and/or System scenarios.
  • You can organize and sequence them in different ways depending on whether they are independent or dependent scenarios.
  • You can define the number of times that the scenario is to be played.

     Open url.png See the procedures.

Independent user scenarios

The user scenarios played by the task are independent.

  • They are all at the same hierarchical level.
  • If a scenario ends in error, there are no impact for the other scenarios that can be played.

          Scheduler - Scripts sequencing - Independent scenarios list.png

Dependent user scenarios

The user scenarios played by the task are dependent.

  • They depend on the completion of the previous scenario.
  • A scenario can be played either if the previous scenario ends correctly (displayed in green), or if it ends in error (displayed in red).
  • You can define a multi-level scenario hierarchy.

          Scheduler - Scripts sequencing - Dependent scenarios list.png

System scenarios

System scenarios can either restart the Synthetic Monitoring Service (xService) or reboot the machine.

  • You can integrated them into a multi-level scenario hierarchy.

          Scheduler - Scripts sequencing - System scenarios list.png

Procedures

How to start the Scheduler from the Systray

1. Right-click on the Systray icon Systray icon - Synthetic Monitoring - xSession on.png.

          Systray icon bar.png

2. Select the Show Scheduler option in the menu.

The Scheduler window will appear.

How to organize and sequence scenarios in a task

1. Launch the Scripts Manager tool.

2. Go to the Scheduler > Sequencing menu.

3. Select the task for which you want to organize scenarios.

4. Execute the actions below according to the type of scenarios.

Independent scenarios

  • Select the User option.
  • Select the script from the list.
  • Click Add icon.png.
  • (optional) Add an interval between the execution of each scenario.
            Scheduler - Scripts sequencing - Independent scenarios.png

Scenarios will be added one after the other in the Scripts Sequencing panel.
        Scheduler - Scripts sequencing - Independent scenarios list.png

Dependent scenarios

  • Select the User option.
  • Select the script from the list.
  • Click Add icon.png.
  • Check the box Run if selected script.
            Scheduler - Scripts sequencing - Dependent scenarios.png
  • Indicate the way you want to execute the selected scenario:
    • Succeeded option: The scenario will be executed only if the previous scenario ends correctly.
      The selected scenario will be displayed in green in the hierarchy.
    • Failed option: The scenario will be executed only if the previous scenario ends in error.
      The selected scenario will be displayed in red in the hierarchy.
              Scheduler - Scripts sequencing - Dependent scenarios list.png
       

System scenarios

  • Select the System option.
  • Select the script from the list: Reboot or Restart Service.
  • Click Add icon.png.

          Scheduler - Scripts sequencing - System scenarios.png

  • Indicate the way you want to execute the selected scenario:
    • Succeeded option: The scenario will be executed only if the previous scenario ends correctly.
      The selected scenario will be displayed in green in the hierarchy.
    • Failed option: The scenario will be executed only if the previous scenario ends in error.
      The selected scenario will be displayed in red in the hierarchy.
              Scheduler - Scripts sequencing - System scenarios list.png

5. Define the number of times you want to play the selected scenario in the Script Iterations field.

          Scheduler - Scripts sequencing - Script iterations.png

The number of iterations appears after the scenario name.
        Scheduler - Scripts sequencing - Script iterations result.png

6. Define the Dataset options in the Script Dataset section.

Tags:
Powered by XWiki © EasyVista 2024