Automic Workload Automation

  • 1.  Defining the Host dynamically based on task's host of a filelist when used in a PRPT of a JOBP

    Posted Apr 19, 2016 09:22 AM
    I have a workflow where all the JOBS are using a HOSTG set to Load dependent, the problem that I'm having is that there is a PRPT that uses a VARA.FILELIST and I cannot use a HOSTG for the host.I don't want to hard code an agent in here for DR reasons, and I know I can use a variable for the host, but I'm not sure the best way to dynamically set this variable to that load dependent agent.


  • 2.  Defining the Host dynamically based on task's host of a filelist when used in a PRPT of a JOBP

    Posted Apr 19, 2016 11:13 AM
    I'm a V8 user so I have no experience with Prompt Sets.  Also for lots of reasons we do not use Host Groups.  However, perhaps something like the following could be employed.

    In the appropriate place use the PREP_PROCESS_AGENTGROUP to read the contents of the HOSTG.  Then use the appropriate logic to determine if the host is active (SYS_HOST_ALIVE) and maybe a PREP_PROCESS host command to check how "busy" it is.  It it is to your liking then use that agent.

    Or, maybe more simply you could just look a the statistics of one of the jobs in the flow and use the same agent as that job.


  • 3.  Defining the Host dynamically based on task's host of a filelist when used in a PRPT of a JOBP

    Posted Apr 19, 2016 01:50 PM
    Hi,

    I have the same issue, I don't know if I have to open a new discussion (topic).
    We are using Automic v11.1.1 for running the Oracle Retail Applications (RMS, RPM, RESA,...)
    The RMS batches (RMS unix jobs in Automic) had came with a template.
    These unix jobs are set up for one agent via a filelist variable (for that single agent) used by a prompt set.
    It is way to set up a filelist variable which can point to HostGroup?
    Now I want to change the prompt set to use the HostGroup, for the scenario when one agent is down to be able to choose the second one (the available one in HostGroup).

    Thank you,
    Adriana


  • 4.  Defining the Host dynamically based on task's host of a filelist when used in a PRPT of a JOBP

    Posted Apr 26, 2016 10:25 AM
    I was not able to set this no matter what I did, PREP_PROCESS_AGENTGROUP would give me the active agent, but I couldn't set it in the promptset. 


  • 5.  Defining the Host dynamically based on task's host of a filelist when used in a PRPT of a JOBP
    Best Answer

    Posted May 10, 2016 08:14 PM


  • 6.  Defining the Host dynamically based on task's host of a filelist when used in a PRPT of a JOBP

    Posted May 17, 2016 08:05 AM
    Thank you Christine_Chavez_6412 That post lead me to a workable solution, not as elegant as I would like, but usable.

    What I ended up doing.
    I created a JOBS that has a dynamic PPRT with a Data Reference to a VARA that has the "Apply task Host" checked, I then Activate a JOBP and pass this variable to that workflow. I don't like the idea that this whole process isn't wrapped nicely in a workflow, but this has been the only solution to get the end results that I was looking for. That you everyone for your suggestions.