Information
Important This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent 22.4 for BMC Helix Operations Management.

Setting up PSL pre-discovery


This section describes how to set up PSL Pre-discovery for an application class using the PATROL Developer Console for Windows and UNIX. The following topics are covered:

Warning

Note

If you do not create a pre-discovery script or the script is empty, the PSL discovery script executes immediately.

Setting up PSL pre-discovery on Windows

In this task, you will set up PSL pre-discovery for an application class.

Before setting up PSL pre-discovery, you should have created the application class and set its general properties.

To set the discovery type

  1. Choose the Properties option from the popup menu of the application class that you wish the PATROL Agent to detect.
    The Application Properties dialog box for the selected application class appears with the General tab options displayed as shown in Application Properties dialog box, General tab.
  2. Click PSL to set the Discovery type to PSL discovery.
    The Pre-Discovery and Discovery tabs appear on the Application Properties dialog box as in the following figure. 

    Application Properties dialog box, General tab 

    application_property_dialog_general_tab_PSL_selected.gif

To define PSL pre-discovery rules

If you create a PSL pre-discovery script, you must provide logic to cause the PSL-pre-discovery script to execute

  1. Click the Pre-Discovery tab to access a text box in which to type the PSL script to perform pre-discovery.
    The Pre-Discovery tab appears as shown in the following figure. 

    Application Properties dialog box, Pre-Discovery tab

    application_property_dialog_pre-discovery_tab.gif
  2. Provide conditional logic to cause the PSL discovery script to execute if the appropriate condition or conditions occur. Provide conditional logic to support all possible initial application class conditions.
    Use the active PATROL Agent namespace variable to control logic flow. Valid values for the active variable lists the valid values for the active variable.
  3. Click Save to File to save the PSL pre-discovery script in the PATROL Global PSL directory %HOMEDRIVE%%HOMEPATH%\patrol\psl.
    You will be prompted for the PSL file name.
    In developing PATROL KMs, you can save PSL scripts to a separate file or to the PATROL KM file. Saving your PSL to a separate file allows you to reuse the PSL in other KMs.
  4. Click Apply to apply the changes to the dialog box; then, click OK to close the dialog box.
  5. Choose File>Save KM from the PATROL Developer Console main menu to save the PATROL KM.
    The PATROL Console for Windows saves the local KM information in the local PATROL KM directory. By default, the local PATROL KM directory is the subdirectory of the local PATROL directory named %HOMEDRIVE%%HOMEPATH%\patrol\knowledge
    You can use the PATROL Environmental Probe utility to view the settings of these environment variables on your machine.

Setting up PSL pre-discovery on UNIX

In this task, you will set up PSL pre-discovery for an application class. Before setting up PSL pre-discovery, you should have created the application class and set its general properties.

To set the discovery type

  1. Access the application definition dialog box for the appropriate application class. The discovery options for the selected application class appear as shown in the following figure. 

    Application Definition dialog box, PSL discovery 
    application_definition_dialog_psl_discovery.gif
  2. Click PSL to set the Discovery Rules type to PSL discovery.
    The PSL Pre-Discovery and PSL Discovery buttons appear on the Application Properties dialog box as in the following figure.

To define PSL discovery rules

If you create a PSL pre-discovery script, you must provide logic to cause the PSL discovery script to execute.

  1. Click PSL Pre-Discovery to access a window in which to type the PSL script to perform pre-discovery.
    The PSL Pre-Discovery edit window appears as shown in the following figure. 

    PSL Pre-Discovery Edit window

    psl_pre-discovery_edit_window.gif
  2. Provide conditional logic to cause the PSL discovery script to execute if the appropriate condition or conditions occur. Provide conditional logic to support all possible initial application class conditions.
    Use the active PATROL Agent namespace variable to control logic flow. Valid values for the active variable lists the valid values for the active variable.
  3. Choose File >Save from the menu bar to save the PSL pre-discovery script.
    If you are saving the script for the first time, the Editor dialog box appears prompting you to choose where you want the file saved. 

    Editor dialog box-PSL pre-discovery

    psl_pre-discovery_editor_dialog_save.gif
  4. Click Separate File to save the PSL pre-discovery script in the PATROL Global PSL directory. You will be prompted for the PSL file name.
    In developing PATROL KMs, you can save PSL scripts to a separate file or to the PATROL KM file. Saving your PSL to a separate file allows you to reuse the PSL in other KMs.
    The PATROL Console saves the local PATROL KM information in the local KM directory, $HOME/patrol/knowledge and the PSL files in $HOME/patrol/lib/psl.
  5. Choose File>Exit from the PSL Editor menu to exit the editor.
  6. Click Apply to apply the changes to the Application Definition dialog box; then, click OK to close the dialog box.
  7. Choose File>Save KM from the List of Applications menu to save the PATROL KM.

KM output-application pre-discovery

In both Windows ad UNIX you have the ability to save your scripts in an external files instead of in the text of the PATROL KM. External files represent scripted objects that can be reused in other KMs. 

The following figure shows sample output created by the PATROL Developer Console when you add pre-discovery to an application class using an external PSL script. 

KM output-application class pre-discovery

devbasic3310-35.gif


 

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

PATROL Agent 22.4