search cancel

Powershell and Jobmelder

book

Article ID: 89385

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Affects Release version(s): null

Powershell and Jobmelder

Environment

Release:
Component: AAUTEN

Resolution

Symptoms

Jobmelder command is unusable in Windows Agents that run in Powershell. ( &UC_JOBMD CMD= ) Especially problematic with the script function GET_LOGIN.


Cause

&UC_JOBMD is not recognized correctly.


Resolution

Create a variable that contains the Jobmelder call and call it externally in Powershell.

:SET &PASS# = GET_LOGIN(&LOG#,NAME,TYPE,PASSWORD)

:set &job_md#=get_var('UC_EX_JOB_MD','&$AGENT#')
$exe='&job_md#'
&$exe CMD="echo &PASS#" | set-variable test