search cancel

To run sendevents on agent from two schedulers


Article ID: 230222


Updated On:


CA Workload Automation AE


We are facing a production scenerio where in we want to run sendevent commands on one agent from two schedulers. Sendevent commands are getting processed on 1 scheduler as of now however we want to trigger sendevents on 2nd as well. How can it be achieved ?



Release : 12.0

Component : CA Workload Automation AE (AutoSys)


If you want an agent to be able to issue "sendevent" to a specific AUTOSERV you
need to have an autosys client on the host and an $AUTOUSER directory for that 
specific instance and the $AUTOUSER/config.$AUTOSERV file for it with the correct entries.
It needs to be able to find that so it can read things like 
UseEncryption, AutoServer, AutoServerPort so it knows where to send the communication to.

Additionally you would want to modify the 
<agent>/profile/<AUTOSERV>.txt file so it includes 
the $AUTOUSER and $AUTOSERV values so when a job from that instance 
comes into the agent that profile is read in and used.

Example of mine:
$ more /opt/CA/WorkloadAutomationAE/SystemAgent/WA_AGENT/profiles/R12.txt

NOTE - you need to restart the agent for changes to the profile to be reflected

Or you can set a profile or env variables for the job in its definition.
see profile: or envvars: settings.


insert_job: ashwin   job_type: CMD
command: env
machine: localhost
owner: autosys
std_out_file: "/tmp/ashwin.out"
std_err_file: "/tmp/ashwin.err"
envvars: AUTOSERV=123
envvars: AUTOUSER="/opt/CA/WorkloadAutomationAE/autouser.123"