Information
Newer version of documentation BMC provides a newer version of the documentation for this version of the product. As a result, BMC no longer accepts comments in this space.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see bao8301.

Example 3:  creating a Rule where MLWTO minor = ALL


In this example, a MLWTO message is processed by the Rule as a complete entity because MLWTO minor = ALL is specified on the Selection Criteria panel.

The Rule in this example uses the Variable Dependencies panel and the variable LINEx_WORDn to help the Rule fire based on content within the MLWTO such as the message ID of the major message, the job name, and some additional information in the first and fifth minor lines of the message.

When all of search criteria and variable dependency criteria is met, this example Rule creates an ALERT with the appropriate message.

The MLWTO message is

M 8000000 SJSD     18028 22:16:07.38 STC05737 00000090  CSQP013I @JBQ CSQPEXTD NEW EXTENT CREATED FOR PAGE SET 103

E                                         103 00000090  4. NEW EXTENT WILL NOW BE FORMATTED                      

To create a Rule where MLWTO minor = ALL

  1. Fill in the Selection Criteria - MQW panel as follows:

    BMC Software  ------------- Selection Criteria - MQW  ------------ AutoOPERATOR
    COMMAND ===>                                                 TGT  --- JB82

           Rule-set === AAORULMQ             Rule-id  === CSQP013I

    Text Description:
    Text ID     ===> CSQP013I                Ignore leading plus ==>
    Text String (Enter Below):


    Issuer Identification:
    Job name    ===> CSQHMSTR                          Name of MQ MSTR or CHINIT
    MLWTO Minor ===> ALL                               All/Single


    When MLWTO Minor ===> ALL is specified, all the lines of multiline WTO message are processed by the Rule as a single entity. BMC Software recommends that you use the variables &LINEx_WORDn variables on the Variable Dependencies panel so that the Rule can fire based on specific content of the MLWTO.

    Warning

    Note

    When creating a Rule for a MLWTO message, the Rule compares the selection criteria values to the content of only the first line (Major line) of the MLWTO.

    With the &LINEx_WORDn, x is set for every line of the MLWTO and n is set for every word in a line.

  2. Press Enter the Variable Dependencies - MQW panel is displayed as shown in the following figure.Variable Dependencies for MLWTO Minor=ALL

    BMC Software  ------------ Variable Dependencies - MQW  ---------- AutoOPERATOR
    COMMAND ===>                                                 TGT  --- JB82

           Rule-set === AAORULMQ             Rule-id  === CSQP013I
                                                                               OR/
     Variable-name                    Op  Variable-Value                      AND

     LINE2_WORD1_____________________ EQ  4._________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________  ___
     ________________________________ __  ___________________________________

    --> ATTENTION: Use ASV command to add ASV criteria to the rule <--

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


  3. Press Enter until the Alert Action(s) I - MQW panel is displayed as shown in the following figure.The following entry on the Alert Action(s) II - MQW panel specify that when the Rule fires, a MainView AutoOPERATOR ALERT will be created.

    Alert Action(s) I - MQW for MLWTO Minor=ALL

    BMC Software -------------- Alert Action(s) I - MQW  ------------- AutoOPERATOR
    COMMAND ===>                                                 TGT  --- JB82
           Rule-set === AAORULMQ             Rule-id  === CSQP013I
    Function ===> ADD                               (ADD, DELETE, DELETEQ)
    Key      ===> &IMFOJOB.&IMFMSGID
    Text     ===> MQ Address Space &IMFOJOB new extent for pageset ID &LINE2_WORD1


    Queues   ===> MQWTO                             Alert Queue Name(s)
    Priority ===>                                   (CRIT,MAJ,MIN,WARN,INFO,CLEAR)
    Color    ===>                                   RED,PINK,YEL,DKBL,LTBL,GRE,WHI
    PCMD     ===>

    System   ===>                                   Return to target after PCMD
    * EXEC   ===>                                   Follow-up EXEC
    Help     ===>                                   Associated HELP Panel
    Targets  ===>                                   Target System
    Udata    ===>                                   User Data
    Origin   ===>                                   Origin
    User     ===>                                   Userid
    Alarm    ===>                                   Sound Alarm (YES/NO)
    Publish  ===>                                   Alert Publishing Mode
    * Enter a question mark(?) and blank for more options.
     Press ENTER to continue, END return to Detail Control, CANCEL to cancel change


  4. Press Enter and finish completing the Rule.

 

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

BMC AMI Ops Automation 8.3