AutoSys Workload Automation

 View Only

  • 1.  AutoSys event management

    Posted Feb 10, 2020 07:18 AM
    HI!

    I'm searching for information about event management in Workload Automation AE. For example, I'd like to get automatic messages when the job fails. 
    The only information I found:
    Export EM database by command:
    oprdb script db > filename.txt
    For example, it can look like
     
    define msgrec
          msgid="CAUAJM_I_40245 EVENT: CHANGE_STATUS   STATUS: FAILURE JOB: * MACHINE: * EXITCODE: *"
          type="MSG"
          cont='N'
          msgact='Y'
          wcsingle='?'
          wcmany='*'
          case="y"
          regexp="n"
     
    define msgact
          name=(*,100)
          action="UNIXSH"
          attrib="DEFAULT"
          color="DEFAULT"
          evaluate='Y'
          quiet='N'
          runid="autosys"
          status="ACTIVE"
          sim='N'
          text="mail -s ""[TEST][FAILURE][&7][RC=&11]"" e-mail@address.com < /apps/CA/out/job.err"
     
    First part is the message, second is the action. It can be updated with any text editor.
     
    Import file back to EM by command:
    cautil –f filename.txt
     
    Reload definitions to EM by command (without that it will not be taken into account):
    oprcmd opreload
    NOTE: if you need to change definition which already exists in EM database, you must delete old defition from database before you import a new one. This can be done with the command, for example:
    cautil "DELETE msgrecord msgid='CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: FAILURE JOB: * MACHINE: * EXITCODE: *'"
    The syntax is messy and be carefull with the ' and ".

    Can anyone give me a link to a resource with more detailed information about event management?


  • 2.  RE: AutoSys event management
    Best Answer

    Posted Feb 11, 2020 02:54 AM
    Hi Bohdan,
    there is some information at:
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/installing/ca-workload-automation-ae-deployment-best-practices/integrate-event-management.html

    There is section "Manage Message Records" which will help to explain the event messages and actions.

    Another useful spot is:
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/messages.html

    This lists the messages produced by AutoSys Error, Warning and Informational.
    regards
    Paul


  • 3.  RE: AutoSys event management

    Posted Feb 14, 2020 07:42 AM
    Thanks for the links.
    One more pdf document, that was useful for me is "Inside Event Management and Alert Management r11.2 SP2"​
    And as for me, "oprdb script db" and "cautil" commands are not enough user-friendly. It was easier to use direct connection to Postgres DB with GUI client. Necessary tables are: opra_msg, opra_act.


  • 4.  RE: AutoSys event management

    Broadcom Employee
    Posted Mar 02, 2020 11:50 AM
    Hi,

    You may also be interested in the newer version of Event Management that is based on the Automic Event engine.  The concept is pretty much the same that it sends all the event demon log messages to another process to take actions on.  This will support newer Operating systems and if you have not implemented the older Event Management then this may be a better way to go.  Here is a link to give you some more information.
    It is included with your Autosys license, so not additional cost is incurred.

    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/administrating/ae-administration/configure-ca-workload-automation-ae-to-work-with-other-ca-technologies-products/integrate-with-ca-automic-one-automation-platform.html

    Regards,
    Michael



  • 5.  RE: AutoSys event management

    Posted Mar 02, 2020 07:45 PM
    Edited by Paul Tayler Mar 04, 2020 08:05 AM
    Hi Michael,
    that is good to know.  Are there any limits on the license entitlement?
    The Automic orchestration capability is a great addition to AutoSys functionality.
    thanks
    Paul