This section describes the procedure to create a Remediation Rule in the Administration page.

Prerequisites

The Actions must be pre-defined before creating the Remediation Rule. There are some pre-defined set of actions available in the Actions page which can be used while creating the Remediation Rule. The connection and parameters information including the hostname or IPaddress, username, and passwords for the corresponding Actions must be updated. For more information about Actions, see Working with Actions chapter.

Procedure

  1. Go to https://Telcocloud serviceassurance-ui-IP.
  2. Enter the username and password.
  3. Click Next.
  4. Navigate to Administration > Alarms Management > Remediation Rules.
  5. Click Add.
    The Add Remediation Rule page appears.
  6. Under Description, update the following parameters:
    • Name: Provide a name for the Remediation Rule. Only letters, numbers, hyphens, and underscores are allowed.
    • Description: Provide a description for the Remediation Rule.
    • Tag: Provide a tag name for the Remediation Rule.
    • Rule Type: Select a rule type for the Remediation Rule. The supported values are listed in the selection drop-down menu.
      • If the rule type is Manual, you can select only one event.Remediation Manual Rule
      • If the rule type is Automated, you can select multiple events.
    • For Automated rule type, under Advanced Settings, you have the Smoothing Interval. Select the smoothing interval in seconds from the drop-down list. This is an optional field.

      Remediation Automated Rule

    • Click Next.
  7. Under Filters, select the Property, Expression from the drop-down menu, and enter the Value.
    • To add multiple filters, click Add Group. The ORcondition tag is used when you add filters from different groups.
    • To add multiple properties for a given filter within the same group, click Add Condition. The AND condition tag is used when you add filters within the same group.
    • Click Next.
    Remediation Rule Filter
  8. Under Events, select the Event Name, and class type is, and the root cause from the drop-down menu.
    For example, Unresponsive, Switch, and it is not a root cause. Remediation Rule Events
  9. Under Remediation Action:
    • You can select the pre-defined remediation action or add an user-defined remediation action.
    • To select the pre-defined remediation action, select the required action from the list and click Save.

      The following screenshot is an example of pre-defined remediation action.Remediation Action

    • Under Advanced Settings, you can see Action Params. Provide a valid JSON for the actions params. Action Params is an optional field and can be used when you have a third-party plug-in installed.
    • To add an user-defined remediation action, click Add.

      The Add Remediation Page appears.

    • On the Add Remediation Action, update the following parameters:
      • Name: Provide a name for the action. Only letters, numbers, hyphens, and underscores are allowed.
      • Description: Provide the description details to an action.
      • Format: Select a format for an action. The supported values are YAML and Python.
      • Under Code Preview, click Upload and upload the Python action.
      • Click Save and click Finish.

        Once the action is created, you can select it from the actions list.

    For the automated Remediation Rule, an event is polled every five minutes. If an event matches the Remediation Rule, an action is triggered in the backend, and you can see the Remediation status in the Tasks page.

What to do next

To view the remediation actions in the Tasks tab, see Managing Tasks in the VMware Telco Cloud Service Assurance User Guide.