Avoid changing agent name in ESP JOB definition when agent server migrates
search cancel

Avoid changing agent name in ESP JOB definition when agent server migrates

book

Article ID: 390227

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

We need to find out the ways how to parametrize agents values inside jobs when agent server migrate, in order to avoid new massive changes job by job in ESP. 

Is there a way to parametrize the agent value just once?

Environment

Component: ESP Workload Automation
Release: ALL

Resolution

There are two possible solutions:
Solution #1
1. Store the agent names and the related variables in a library member:
AGENT1='xxxxx'
AGENT2='xxxxxx'

2. Add INVOKE in ESP Proc for above library member:
APPL ...
INVOKE 'library(member)'

3. Use ESP variable on AGENT statement:
UNIX_JOB xxx
AGENT %AGENT1
...
ENDJOB

Solution #2
Reuse the same agent name and only change the AGENT related information in ESP AGENTDEF table.