After upgrading Applications Manager ntspawn no longer writes stderr to output log

book

Article ID: 209131

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

After upgrading Applications Manager to 9.3.1, 9.3.2, 9.3.3, 9.3.3 hf1, or 9.3.4, the stderr stream is no longer being written to the output log file. 

An example of this is seen below, where a script is simply making a directory that already exist.

Expected behavior seen in 9.3.0 and below:

'calling'C:\Appworx\phm\AM9WINDOW\exec\Make_Directory.bat
NTSPAWN pid 8568:2178
JOBID 5363.02
Spawned process with ID 8400 20d0

C:\Appworx\phm\AM9WINDOW\run>echo Making Directory
Making Directory

C:\Appworx\phm\AM9WINDOW\run>MKDIR C:\Appworx\phm\AM9WINDOW\test
A subdirectory or file C:\Appworx\phm\AM9WINDOW\test already exists.
No error file found. [C:\Appworx\phm\AM9WINDOW\run\doserr.5363.02]end of C:\Appworx\phm\AM9WINDOW\exec\BODY2.BAT status 1 Mon 02/22/2021 14:31:56.77
err is:'1'

Unexpected behavior seen in version 9.3.1 through 9.3.4 (may slightly differ depending on version)

'calling'C:\Appworx\phm\AM9WINDOW\exec\Make_Directory.bat
DEBUG is False
Spawned process with ID 9628

C:\Appworx\phm\AM9WINDOW\run>echo Making Directory
Making Directory

C:\Appworx\phm\AM9WINDOW\run>MKDIR C:\Appworx\phm\AM9WINDOW\test
end of C:\Appworx\phm\AM9WINDOW\exec\BODY2.BAT status 1 Mon 02/22/2021 14:40:51.08
err is:'1'

Notice that stderr message that the directory "already exists" does not appear and we see only the return code.

 

Cause

This is an unintended change.

Environment

Release : 9.3, 9.3.1, 9.3.2, 9.3.3, 9.3.3 hf1, 9.3.4

Component : APPLICATIONS MANAGER

Resolution

Workaround:

Use version 9.3.0's ntspawn.exe. This file can be found in the below directory after unzipping the 9.3.0 installation media:

\SOLARIS.AIX.LINUX.WINDOWS\V9\LB_nt.zip\c\ntspawn.exe

Replace the 9.3.0 ntspawn.exe with the Agent's ntspawn.exe located in:

%AW_HOME%\c\ntspawn.exe

Solution:

A fix will be included in a future version of Applications Manager