webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Server > Scheduler On ESB & TN

    Posted Mon January 09, 2017 11:41 AM

    Hello All,
    We are running webMethods 9.6, (Linux Box) we have about 70+ schedulers running on ESB & TN in total.

    Question: I would like to know how i can configure mail “Alerts” if some Scheduler has Failed & Running (Stuck) for a long time. ?

    Current situation:
    for Adapter failures our Administrator has some scripts on the server and raise alert emails through “/WmRoot/adapter-index.dsp”.
    But for schedulers how and where to find them ?

    regards
    Vijay


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Server > Scheduler On ESB & TN

    Posted Mon January 09, 2017 01:35 PM

    Hi Vijay,

    the schedulers are displayed “/WmRoot/scheduler.dsp”.
    On this page you will find a colum "lastError, which shows “N/A”, when last run was succesfull, or the real error, when last run failed.
    The Column “Status” shows the Status of the scheduled Tasks.
    Unfortunately there is no direct field for run duration if it is currently running.

    The scheduled tasks are stored in the IS Internal database in the table IS_USERS_TASKS.
    You can consider to query this table to get your wanted data.

    Additionally you might want to elaborate on the IS Built-In-Services Guide to find some valuable services (esp. for the ART folder which deals with the Adapters without having to deal with generic dsp).

    Regards,
    Holger


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Server > Scheduler On ESB & TN

    Posted Tue January 10, 2017 03:56 AM

    Hi,

    Adding few additional points to what Holger stated.

    1. In IS_USERS_TASKS there is one column “STATE” which will become “1” incase the Scheduler is running and it will show the server on which it is running in “RUNNINGON” Column. you can build a query and service to get notification emails if the value is one and the interval for re-run of scheduler is more.
    2. Also, We can implement exception handling in the scheduler service and write a Flow service to send emails on failure.

    Regards,
    Syed Faraz Ahmed


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 4.  RE: Server > Scheduler On ESB & TN

    Posted Tue January 10, 2017 06:56 AM

    Thank you Holger & Syed.

    Holger: Unfortunately Linux shell script can’t access DB tables, so this data can not be pulled from there, also will check on IS Built-In-Services Guide.

    Syed: I liked the exception handling in the scheduler service and then flow.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 5.  RE: Server > Scheduler On ESB & TN

    Posted Tue January 10, 2017 10:23 AM

    :slight_smile: Most welcome.

    Also there is one in-built service wm.server.schedule:getUserTaskList which will give you the status of all the schedulers on a particular server with all the details.

    For Ex: if you need the current status of scheduler then there will be one field “execState” as output with possible values like ready,suspended, running and etc.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Server > Scheduler On ESB & TN

    Posted Tue January 10, 2017 01:11 PM

    Hi,

    I would prefer to use pub.scheduler:getUserTaskList as its use is officially supported.

    The service Syed has mentioned is an “internal” one and should be used with caution.

    Additional services which might be of interest in your scenario are pub.scheduler:getTaskIDs and pub.scheduler:getTaskInfo.

    Please have a look at the pub.scheduler-Folder in the IS Built-In-Services Guide.

    Regards,
    Holger


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 7.  RE: Server > Scheduler On ESB & TN

    Posted Wed January 11, 2017 03:59 AM

    I agree with Holger. Internal WmRoot services should be used cautiously. :slight_smile:
    Otherwise, we may end up corrupting server.

    Regards,
    Syed Faraz Ahmed


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB