CMF Monitor How to send alarm on long running jobs

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    CMF MONITOR



    QUESTION:

    How can I be alerted when a job takes more time than expected ?

     


    ANSWER:

    To be alerted when a job takes more time than expected you can create an alarm from a view (JUSE, JOVER, JCPU etc.) displaying the 'Job Elapsed time' column. 
    The field name is ASGJELT. For more information regarding this field please see KA 000166021

    For example display the JCPU view, place the cursor at 'B ' for batch and press Enter 

     24DEC2019  07:43:38 ------ MAINVIEW WINDOW INTERFACE (V6.3.00) ----------------
     COMMAND  ===>                                                 SCROLL ===> CSR  
     CURR WIN ===> 1        ALT WIN ===>                                            
     >W1 =JCPU==============BMCA=====*========24DEC2019==07:43:38====CMF======D==279
     C Jobname  JES Job  T SrvClass RepClass Step         Interval All CPU Sec %All 
     - -------- Number   - -------- -------- Data         0........30.......60 CPU U
       DJJ1DBM1 STC00940 S DB2TASKS          YES    64.15                    +  7.90
       CATALOG  CATALOG  S SYSTEM             NO    53.60                       6.60
       MKTAXL02 JOB06524 B BATCH    RBATCH   YES    30.32                       4.31    <=====
       MKTAXL04 JOB06525 B BATCH    RBATCH   YES    29.24                       4.16
       MKTAXL06 JOB06537 B BATCH    RBATCH   YES    27.77                       4.22
       MKTAXL07 JOB06538 B BATCH    RBATCH   YES    27.17                       4.22
       MKTAXL10 JOB06540 B BATCH    RBATCH   YES    27.02                       4.01 


    Now the view displays batch jobs only 

     24DEC2019  08:17:08 ------ MAINVIEW WINDOW INTERFACE (V6.3.00) ----------------
     COMMAND  ===> MAKEALARM                                          SCROLL ===> CSR  
     CURR WIN ===> 1        ALT WIN ===>                                            
     >W1 =JCPU=====JCPU=====BMCA=====*========24DEC2019==08:17:08====CMF======D===25
     C Jobname  JES Job  T SrvClass RepClass Step         Interval All CPU Sec %All 
     - -------- Number   - -------- -------- Data         0........30.......60 CPU U
       MKTAXL04 JOB06615 B BATCH    RBATCH   YES     6.16                       4.88
       MKTAXLAN JOB06705 B BATCHWLM RBATCH   YES     5.96                       6.09
       MKTAXL05 JOB06616 B BATCH    RBATCH   YES     5.95                       4.72
       MKTAXL10 JOB06580 B BATCH    RBATCH   YES     5.91                       4.68
       MKTAXL07 JOB06608 B BATCH    RBATCH   YES     5.34                       4.23
       MKTAXL06 JOB06607 B BATCH    RBATCH   YES     5.20                       4.12
       MKTAXL02 JOB06614 B BATCH    RBATCH   YES     5.11                       4.05
       MKTAXL09 JOB06599 B BATCH    RBATCH   YES     4.34                       5.13


    Enter MAKEALARM on the command line, place the cursor at the desired column : Job Elapsed Time and then press enter.

    Note: The WHERE clause has been automatically added: 
     +-------------------------- Consider These Records ---------------------------+
     | COMMAND ===>                                              SCROLL ===> CSR   |
     |                                                                    MORE: +  |
     | View    JCPU                   Unique AES NO                                |
     | Product CMF                                                                 |
     | Context BMCA                                                                |
     |                                                                             |
     | Parameters                                                                  |
     |    Jobname(ASGNAME)     =   '*'                                             |
     |    %All CPU U(ASICPPAU) >=  0                                               |
     |    Job Status(ASGFL1C)  =   *                                               |
     |                                                                             |
     | Column Filters                                                              |
     |    Active Ended(ASGFLSC) <>  OTHER                                          |
     |    Do not Alter(ASGJCLS) =   *                                              |
     |                                                                             |
     | Where                                                                       |
     | ASREYFLC = 'BAT'                                                            | <===
     |                                                                             |
     |                                                                             |
     |                                                                             |
     |                                                                             |
     |                                                                             |
     +-----------------------------------------------------------------------------+


    Add the alarm criteria.
    Note that this field is displayed as a TIME format but in reality the value is in seconds
    For example, to be notified when a job takes more than one hour enter >3600 

     +--------------------------- Use These Conditions ----------------------------+
     | COMMAND ===>                                              SCROLL ===> CSR   |
     |                                                                    MORE: +  |
     | Persistence                                                                 |
     |  Samples 1                                                                  |
     |  Info 1  Warn 1  Minor 1  Major 1  Critical 1                               |
     |                                                                             |
     | Conditions/Thresholds                                                       |
     |  Report if corresponding conditions are true for ALL (ALL|ANY) elements     |
     |                                                                             |
     |   ElapsedJob Time(ASGJELT) Use Dynamic Threshold?  YES                      |
     |    Severity Op  Value                                                       |
     |    Info      >  3600                                                        |
     |    Warn                                                                     |
     |    Minor                                                                    |
     |    Major                                                                    |
     |    Critical                                                                 |
     |                                                                             |
     |                                                                             |
     | Back to return to previous step                                             |
     | Next to goto next step                                                      |
     | Select to select elements                                                   |
     | CANcel to exit without saving changes                                       |
     +-----------------------------------------------------------------------------+

     
    This alarm is for CMF customers onIy. If you have MainView for z/OS the preferred method is the supplied MAX CHECK solution, it is easier to use and an appropriate action can be taken when a job exceeds the maximum value. 


    Article Number:

    000179038


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles