HP Operations Manager for Windows

Create a measurement threshold policy with parameters


HPOM for Windows uses VBScript or Perl scripts in measurement threshold policies to do more complicated calculations to evaluate a threshold or to add additional functionality. By configuring parameters in scripts that can easily be changed later, you can customize the variables in the script without the need to change the script itself. The script parameters are changed on the Script Parameters tab; the Measurement Threshold policy editor changes the script.

Parameter Definitions

Parameters are defined during policy development. Use the Measurement Threshold policy editor to create a policy containing parameters that adapt the policy to your particular needs.

To create a measurement threshold policy with parameters:

  1. Select Policy Management Policies grouped by type.
  2. Right-click Measurement Threshold to open the context menu.
  3. Select New Policy to open the Measurement Threshold policy editor with the Source, Threshold levels, and Options tabs visible. The Script_Parameters tab is not visible at this time.
  4. Enter your preferences on the Source tab. For details, see the help topic Set threshold source properties.
  5. Select the Threshold levels tab. In the list, select VB Script or Perl script. The Script Parameters tab opens without any parameters displayed.
  6. Click New to open the New threshold level dialog box with the General, Start Actions, Continue Actions, and End Actions tabs displayed. Use the General tab of this dialog box to define the threshold limit script.
  7. Add the #PARAMETERS block with script parameter definitions into the Threshold limit script and click OK to confirm your action and close the dialog box.

    Because this is the first threshold level, the editor parses the VBScript or Perl script and finds the #PARAMETERS block with parameters, causing the defined parameters in the Script Parameters tab to display. If the #PARAMETERS block does not exist in the script, the Parameters tab will be empty. You can view the defined parameters list in the Script_Parameters tab.

  8. To edit a parameter in this list, follow the instructions in the help topic Edit an existing measurement threshold policy with parameters.
  9. Click Save, then Close to name and save the policy and close the policy editor.