AutoSys Workload Automation

Expand all | Collapse all

Two instances on a single server

Steve Carrobis

Steve CarrobisOct 09, 2018 09:57 AM

Sharath Kumar

Sharath KumarOct 16, 2018 06:37 PM

  • 1.  Two instances on a single server

    Posted Oct 08, 2018 06:48 PM

    Hi Experts,

     

    I have two instances created on a single server and I have JIL files from both the instances Dev and UAT. I was able to search and look for the JIL files on one of instances but for the other instance I was not able to find it.

    How would I be able to look for the same set of files in two different instances of the same server.

    Any help is greatly appreciated.



  • 2.  Re: Two instances on a single server

    Posted Oct 09, 2018 02:00 AM

    You have to switch to the second instance. Also make sure you loaded them into both instances. Are you the AutoSys administrator? (I assume this is AutoSys and not d-Series or Automic)



  • 3.  Re: Two instances on a single server

    Posted Oct 09, 2018 02:02 AM

    Why do you have 2 instances on the same server? Is this a lab environment? Even then, I wouldn't recommend it



  • 4.  Re: Two instances on a single server

    Posted Oct 09, 2018 09:57 AM

    Agreed, one goes down you lose them all. 



  • 5.  Re: Two instances on a single server

    Posted Oct 09, 2018 02:37 PM

    Thanks daddepelli and steve for your comments. Yes we do have two instances on the same server dev and UAT, we might get other server later but as of now we wanted to use the same server for two different instances following different naming standards between jobs in dev and UAT.

     

    Daddepelli,

    Sorry I didn't understand you correctly, how do I switch to other instance on the same server because the login details are same for both the instances in the same server.



  • 6.  Re: Two instances on a single server

    Posted Oct 09, 2018 02:49 PM

    This environment would be highly unstable. That said...is this on Windows or Linux/*nix?

    Are you trying to do this from the command prompt using autorep or from WCC/iXP 



  • 7.  Re: Two instances on a single server

    Posted Oct 09, 2018 04:51 PM

    It is on Linux machine. I am using Autorep command from command line.
    For example:

    Dev Instance - Instance name=DEV, JIL file=test1, profile=Profiledev.env

    UAT Instance - Instance name =UAT, Jil file=test1, profile=Profileuat.env

    Both Instances DEV and UAT are on same server, server =autosys3

     

    I login to server (autosys3) from Linux machine and I wanted to find both the jobs test1 in both instances but I can see the one from Dev instance only.  Autorep -j '%test1% -q is  the command I was using.



  • 8.  Re: Two instances on a single server

    Posted Oct 09, 2018 10:32 PM

    Can both the instances  run on a single Autosys agent on one single server as explained in my previous message . If we can't run both the instances on a single agent, how do we configure a particular instance to run on a agent.

     

    Do we have any profile that needs to be updated to use particular instance ? 



  • 9.  Re: Two instances on a single server

    Posted Oct 10, 2018 02:22 AM

    Hello

     

    If there are two different instances on this Linux server,  means that you have two different $AUTOUSER directories.

    For example:

    /opt/CA/WorkloadAutomationAE/autouser.DEV

    /opt/CA/WorkloadAutomationAE/autouser.UAT

     

    To switch among these both instances, just run:

     

    /opt/CA/WorkloadAutomationAE/autouser.DEV/autosys.sh.*

     

    or 

     

    . /opt/CA/WorkloadAutomationAE/autouser.UAT/autosys.sh.*

     

    Then you will be able to run any comand against DEV or UAT instances

     

    Regards

    Jean Paul



  • 10.  Re: Two instances on a single server

    Posted Oct 16, 2018 06:33 PM

    Thanks Lukas for the suggestions. 



  • 11.  Re: Two instances on a single server

    Posted Oct 18, 2018 10:41 AM

    Hi Lucas,

     

    Without switching between two instances can we use any other command to find the list of jobs between both instances.

     

    As mentioned in my previous post one instance is used for dev and other for UAT on the same server. Now I wanted to compare all the jobs from both Dev and UAT . Is there a command to search certain jobs from both dev and uat without switching between the instances.

     

    I wanted to check if all the jobs are in sync in both the environments.  



  • 12.  Re: Two instances on a single server

    Posted Oct 18, 2018 10:46 AM

    they are completely different DBs. how to you sup[posed to do that ? 

    have WCC connect to both and perhaps view it that way but from command line you will have to flip. 

    IMHO, this should have been mapped out and thought out before implementing.

    just my 3 cents 

     

    Steve C.



  • 13.  Re: Two instances on a single server

    Posted Oct 29, 2018 07:03 AM

    Hi

     

    When switching among these both instances, the Autosys environment must be set because the databases are different.

     

    From your Unix shell, execute:

    . /opt/CA/WorkloadAutomationAE/autouser.DEV/autosys.sh.*

     

    Then execute your autorep commands like that

    autorep -J ALL -q >/tmp/all_jobs_DEV

    autorep -M ALL -q >/tmp/all_machines_DEV

     

    Then switch to UAT with:

    . /opt/CA/WorkloadAutomationAE/autouser.UAT/autosys.sh.*

     

    Then execute your autorep commands like that

    autorep -J ALL -q >/tmp/all_jobs_UAT

    autorep -M ALL -q >/tmp/all_machines_UAT

     

    Regards

    Jean Paul

     



  • 14.  Re: Two instances on a single server

    Posted Oct 29, 2018 09:35 AM

    Thanks Lucas. Does autorep -J ALL -q >/tmp/all_jobs_DEV gives me all the jobs along with their dependencies ?

     

    Also I wanted the jobs in the order  they are scheduled with dependencies, What jobs runs first and then followed by others.



  • 15.  Re: Two instances on a single server

    Broadcom Employee
    Posted Oct 12, 2018 08:46 AM

    There are three main variables that AutoSys uses:

    AUTOSYS

    AUTOUSER

    AUTOSERV

     

    The AUTOSYS variable tells AutoSys what directory the AutoSys binaries are located.

    The AUTOUSER variable tells AutoSys what directory the AutoSys instance's config file is located in.

    The AUTOSERV variable is the AutoSys  instance name.

    Any commands that you run will use the config file named config.$AUTOSERV that is located in $AUTOUSER.



  • 16.  Re: Two instances on a single server

    Posted Oct 16, 2018 06:37 PM

    Thanks Steve!