prep_process_agentgroup function not working reliably

Document ID : KB000122230
Last Modified Date : 03/12/2018
Show Technical Document Details
Issue:
The script function PREP_PROCESS_AGENTGROUP sometimes give a incomplete list of Agents

Using the following example script, it happens that not all active Agents of the group are returned:
: set &HANDLE# = PREP_PROCESS_AGENTGROUP ( "<GROUP_NAME>") 
: process &HANDLE# 
: set &IM_HOST# = &IM_HOST# 
: if sys_act_restart() = "Y" 
: set &IM_HOST# = "" 
: endif 

: if &IM_HOST# = "" 
: set &IM_HOST# = GET_PROCESS_LINE(&HANDLE#,1) 
: set &HOST# = &IM_HOST# 
: set &IM_HOST_ALIVE# = GET_PROCESS_LINE(&HANDLE#,2) 
: p "In Process: IM_HOST = &IM_HOST# (Status = &IM_HOST_ALIVE#)" 
: endif 
: p "After If: IM_HOST = &IM_HOST# (Status = &IM_HOST_ALIVE#)" 
:endprocess 
: p "After EndProcess: IM_HOST = &IM_HOST# (Status = &IM_HOST_ALIVE#)" 
:close_process &HANDLE# 
Resolution:

Solution:

Update to a fix version listed below or a newer version if available.

 

Fix version:

Component(s): Automation.Engine

Automation.Engine 12.0.7 - Planned release 2019-01-14
Automation.Engine 12.1.4 - Planned release 2019-01-28
Automation.Engine 12.3.0 - Planned release 2019-02-28
Automation.Engine 12.2.2 - Planned release 2019-02-11