Adding a parameter recovery action

This section describes how to set a parameter recovery action using the PATROL Developer Console for Windows and UNIX.

Parameter recovery action properties

The following table describes the recovery action properties of a parameter. 

 Parameter Recovery action properties 

PropertyDefaultDefinition
Border and alarm actions

Out of Range State (for Border Actions) 
Alert State (for Alarm1 or Alarm2 Actions)

OK

Click OK when the result of a range breach does not indicate a serious condition. Click Warning or Alarm to 
have the parameter undergo a state change when its value occurs within the range.

Trigger AlarmImmediately on alarm

Click Immediately on alarm when the value indicates a serious condition. To eliminate false alerts due to random 
spikes in the return values, click After an alarm has occurred "n" times

Set the number of consecutive times the value must breach the range before the parameter actually changes to an alarm 
or warning state in the associated N times option. Click After all recovery actions fail to only alert the user after all recovery 
actions fail and the parameter's value is still with in the alarm or warning range.

N TimesNone

Sets the number of consecutive times the value must breach the range before the parameter actually changes to an alarm or 
warning state if the After an alarm has occurred "n" times Trigger Alarm option is enabled.

Recovery ActionNone

Lists any recovery actions that are defined for the selected parameter alert range. A recovery action is a corrective action or 
other script that is executed automatically when a parameter enters a warning or alarm state. If multiple recovery actions are 
defined, they are executed consecutively, one each poll time, until the alarm has cleared or no recovery action remains.

General
NameNone

Type a name for the recovery action. Select a name that will help identify the parameter that launched the recovery action. 
If this recovery action is a task, its name will appear with the task icon.

Command/TaskCommand

Specify whether to run the recovery action as a command or a task by clicking Command or Task. If you choose to run 
the recovery action as a task, an Icon tab is displayed, and you must select task icons.

Task OptionsNone

For task recovery actions only.

  • Click Show Timer to display the time that the recovery action was executed.
  • Click Popup Output Window to have the task output window opened automatically on completion
  • Click Task is Interactive to require user interaction, such as entering information, before the task executes.
Availability OptionsNoneCurrently not applicable.
Command
Computer ClassALL_COMPUTERS

The computer class against which the recovery action is to be executed. Choose ALL_COMPUTERS to execute 
the recovery action consistently on every computer.

Command TypeOSSelect the language used to write the command script from the list of installed command types.
CommandNoneThe text editor window in which to type or copy the recovery action commands in the selectedCommand Type.
Save in KMYes

Click Save in KM to save the recovery action command as part of the PATROL KM file in the following 
directory:%HOMEDRIVE%%HOMEPATH%\patrol\knowledge.

Save to FileNo

Click Save to File to save the recovery action command in a separate file in the \psl directory. Selecting this option allows 
the file to be referenced by other parameters, commands, recovery actions, etc. However, this technique is difficult to manage 
and many PATROL KM problems can result from selecting this technique.

Security
Security TypeInherit

Sets the account and password under whose authority the recovery action is executed. Click Inherit to specify that the recovery 
action inherits the logon account and password that the PATROL Agent uses to run parameter commands. 

Click Specify to specify a specific account and password in the associated Username and Password fields. Click Prompt if you 
want the PATROL user to be prompted to enter the logon account name to be used to execute the recovery action before the recovery 
action can be run. For detailed information, see the PATROL Console for Windows Help.

User nameNoneEnter an account to run recovery action commands. For detailed information, see the PATROL Console for Windows Help.
PasswordNoneEnter the password for the account that you entered. For detailed information, see the PATROL Console for Windows Help.
Verify PasswordNone

If you have entered an account and its password, re-enter the account password for verification. 
For detailed information, see the PATROL Console for Windows Help.

Environment
Name/Value ListNoneIf environment variables are defined for this parameter, each variable and its assignment are listed.
NameNoneThe name of the environment variable.
ValueNoneThe value assigned to the variable.
Icon (Tasks only)
Select OK Icon for TaskNoneType the file name for the OK Icon to be used for the recovery action task.
Select Attention Icon for TaskNoneType the file name for the Attention (Not OK) Icon to be used for the recovery action task.

Adding a parameter recovery action on Windows

In this task, you will add a recovery action to a parameter.

