When we use WSF command in CSF, we receive the below error as 'Spool file retrieval failed'.
Note: The agent wob was sent to an alias, which has two physical agents behind the load balancer.
Possible causes are:
#1 The ESP application record has been overwritten: this can be checked by "LAP appl.gen ALL" command.
#2 The retrieve spool request was sent to the wrong physical agent: this can be addressed by adding NOALIAS on the alias agent definition.
#3 The agent can be configured to remove the spool output after the wob ran successfully.
For #1, the APPLFILE can be enlarged, so that the application record can stay longer without being overwritten.
For #2, one of the following can be used:
- Use the same shared drive for spooldir, so that the spool outputs can be retrieved by either agent
- Define a different agent name for the two agents, and use an alias like below:
communication.alias_1=aliasname
And define the alias in ESP Agent definition table. The alias agent needs to be defined with NOALIAS option, so the retrieve spool request will be sent to the proper agent where the job ran.
For #3, the following in agentparm.txt should be commented or set to false:
agent.spool.success.autocleanup=false