PQ60191: WSCP.SH DOES NOT CORRECTLY PROVIDE RETURN VALUES IF THE COMMAND FAILED FOR SOME REASON

 A fix is available

System Management Component Cumulative Fix for 4.0.2/4.0.3/4.0.4 /4.0.5



APAR status
Closed as program error.

Error description
With version 4.0.2 we noticed that wscp.sh does not correctly
provide return values if the command failed for some reason.
  This makes it extremly to use this tool in scripts because we
  have to make sure that we handle errors correctly.
  To reproduce the problem do:
  wscp.sh -c "ApplicationServer start {/Node:wsmajestix/Applicat
  ion Server:gugus/}"
  >> WSCP061E: Object not found ....
     echo $? returns RC 0 that is wrong
Local fix
There is no workaround for this. A fix will be provided.
Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 4.0.0, 4.0.1, 4.0.2, 4.0.3.                  *
****************************************************************
* PROBLEM DESCRIPTION: WSCP was not correctly passing the      *
*                      return values for failed commands.      *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Return code from wscp.sh (or wscp.bat) is always 0 regardless of
whether operation was successful or not.
Problem conclusion
Changed code so that if an operation fails when wscp is
operating in command mode (wscp -c) or script mode (wscp -f),
then wscp will exit with the errorCode set by the
method that handled the failing operation.
Temporary fix
Test fix sent to L2 on 07May02
Comments
APAR information
APAR number PQ60191
Reported component name WEBSPHERE AE SO
Reported component ID 5630A2202
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-04-18
Closed date 2002-06-28
Last modified date 2002-06-28

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
WSCP          

SRLS

Fix information
Fixed component name WEBSPHERE AE SO
Fixed component ID 5630A2202

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ60191
IBM Group: Software Group
Modified date: Jun 28, 2002