To add a parameter recovery action on Windows

  1. Click the Actions tab on the Parameter Properties dialog box for the alarm range that want to add a recovery action. The Alarm1 Actions tab is shown in the following figure. The Border, Alarm1, and Alarm2 Actions tabs will only be available if the alarm ranges are enabled on the Alarm Ranges tab as shown in Parameter Properties dialog, Alarm Ranges tab. 

    Parameter Properties dialog box, Typical Actions tab

  2. Select the appropriate values for the Alert State and Trigger Alarm options. Parameter Recovery action properties summarizes the available options.
  3. To add a recovery action, click the Add Text Editor tool as shown in the following figure. The Recovery Actions Properties dialog box appears, as shown in the following figure, for you to name the new recovery action and define its properties. 

    Recovery Actions Properties dialog box, General tab

  4. Select the appropriate values for the recovery action options. To add a parameter command script on Windows summarizes the available options.
  5. Click the Command tab on the Recovery Actions Properties dialog box for the appropriate alarm or border action. The Command properties for the selected recovery action appear as shown in the following figure. 

    Recovery Actions dialog box, Command tab

  6. Select the appropriate options for the Computer Class and the Command Type properties that appear on the Command tab. Parameter Recovery action properties summarizes the available options.
  7. Type the recovery action commands to gather parameter data in the Command text box.
  8. Click Apply to save the changes to the PATROL KM.
  9. Click the Security tab on the Recovery Actions Properties dialog box for the appropriate alarm or border action. The Security tab for the selected recovery action appears as shown in the following figure. 

    Recovery Actions Properties dialog box, Security tab

  10. Select, add, or modify the appropriate options that appear on the Security tab. Parameter Recovery action properties summarizes the available options.
  11. Click Apply to save the changes to the PATROL KM.
  12. Click the Environment tab on the Recovery Actions Properties dialog box for the appropriate alarm or border action. The Environment tab for the selected recovery action appears as shown in the following figure. 

    Recovery Actions Properties dialog box, Environment tab

  13. Select, add, or modify the appropriate options that appear on the Environment tab.
    • To add an environment variable, type it name and its value in the Name and Value text boxes.
    • To change an existing environment variable, choose the variable from the Name/Value list and make the changes in the Name and Value text boxes.
  14. Click Apply to save the changes to the PATROL KM.
  15. For recovery actions that are tasks, click the Icons tab on the Recovery Actions Properties dialog box for the appropriate alarm or border action. The Icon properties for the selected recovery action task appear as shown in the following figure. 

    Recovery Actions Properties dialog box, Icons tab

  16. Select, add, or modify the appropriate options that appear on the Icons tab.
  17. Click Apply to save the changes to the PATROL KM. The recovery action is complete.

Adding a parameter recovery action on UNIX

In this task, you will add a recovery action to a parameter. 

A recovery action is a corrective action or other script that is executed automatically when a parameter enters a warning or alarm state. You can define recovery actions for the Border range and for the Alarm1 and Alarm2 ranges.

To add a parameter recovery action on UNIX

  1. Click the appropriate alert: BorderAlarm1 or Alarm2, in the List of Ranges window, and select Edit > Modify from the List of Recovery Actions window menu bar.
    The alarm definition dialog box is displayed as shown in the following figure. 

    Alarm Definition dialog box
  2. Click Recovery Actions to access the recovery action dialog box.
    The List of Recovery Actions window appears similar to the one shown in the following figure. 

    List of Recovery Actions window


    The window shows the recovery actions that currently exist for the selected parameter alert. The commands listed in the List of Recovery Actions window are performed when the parameter value returned occurs within the specified alarm range.
    If multiple recovery action commands are defined, they are executed consecutively, one each poll time, until the alarm has cleared or no recovery action remains.
  3. To define a new recovery action for a parameter alert, choose Edit > Add from the menu bar. The recovery action definition dialog box in the following figure. 

    Recovery Actions Command Definition dialog box

  4. Choose the appropriate values for the recovery action options.
  5. Click the Command button next to the text field in the Command Definition dialog box for the appropriate alarm or border action.
    The Command text edit window appears as shown in the following figure. 

    Command text editor window


    This window will have different menu options and functions depending on the type of command you are entering. Click Help for more information about the window.
  6. Choose one of the following options to create the recovery action:
    • To manually enter the command procedure, type the command string for the command in the window's editing area.
    • To load an existing file that contains a procedure, choose File > Load from the Command window menu bar. 
      You can load previously saved scripts into existing commands and save the combined text as a new file. The saved command text is available for new commands.
  7. S ave your command text by selecting File > Save from the Command window menu bar. If you are not using PSL for your command type, the Editor exit dialog box appears, as shown in the following figure, prompting you to save the command text in either the KM or a separate file. If you are using PSL for your command type, the command will be compiled at this time, and the PSL Compiler message displays, as shown in the following figure. 

    PSL compiler message


    When the PSL compiler is finished, the PSL compiler displays one of the following compilation messages:
    • Success indicates that you PSL command had no syntax errors.
    • Warning indicates that your PSL command had no errors that would prevent it from executing, but there is a potential problem.
    • Failure indicates that the PSL script had errors that would prevent it from executing. The following figure shows a successful PSL compiler message. 
      PSL Compiler Success message



      When you click OK on the PSL Compiler Success message or save a non PSL command, the Editor exit dialog box appears, as shown in the following figure, prompting you to save the command text in either the KM or a separate file. 

      Editor Exit dialog box

  8. Save the command text in either the KM or a separate file by clicking the appropriate choice.
  9. Apply the changes and save the PATROL KM.

KM output-parameter recovery action-command

The following figure shows sample output created by the PATROL Developer Console when you add a parameter recovery action as a command. 

 KM output-application class parameter recovery action-command 

Was this page helpful? Yes No Submitting... Thank you

Comments