AutoSys Workload Automation

  • 1.  Script / Command for switching Agents

    Posted Dec 10, 2017 06:56 PM

    We have multiple FTP and file trigger jobs that run on dedicated agents.  Since these cannot be a part of the agent group, is there a way to switch the agents on these jobs whenever required (especially during maintenance) to avoid any interruption  to the application.



  • 2.  Re: Script / Command for switching Agents



  • 3.  Re: Script / Command for switching Agents



  • 4.  Re: Script / Command for switching Agents



  • 5.  Re: Script / Command for switching Agents

    Posted Dec 11, 2017 10:05 AM

    Hello Roya,

     

    Thanks for the response. 

     

    How can this be achieved in DE?  We are using the d-series.

     

    Thanks,

    Kumar



  • 6.  Re: Script / Command for switching Agents

    Broadcom Employee
    Posted Dec 11, 2017 10:57 AM

    Hi Kumar,

     

    Thank you very much for your reply.

     

    So for DE you can use the "first solution" I provided i.e.:

     

    The solution is to setup a clustered agent.

     

    (UNIX) Set Up a Clustered Agent - CA Workload Automation AE & Workload Control Center - CA Technologies Documentation 

     

    (Windows) Set Up a Clustered Agent - CA Workload Automation AE & Workload Control Center - CA Technologies Documentation 

     

    I hope this can help.

     

    Thanks,

    Roya



  • 7.  Re: Script / Command for switching Agents
    Best Answer

    Broadcom Employee
    Posted Dec 11, 2017 10:59 AM

    Hi Kumar,

     

    Please discard my previous update as it references AE event if it explains the Agent Cluster solution.

     

    The following solution can be implemented for DE:

     

    Configure Agent Aliases for Clustered Environments - CA Workload Automation System Agent - 11.3 - CA Technologies Docume… 

     

    Thanks,

    Roya



  • 8.  Re: Script / Command for switching Agents

    Posted Dec 12, 2017 03:07 PM

    Hey Roya,

     

    Thanks for your response.  Will look into this option.

     

    KG



  • 9.  Re: Script / Command for switching Agents

    Broadcom Employee
    Posted Dec 11, 2017 10:49 AM


  • 10.  Re: Script / Command for switching Agents

    Posted Dec 14, 2017 02:07 PM

    If for some reason it is preferable to have an actual switch between two servers you can always code the jobs with a variable in the agent field.  You can then put the actual agent name in the variable and modify it at will or with a CLI command.  One caveat to observe is the fact that the variable will be resolved at the time the application generates, not at the point the job runs.

     

    Example: %VAR('server_agent','FTP')   where 'server_agent' is the name of the agent you want and 'FTP' is the Global Variable context