Creating Recovery Action Rules


After you enable recovery actions and notification, you need to create the following recovery action rules.

  • arsCmdType --the type of recovery action command script
  • arsCommand --the notification command script

Since recovery actions run at the managed node, you create these rules on the managed node.

About the Recovery Action Command Type (arsCmdType)

You must specify a command type to run a recovery action. You can specify the command type for all PATROL objects or for any individual PATROL application, instance, or parameter. PATROL has two built-in command types, PSL and OS. If you use a command type other than PSL or OS, the command type must be defined for the application class. For this example, PSL is the command type.

To Specify the Recovery Action Command Type

  1. Access the managed node KM menu, as described in Accessing KM Commands and InfoBoxes, and choose the command Event Management > Alert Settings > Local Alert Settings > Recovery Action Command Type > Set For Parameters.
  2. Select the application class CPU, instance CPU, and parameter CPUCpuUtil.
  3. From the SET EVENT MANAGEMENT VARIABLE: arsCmdType dialog box, enter PSL as the command type.
  4. To save your changes, click Accept.

To Specify the Recovery Action Command Script

  1. Access the managed node KM menu commands, as described in Accessing KM Commands and InfoBoxes, and choose the command Event Management > Alert Settings > Local Alert Settings > Recovery Action Commands > Set For Parameters.
  2. Select the application class CPU, instance CPU, and parameter CPUCpuUtil.
  3. From the SET EVENT MANAGEMENT VARIABLE: arsCommand dialog box, enter the following recovery action script:

    __udefvar__=annotate_get(\"/\.__appl_class__.\"/\".__instance__.\"/\".__param__);
  4. To save your changes, click Accept.

PATROL is now configured to include the annotated data in notification messages when the parameter CPUCpuUtil alarms. To customize the message format, see the next step, Creating-Notification-Command-Scripts.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC PATROL for Event Management 2.9.00