AutoSys Workload Automation

  • 1.  Command to get all jobs from multiple instances.

    Posted Oct 18, 2018 10:56 AM

    Hi,

     

    Is there a command to get specific list of jobs from instance 1 (dev) and instance2 (uat) without switching back between the instances.

    Note:both instances are on the same server. 

    For example I have jobs with names Test1_dev, Test2_dev, Test1_Uat, Test2_uat.

    Test1_Dev, Test2_dev is one instance and Test1_uat, Test2_uat is on other instance, both instance are on the same server.

     

    I know I can use autorep -j %Test1_% will do but it is not working as expected and it getting only the jobs from one instance. Please let me know if there is a command to get all the list of jobs without switching between the instance since all the job resides on the same server. 

     

    Thanks for your help. 



  • 2.  Re: Command to get all jobs from multiple instances.

    Posted Oct 18, 2018 11:04 AM

    Let's try again, in this thread. They are NOT on the same server, per se'. They are in 2 separate DBs.

    you need to tell the CLI from which environment to get the information.

    you are basically trying to hit 2 separate targets with one shot. i suggest you create a wrapper process

    with the parameter "jobname" then set environment run autorep . set env run it again. 

    But i need to say that you are looking at this all wrong. just because the same infrastructure is used, doesn't mean they are available to be seen with out telling the product where to look.

     

    and i wouldn't change names between instances it makes migration a PITA. 

    just my 3 cents 

    and good luck

     

    Steve C.



  • 3.  Re: Command to get all jobs from multiple instances.

    Posted Oct 18, 2018 02:39 PM

    Thanks a lot Steve for your quick response. Since they are on two different instances pointing to the same sever so I thought if there might be some command to differentiate between the two instances.

    Could you please suggest/commands to set the wrapper process. Sorry I know I am asking too much and I really appreciate your help. 



  • 4.  Re: Command to get all jobs from multiple instances.

    Posted Oct 18, 2018 02:55 PM

    The same server as i said is NOT the same DB nor the same Instance ... i can have 100 VMs on a hypervisor it doesn't mean i have access to them.

     

    If you are supporting the product i would have assumed you could code.

    you need to set env variables: 

     

    AUTOSERV=<INSTANCENAME>

    AUTOSYS=/opt/CA/WorkloadAutomationAE/autosys
    AUTOUSER=/opt/CA/WorkloadAutomationAE/autouser.$AUTOSERV
    AUTOROOT=/opt/CA/WorkloadAutomationAE

    export AUTOSERV,AUTOSYS,AUTOUSER,AUTOROOT

     

    autorep -J $1

     

    AUTOSERV=<INSTANCENAME2>

    AUTOSYS=/opt/CA/WorkloadAutomationAE/autosys
    AUTOUSER=/opt/CA/WorkloadAutomationAE/autouser.$AUTOSERV
    AUTOROOT=/opt/CA/WorkloadAutomationAE

    export AUTOSERV,AUTOSYS,AUTOUSER,AUTOROOT

     

    autorep -J $1

    ---------------------

    that should get you started,b ut to be useful in this field you need to be semi self sufficient. 

     

    Good Luck

    Steve C.



  • 5.  Re: Command to get all jobs from multiple instances.

    Posted Oct 18, 2018 04:03 PM

    Thanks Steve. Got it !



  • 6.  RE: Command to get all jobs from multiple instances.

    Posted Oct 31, 2023 07:43 AM

    autorep -j ALL

    or 

    jr ALL 

    gives you all jobs with its current status .