Automic Workload Automation

Expand all | Collapse all

Best way to change the name of an Agent in many jobs

  • 1.  Best way to change the name of an Agent in many jobs

    Posted 12-19-2016 11:30 AM
    Within the client GUI.  Open the System Overview.  Right mouse click on the agent/executor you want to move objects off. Then select the Replace from the sub menu.  Within the "Replace use" window, you can select all your object or hand pick just a couple of jobs from this agent/executor.  Then in the replace by field, you can select the agent/executor you want to move the object to.  Once you have select all the objects, click the "Replace..." buttom to move them.


  • 2.  Best way to change the name of an Agent in many jobs

    Posted 12-19-2016 11:39 AM
    There is a second option using the Automic DB change Utility.

    Basically you'll need to unload the transport case and then run the Automic.DB Change utility against it before loading the transport case back into the system. The Automic.DB Change Utility is run from the command line. Documentation on the actual Utility itself can be found in the Automic documentation under Administrator Manual, Utilities, Automic.DB Change, Modifying Exported Data. The commands for running the Automic.DB Change Utility can be found under Administrator Manula, Start Parameters, Start Parameters, and then the section for "Utility for the modification of exported data UCYBCHNG.EXE". Information on the syntax of the script file which is needed is in the documentation under Administrator Manual, Utilities, Automic.DB Change, Syntax of the Script File.

    There is one change that you needed to make to my unload ini file (ucybdbun.ini) to make this work. Add:

    [TRANSPORT]

    all_entities=1

    Once you've confirmed the transport case was unloaded with that parameter in your ini file, you'll want to create a file called script.txt or whatever name you'd like to call it. For this example, create the file in the utility bin directory (C:\uc4600a\utility\bin) and called script.txt. Here is an example of changing the host on the objects from WIN01 to WIN02. So script.txt will have the following lines in it:

    REPLACE JOBS, *, HOST, "WIN01", "WIN02"

    Then go to the command line and go to C:\uc4600a\utility\bin and run the following command based on the start parameters. Note the -3 as pointing to UC_DATA2.TXT. This is so that you still have a backup of the original and is more for the sake of not needing to unload again than anything else.

    C:\Automic\Utility\bin>ucybchng -B -1C:\Automic\utility\bin\script.txt -2C:\Autromic\utility\db\UC_DATA.TXT -3C:\uc4600a\utility\db\UC_DATA2.TXT

    Then you can use the DB Load utility and load the transport case and the hosts in should be changed in all the jobs.




  • 3.  Best way to change the name of an Agent in many jobs

    Posted 12-20-2016 09:34 AM
    For a detailed steps on how to use "Replace Use" in the GUI: https://community.automic.com/discussion/8191/replace-an-agent-on-multiple-jobs-through-the-user-interface

    Also, a quick note on using DB Change Utility - in the documentation, to change the Host of an SAP job it states to use SAP_DST_SYSTEM but on version 9 (have not tested on v10 and higher yet). If using SAP_DST_SYSTEM does not work, use HOST instead.

    From
    REPLACE JOBS, *, SAP_DST_SYSTEM, "original SAP host", "new SAP host" 
    To
    REPLACE JOBS, *, HOST, "original SAP host", "new SAP host" 

    Documentation for REPLACE and REPLACE_PART:
    https://docs.automic.com/documentation/webhelp/english/ALL/components/AE/11.2/All%20Guides/help.htm#ucablb.htm%3FTocPath%3DAdministration%2520Guide%7CUtilities%7CAE%2520DB%2520Change%7C_____2