Step 2. Specifying variables as additional selection criteria


Related topic

Creating-Rules

The second panel displayed is the Variable Dependencies --event type panel.

The Variable Dependencies panel is the same for all event types, but the event type field shows the name of event you specified in the Event Type field on the Rule Processor Detail Control panel.

Use the Variable Dependencies panel to define the value of variables to be tested as part of the selection criteria for an event. You can specify the following kinds of variables on this panel for the Rule to use as selection criteria before it fires:

  • The variable WORDn, where n is the number of the word in the message. For example, WORD3 represents the third word in the message text.

The following figure shows an example of the Variable Dependencies panel.


BMC Software -------- Variable Dependencies - MSG  -------  BMC AMI OpsA
COMMAND ===>                                           TGT ------ AOAO

       Rule-set === AAORULXX             Rule-id  === ICH70001
                                                                           OR/
 Variable-name                    Op  Variable-Value                      AND

 QSMFID__________________________ EQ  SYSB_______________________________  OR_
 QSMFID__________________________ EQ  SYSC_______________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________  ___
 ________________________________ __  ___________________________________      
                                                                              
 --> ATTENTION: Use ASV command to add ASV criteria to the rule <--

  Press ENTER to continue, END return to Detail Control, CANCEL to cancel changes

In the preceding figure, the QSMFID variable is specified to equal the value SYSB or SYSC, which means that if you use the variable QSMFID on the Selection Criteria panel for an event, the Rule will fire only when the value of QSMFID matches SYSB or SYSC.

Warning

Important

You can code variables with or without the ampersand (&) on this panel. The panel displays the Variable-name field without the & even if it was coded previously.

In addition, when you enter numeric values to be compared on the Variable Dependencies panel, the Rule Processor compares only whole numbers (0-9 digits). For example, the value 1.11 is considered text. When comparing numerics, the values are restricted to 15 digits.

This section contains the following topic:

 

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

BMC AMI Ops Automation 8.4