ESP Workload Automation

 View Only
  • 1.  CA ESP - CPU_MON - Agent Variable Needed

    Posted Feb 03, 2017 04:23 PM

    Hello,

     

    I am looking for agent variable for the CPU_MON job below to pass it to the successor TESTINT. I need to send the agent name for the job TESTCPMO to the job TESTINT. I am not able to find proper variable for the CPU_MON's agent.

     

    APPL TESTCPMO SAF_PROF_APPL WAIT
    INTEGER VAR1, VAR2

    CPU_MON TESTCPMO
    AGENT TESTAGENT 
    /*CPU FROM(0) TO(10) OUTSIDE USED
    /*WAITMODE WAIT
    RUN NOW
    RELEASE TESTINT
    ENDJOB

    JOB TESTINT
    VAR1 = JOBDATA('TESTCPMO','AVAILABLE')
    VAR2 = WOBDATA('TESTCPMO/TESTCPMO.0','USED')
    CPSYS = JOBDATA('TESTCPMO','AGENT')
    SE 'VAR1 = %VAR1'
    SE 'VAR2 = %VAR2'
    SE 'CPSYS = %CPSYS'
    RUN NOW
    ENDJOB
     

     

    Any ideas?

     

    - Prem



  • 2.  Re: CA ESP - CPU_MON - Agent Variable Needed
    Best Answer

    Broadcom Employee
    Posted Feb 06, 2017 08:06 AM

    Hi Prem,

     

    There is no variable in the same application for agent name.

     

    As a workaround, you may use ESP TAG:

    CPU_MON TESTCPMO
    AGENT TESTAGENT 

    TAG 'TESTAGENT'
    ....
    ENDJOB

     

    JOB TESTINT
    ....
    CPSYS = '%ESPAPTAG'
    ...
    ENDJOB

     

    Lucy



  • 3.  Re: CA ESP - CPU_MON - Agent Variable Needed

    Posted Feb 06, 2017 01:27 PM

    Hi Lucy,

     

    The TAG statement worked for me. However, I had to define the tag at the application level. Thanks for your help!

     

    -Prem



  • 4.  Re: CA ESP - CPU_MON - Agent Variable Needed

    Posted Feb 06, 2017 01:39 PM

    Can we have a tag defined at the job level? This will help if we are sending multiple CPU_MON data to a single job in the application.



  • 5.  Re: CA ESP - CPU_MON - Agent Variable Needed

    Broadcom Employee
    Posted Feb 06, 2017 03:47 PM

    Hi Prem,

     

    Yes, every job can have its own TAG statement.

     

    Thanks,

     

    Lucy