# Playbooks Explained

The playbook is a set of defined actions that can be run on devices.

To create a playbook, go to Playbooks -> My Playbooks in the left menu and use the grid plus icon to create a new one.

Playbooks

The playbook can be scheduled or run immediately by clicking on the calendar icon on the right.

# Available Playbook Actions

When creating a playbook, fill in the name, company, and device type. A playbook can be run only for a single device type because of setting differences between the device types. Select the devices you want to run the playbook for.

You can add these types of actions to the playbook:

  1. Set Firmware
  2. Install Router App
  3. Apply a Settings Group
  4. Reboot Devices
  5. Change Local Password

Playbooks

# Playbook States

The state of the playbook can be found in the list of the playbooks or after clicking on the playbook name:

Playbooks

Once created, the playbook is in the state

  • Draft

and can be edited or deleted.

Once the playbook is

  • Scheduled (Queued)

it can be unscheduled and then goes back to the Draft state.

Once run, the playbook can be in one of these states:

  • Running
  • Completed
  • Completed with Failure (some actions completed, some were started but failed)
  • Failed (all actions failed)
  • Aborted (aborted when running)
  • Incomplete (some actions completed, but some could not be started, e.g., one device is offline during all attempts to run a playbook).

See the device actions details by clicking the eye icon on the right.

If the playbook is run on the offline device, the status may be "Incomplete", but it is remembered to run the actions after the device appears online again. When the device is back online, the playbook is finished and reaches the "Completed" status.

The playbook run is affected by the sync engine, and by default, the actions are attempted to run three times (see details on sync configuration below).

You can filter the playbooks by state using this icon:

Playbooks

# Sync Configuration via API

Playbooks running behavior is affected by the sync engine. The sync engine uses the default configuration (sync type, retry interval, retry attempts), and it currently cannot be changed in the UI.

It can be changed via API (opens new window) call PUT /syncengine/config:

Playbooks

The default values are as follows (adjust the company_id):

{
  "sync_type": "Custom",
  "retry_interval": 0,
  "retry_attempts": 3,
  "company_id": 0
}

Explanation / other available values:

  • "sync_type":
    • "Never" - means do not try ever again after once being sent.
    • "Forever" - means try to sync forever until it succeeds.
    • "Custom" - means follow the retry_interval and retry_attempts values.
  • "retry_interval" - if sync_type is Custom, use this interval in seconds to wait between attempts.
  • "retry_attempts" - if sync_type is Custom, try this many additional attempts to sync.