CA Workload Automation ESP Edition

Expand all | Collapse all

Unix Log file retrival

Jump to Best Answer
  • 1.  Unix Log file retrival

    Posted 01-02-2014 07:56 AM

    Hi All,

    We have a requirement to get the unix logs for a failed job.

    CSF command --> WSF will get us the logs.

     

     

    Is there any Pagemode commands that can be issue to get the unix logs.



  • 2.  Re: [Workload Automation - Mainframe] Unix Log file retrival

    Posted 01-02-2014 08:14 AM
    WTF will get the spool file logs from the agent spool file setting. If you
    are redirecting the output to another location, then you may need to create
    a CSF extension to override the CSF command with the new location.

    HTC

    Allen
    On Jan 2, 2014 6:55 AM, "CA Workload Automation Mainframe Global User
    CommunityMessage Boards" <CommunityAdmin@communities-mail.ca.com> wrote:
    Hi All,

    We have a requirement to get the unix logs for a failed job.

    CSF command --> WSF will get us the logs.





    Is there any Pagemode commands that can be issue to get the unix logs.

    --
    Posted by:megalingam
    CA Communities Message Boards

    106938857
    mb_message.2271104.106936317@myca-email.ca.com


  • 3.  RE: Unix Log file retrival

    Posted 01-03-2014 08:34 AM

    Hi Allen,

     

    Thanks for your response.

     

    Could you please let me know, whether we can have a JCL setup to pull the unix logs.



  • 4.  Re: [Workload Automation - Mainframe] RE: Unix Log file retrival
    Best Answer

    Posted 01-03-2014 12:50 PM
    I am not sure if there is a way to create JCL to go and extract spool file
    data.

    You can try posting another question on the Community message board to see
    if anyone has any ideas.

    HTH.

    Allen


    On Fri, Jan 3, 2014 at 7:34 AM, CA Workload Automation Mainframe Global
    User CommunityMessage Boards <CommunityAdmin@communities-mail.ca.com> wrote:
    Hi Allen,



    Thanks for your response.



    Could you please let me know, whether we can have a JCL setup to pull the
    unix logs.

    --
    Posted by:megalingam
    CA Communities Message Boards

    107028688
    mb_message.2271104.107026148@myca-email.ca.com


  • 5.  RE: Unix Log file retrival

    Posted 01-03-2014 01:58 PM

    See the CA Workload Automation EE Command Reference Guide

    WOBSF Command: Retrieve the Spool File for a Distributed Job

    The WOBSF command retrieves spool files for distributed jobs in both active and completed applications. If you use the PURGSCHF command to purge jobs in completed applications, WOBSF is the only way to retrieve the spool file for distributed jobs. This is because the purged jobs are no longer in CSF, so you cannot use the W or WSF commands to retrieve spool files. For a job in an active application, you can use W or WSF in CSF to retrieve the spool file or you can issue WOBSF.

    ###

    The above works as long as the file still exists on the UNIX server and has now been removed as part of your environments spool directory cleanup process.

    If the WOBSF command does not provide what you need you can create the job below and

    Trigger it with USER1=AGENT, USER2=APPLICATION, USER3=GENERATION, USER4=JOB.

    Trigger the event with the agent name where the job ran and same values that you used in

    the WOBSF command.

    Check the job output with WSF and you will see the job output for the APPL.GEN/JOB you

    specified when you trigered the event.

    This uses ESP Agent environment variable $ESPAGENTDIR

     

    PROCEDURE_SECTION:
    
    UNIX_JOB WOBSF
    AGENT %USER1
    CMDNAME <valid shell>
    ARGS -c 'cat $ESPAGENTDIR/spool/*/*/%USER2..%USER3/%USER4'
    USER compops
    RUN ANYDAY
    ENDJOB

     

    Notes:

    • Replace <valid shell> with a valid shell for UNIX system.
    • USER2 and USER4 must be UPPERCASE
    • Double dots '..' after %USER2 are required