AnsweredAssumed Answered

Possible to read any Agent in a new Variable? - PREP_PROCESS_AGENTGROUP

Question asked by AndreEymann608218 on Oct 2, 2014
Latest reply on Oct 6, 2014 by AndreEymann608218

Hello Community,


with the following code it's possible to print out a list of any existing Agents (and it's status) of an Agentgroup.

:SET &HND# = PREP_PROCESS_AGENTGROUP("AGENTENGRUPPE_WINDOWS","WIN*",ALL)

 

:PROCESS &HND#
:   
SET &AGENT# = GET_PROCESS_LINE(&HND#,1)
:   
SET &STATUS# = GET_PROCESS_LINE(&HND#,2)
:   
PRINT "Agent: &AGENT#"
:   
PRINT "Status: &STATUS#"
:
ENDPROCESS

 

:CLOSE_PROCESS &HND#

Question:

We would like to put any Agent that is found during the Handle in a specific Variable. Like &AGENT_1# = GET_PROCESS_LINE(&HND#,1) and then the next &AGENT_2# = GET_PROCESS_LINE(&HND#,1).

How could that be achieved?

Any help would be appreciated.


André

Outcomes