Running tasks on CPE devices
Kaspersky SD-WAN supports running tasks on CPE devices at a specified time. You can use tags to group CPE devices on which you want to run a task.
Two types of tasks exist:
- Scheduling scripts on CPE devices.
- Scheduling firmware updates on manually selected CPE devices and on CPE devices with specified tags.
When you create a task, it uses the time zone of the virtual machine on which the orchestrator is deployed. For example, if you schedule a script to run on a CPE device at 2:00 p.m., the script runs at 2:00 p.m. in the time zone of the orchestrator, even if the time on the CPE device is 6:00 p.m.
We recommend taking into account the following special considerations when managing tasks:
- A 10-second inaccuracy is considered acceptable for the moment when the task is run.
- If multiple tasks exist, they run simultaneously. If the orchestrator cannot run all tasks simultaneously, they are run in the order they were created.
- Deleting a CPE template automatically deletes all tasks associated with it.
- Deleting a CPE device automatically deletes all tasks associated with it.
- When deleting a script associated with tasks, this action requires additional confirmation. If you confirm the action, the script is deleted and cannot be run within the created tasks.
You can manually run tasks that have not yet been run.
The table of tasks is displayed in the Scheduler section. Information about tasks is displayed in the following columns of the table:
- ID is the ID of the task.
- Name is the name of the task.
- User is the name of the user which created the task.
- Created is the date and time when the task was created.
- Status is the status of the task:
- Done means the task has been completed successfully.
- Error means an error occurred while running the task.
- Pending means the task is placed in the orchestrator database and is awaiting execution.
- Queued means the task is queued for execution.
- Running means the task is running.
- Scheduled is the date and time when the task is to be run.
The actions that you can perform with the table are described in the Managing solution component tables instructions.
Creating a task
To create a task:
- In the menu, go to the Scheduler section.
The table of scheduled tasks is displayed.
- In the upper part of the page, click + Task.
- Specify the settings of the task. For a description of task settings, see the following instructions:
- Click Create.
The task is created and displayed in the table.
Page topManually running a task
To manually run a task:
- In the menu, go to the Scheduler section.
The table of scheduled tasks is displayed.
- To manually run an individual task:
- Click the task that you want to manually run.
The settings area is displayed in the lower part of the page. You can expand the settings area to fill the entire page by clicking the expand icon
.
- In the upper part of the settings area, under Actions, click Run now.
- Click the task that you want to manually run.
- To manually run multiple tasks:
- Select check boxes next to tasks that you want to manually run.
- In the upper part of the table, click Actions → Run now.
- In the confirmation window, click Run now.
The tasks are completed, and their status in the Status column changes to Done.
Page topDeleting a task
Deleted tasks cannot be restored.
To delete a task:
- In the menu, go to the Scheduler section.
The table of scheduled tasks is displayed.
- To delete an individual task:
- Click the task that you want to delete.
The settings area is displayed in the lower part of the page. You can expand the settings area to fill the entire page by clicking the expand icon
.
- In the upper part of the settings area, under Actions, click Delete.
- Click the task that you want to delete.
- To delete multiple tasks:
- Select check boxes next to tasks that you want to delete.
- In the upper part of the table, click Actions → Delete.
- In the confirmation window, click Delete.
The tasks are deleted and is no longer displayed in the table.
Page top