Christine_Chavez_6412

Is HostGroup not allowed in From/To of a FileTransfer job?

Discussion created by Christine_Chavez_6412 on Oct 4, 2016
Latest reply on Oct 4, 2016 by Christine_Chavez_6412


A HostGroup is allowed in the From - Host/To - Host attribute of a FileTransfer job. 

However, you can't use it in both From-Host and To-Host. It has to be one or the other.



To use the agents in a HostGorup in a FileTransfer, you can do the following:
*Example for assigning an Agent to 'To - Host' from a HostGroup*

1) on "FileTransfer" tab, don't define any To - Host (leave it to just <WIN>)
2) on "Process" tab, process the HostGroup using Prep_Process_AgentGroup, check if agent is active, then set the To - Host
:SET &HND# = PREP_PROCESS_AGENTGROUP("HOSTG.WIN.CCH",,ALL)
:PROCESS &HND#
:   SET &AGENT# = GET_PROCESS_LINE(&HND#,1)
:   SET &STATUS# = GET_PROCESS_LINE(&HND#,2)
:   PRINT "Agent: &AGENT#"
:   PRINT "Status: &STATUS#"
:   IF &STATUS# = "Y"
:     PUT_ATT FT_DST_HOST = &AGENT# :   ENDIF
:ENDPROCESS


The list of FileTransfer attributes can be found here:
https://docs.automic.com/documentation/WEBHELP/English/all/components/AE/11.2/All%20Guides/help.htm#ucaahu.htm
Documentation for PRE_PROCESS_AGENTGROUP:
https://docs.automic.com/documentation/WEBHELP/English/all/components/AE/11.2/All%20Guides/help.htm#ucaclv.htm?Highlight=PREP_PROCESS_AGENTGROUP

Outcomes