Variable __owner is not passed by the scheduler to the System Agent

book

Article ID: 8267

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) CA Workload Automation Agent

Issue/Introduction

With Autosys 11.0, variable __owner was passed by the scheduler to the Remote Agent.

This is no longer the case with CA WAAE 11.3.x

Cause

The SetJobAttributeEnvironmentals parameter supports setting the following environment variables that are based on job definition JIL attribute values:

__job_name=job_name

__box_name=box_name

__machine=machine

__run_machine=run_machine

__max_exit_success=max_exit_success 

This parameter is set in file $AUTOUSER/config.$AUTOSERV

But variable __owner is not part of this list 

Environment

CA-WAAE 11.3.6 SP6 with System Agent 11.3 SP7 on Unix

Resolution

You can set and export variable __owner from the /etc/auto.profile script based on variable LOGNAME like this:

../..

__owner=$LOGNAME

export __owner

Additional Information

In order to execute /etc/auto.profile, the Legacy System Agent settings have to be set in the agentparm.txt file of the System Agent.

 

More details at:

https://docops.ca.com/ca-workload-automation-system-agent/11-3/en/configuring/configure-the-agent/configure-the-agent-to-behave-like-a-legacy-remote-agent