search cancel

To run sendevents on agent from two schedulers

book

Article ID: 230222

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

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 ?

 

Environment

Release : 12.0

Component : CA Workload Automation AE (AutoSys)

Resolution

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
EWAGLOBALPROFILE=/etc/auto.profile
AUTOUSER=/opt/CA/WorkloadAutomationAE/autouser.R12
AUTOSERV=R12

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.
https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/reference/ae-job-information-language/jil-job-definitions/profile-attribute-specify-a-job-profile.html
https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/reference/ae-job-information-language/jil-job-definitions/envvars-attribute-specify-a-job-s-environment-variables.html

Example:

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"