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