Automic Workload Automation

 View Only
  • 1.  U00020554 Data sequence couldn't be written into a file. Agent HOSTG.*** isn't active at the moment

    Posted Sep 28, 2016 04:17 PM

    We've had a user where their task was failing with U00020554 Data sequence couldn't be written into a file. Agent 'HOSTG.xxxx' isn't active at the moment even though the HostGroup is active, and they have access to this.

    The object was using a HostGroup in the WRITE_PROCESS, and WRITE_PROCESS does not support HostGroup.

    example:
    :SET &RET# = WRITE_PROCESS(&HND#,"C:\temp\export.txt",HOSTG.HOSTS,@AUTOMIC_LOGINS,OVERWRITE)

    where HOSTG.HOSTS is a host group.

    Some workaround you can apply:

    a) Use a Host
    :SET &RET# = WRITE_PROCESS(&HND#,"C:\temp\export.txt",WIN01,@AUTOMIC_LOGINS,OVERWRITE)


    b)  Use a VARA that holds a list of hosts, then retrieve it using a key (key can be client, client+system_name, etc)

    In the example below, the client number is the key.

    :set &client# = &$client# 
    :set &client# = format(&client#) 
    :print client is &client# 

    :SET &HOSTVALUE# = get_var(VARA.HOSTS,&client#) 

    :SET &HND# = PREP_PROCESS_FILENAME("VWASWV11U02_OS_01","C:\automic\v112u\automationengine\bin\*.exe",,,,"COL=DELIMITER","DELIMITER=*\*","UC_LOGIN=@AUTOMIC_LOGINS") 

    :SET &RET# = WRITE_PROCESS(&HND#,"C:\temp\export.txt",&HOSTVALUE#,@AUTOMIC_LOGINS,OVERWRITE)




  • 2.  U00020554 Data sequence couldn't be written into a file. Agent HOSTG.*** isn't active at the moment

    Posted Sep 29, 2016 03:04 AM
    c)
    Why not using an PREP_PROCESS_AGENTGROUP instead?

    This will provide an Agent without the need of using a VARA that has to be updated manually.

    Silly example but clearly :-)

    :SET &HND# = PREP_PROCESS_AGENTGROUP("HOSTG.WIN.LOADBALANCE","*WIN*",BY_RULE)
    :PROCESS &HND#
    :   SET &AGENT# = GET_PROCESS_LINE(&HND#,1)
    :   SET &STATUS# = GET_PROCESS_LINE(&HND#,2)
    :   PRINT "Agent chosen: &AGENT# -- Status: &STATUS#"
    :ENDPROCESS
    :SET &RET# = WRITE_PROCESS(&HND#,"C:\temp\write_proc.txt",&AGENT#,"@LOGIN.DEFAULT",OVERWRITE)
    :print  &RET#
    :CLOSE_PROCESS &HND#




  • 3.  U00020554 Data sequence couldn't be written into a file. Agent HOSTG.*** isn't active at the moment

    Posted Oct 03, 2016 09:44 AM
    PREP_PROCESS_AGENTGROUP is another option.
    However, we've decided to go with VARA since the VARA will have a list of all their agents for Prod and non-Prod, primary and backup agents. The host will be determined/pulled based on the key (client+system name+B/P). This way they can promote their process from non-Prod to Production without having to change anything in non-Prod or Prod environment.