AppWorx, Dollar Universe and Sysload Community

  • 1.  [Solved] dependency check

    Posted Dec 12, 2012 07:54 AM
    Hi,

    I am currently working in a project where our scheduling tool is $U. I have a scenario where if a job aborts i want to check which jobs are dependent on this aborted job.

    If possible i want in session level i.e, if a job in session aborts i want to know which other sessions are dependent on this session.

    We have around 1200 sessions and 10,000 uprocs in our production area.

    Is it possible? If possible can any one tell the way to find out

    $U version:5.3
    OS: Linux

    Thanks in advance
    Nishanth


  • 2.  [Solved] dependency check

    Posted Dec 12, 2012 08:26 AM
    Hi Nishanth,

    I think that Publisher (a complementary sofware to Dollar Universe, which extract and displays DU objects definition) gives that information, but that's to check.
    Otherwise you may use several other solutions:

    - Production documentation with job definition, in which you may use "find" tool to look for dependancy. That documentation was a basis some time ago but I feel like it tends to disappear...
    - In-house scripted solution to dynamically check all dependencies. Beware that the impacts of an aborted job are more complex than just dependencies:
       * Inner session childs
       * Inner and/or outer session dependencies
       * Resources not released
       * Completion instructions not run
       * Scripted instructions not run (uxordre, uxadd, ...)

    Childs, dependencies and completion instructions are the most easier to check as a query to DU uprocs and sessions gives the result. For example on Linux:

    Create 2 awk files as follow:

    [code]

    # searchUproc.awk -- Identify which session(s) use(s) a given uproc
    # The parameter "upr" is used for filtering

    /^ ITEMS \| ses/ { ses = $NF }
    /^ | upr :/ { if ( $4 == upr ) print "ses/" ses "#" upr }
    [/code]

    [code]

    # searchDepcon.awk -- Identify which uproc(s) depends of a given uproc
    # The parameter "depcon" is used for filtering

    /^ ITEMS \| upr/ { upr = $NF }
    /^ dep :/ { if ( $3 == depcon ) print "upr/" upr "#" depcon; }
    [/code]

    And call them as below, replacing <uproc_name> by the name of the aborted uproc.
    [code]
    &#036;UXEXE/uxshw upr upr=* | awk -f searchDepcon.awk depcon=<uproc_name> | sort -u;
    &#036;UXEXE/uxshw upr upr=* | awk -f searchUproc.awk upr=<uproc_name> | sort -u;
    [/code]

    As stated above, this information is not complete to get all possible impacts of an aborted job; you have to consider the peculiarities of your production, and take some time to develop your own solution.

    Kindly,


    Stéphane.


  • 3.  [Solved] dependency check

    Posted Dec 14, 2012 10:41 AM
    Hi stephane,

    Thanks for the quick response.

    My concern as of now is to check which jobs are depeneding on any aborted job.

    I will check the scripts  you mentioned and will let you know

    thanks again /smile.png' class='bbc_emoticon' alt=':)' />


  • 4.  [Solved] dependency check

    Posted Jun 21, 2013 12:24 PM
    Hi There,

    Thanks for the useful info above, but could you please let me know how can i also use same command just on the simulation area.

    Thanks in advance,
    Marko Velkovski


  • 5.  [Solved] dependency check

    Posted Jun 26, 2013 09:18 AM
    Hi Marko,

    You can do that, you just need to state the area (here sim) in the command line:

    [code]&#036;UXEXE/uxshw upr upr=* sim | awk -f searchDepcon.awk depcon=<uproc_name> | sort -u;[/code]

    Regards,


    St&eacute;phane.


  • 6.  [Solved] dependency check

    Posted Jun 26, 2013 09:43 AM
    Hi Stéphane,

    Thanks a lot it worked.

    /cool.png' class='bbc_emoticon' alt='B)' />

    Kind Regards,
    Marko Velkovski