ESP Workload Automation

  • 1.  Show output of address ESP command.

    Posted Sep 01, 2016 03:07 PM

    Hi Guys i would like to know if its possible / how are you doing it  to run a TSO command in  CSF which will do the LOADAGDF command  and to get the output to see if the agent Definition table has been updated successfully. 

       as follow

           ESP1706I Agent Definition Table loaded

     

    in short i have created a panel where user can add/refresh agents but i can seems to be able to get the ouput showing  using my code. 

    if am adding the line in the AGENTDEF and after running those two command 

    ADDRESS ESP "OPER LOADAGDF PRODUC.CYBER.ESPPARM(AGENTDEF)"
    ADDRESS ESP "OPER MGRADDR AGENT("AGENTN")"

     

     

    let me know if you need more information, Thanks ! 



  • 2.  Re: Show output of address ESP command.

    Broadcom Employee
    Posted Sep 01, 2016 05:42 PM

    Hi Alex,

     

    Actually now users can add/update agents dynamically without issuing LOADAGDF command. 

     

    See the doc in the link below with more detail:

    SAP Portal Services 

     

    Lucy



  • 3.  Re: Show output of address ESP command.

    Posted Sep 02, 2016 10:14 AM

    Hi Lucy,

     

    Thanks for reminding me we could do that, totally forgot.

     

    that being said I think the problem is still the same, if I use a tso command to bring out a panel to fill in the gap of this command. I want to be able to see the output of it once I press the return key.



  • 4.  Re: Show output of address ESP command.
    Best Answer

    Posted Sep 02, 2016 12:21 PM

    The REXX snippet below should provide what you need.

    I appended TEST to do a syntax check, since I did not want to load the Agent Definition file.

    Agent definition file is delimited by leading and trailing pairs(2) of single tick marks(single quotes)

    You could repeat the code for the second command or concatenate the 2 commands and use a semi-colon as a delimiter.

     

    Z=OUTTRAP('LINE.')                                               
      'NEWSTACK'                                                     
       QUEUE 'LOADAGDF ''PRODUC.CYBER.ESPPARM(AGENTDEF)'' TEST'   /* TEST used for syntax checking */ 
       QUEUE 'END'                                                   
       ADDRESS TSO "ESP SUB(<ESP ID>)"  /* Replace <ESP ID> with correct value */             
      'DELSTACK'                                                     
    Z=OUTTRAP('OFF')                                                 
                                                                     
    DO I = 1 TO LINE.0                                               
      SAY LINE.I                                                     
    END   

     

    When I run it on my system I get the following output:

    Agent Definition Table test has been correctly processed   



  • 5.  Re: Show output of address ESP command.

    Posted Sep 02, 2016 12:26 PM

    Perfect, exactly what I was looking for.

     

    Thanks Rick !