Performance-based Closed-loop Automation - Link KPIs to Playbooks and Run them Automatically

Change Automation (CA) - automates the process of deploying changes to networks with the help of Playbooks. A playbook consists of various plays.

Health Insights (HI) - Setup and monitor KPIs for your network devices

Create a KPI Profile

Go to Performace Alerts -> KPI Profiles -> Create KPI Profile Add the necessary KPIs and save the profile.

KPI Profile Creation

Enable the required KPIs.

Enable KPI Profile

Go to Performance Alerts -> KPI Profiles -> Enable/Disable KPI Profile.

Click on the created KPI profile and select the required device(s)/device group and enable required KPI(s).

KPI Profile Enable

Link KPI to Playbook

Go to Performance Alerts -> KPI Profiles -> Key Performance Indicators.

Select the KPI and click on "Link Playbook" button to link KPI to Playbook. Select the Severity of the Alert, and Set Remediation as (manual or Automatic)

Sample Payload:

{
  "devices": [
    "xrv9k-1"
  ],
  "kpi_profiles": [
    "test_profile"
  ]
}

Link KPI to Playbook

Sample Payload:

{
  "kpi": [
    {
      "kpi_id": "pulse_cpu_threshold",
      "kpi_name": "CPU threshold",
      "remediation": [
        {
          "url": "/crosswork/nca/v1/mopjobs",
          "level": "INFO",
          "automatic": true,
          "body": {
            "mop_id": "router_check_accessibility",
            "mop_name": "Check accessibility to router",
            "devices": {
              "ids": [
                "{{ index .Content `Producer` }}"
              ]
            },
            "check_start_time": 0,
            "exec_start_time": 0,
            "wae_threshold": "90",
            "name": "{{ index .Content `RemName` }}",
            "tags": [
              "{{ index .Content `RemTags` }}"
            ],
            "execution_params": {
              "1": {},
              "2": {}
            },
            "execution_params_user": {
              "1": {},
              "2": {}
            }
          }
        }
      ]
    }
  ]
}

KPI Alerts

Go to Performance Alerts -> Alert Dashboard.

Select on devices and see the alerts generated from device. Alert Dashboard

Once the alerts are generated, the linked playbook will be executed automatically. Playbook History