removeNode.sh

 


#!/bin/sh

# THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
# IBM Confidential OCO Source Material
# 5639-D57, 5630-A36, 5630-A37, 5724-D18 (C) COPYRIGHT International Business Machines Corp., 1997,2002
# The source code for this program is not published or otherwise divested
# of its trade secrets, irrespective of what has been deposited with the
# U.S. Copyright Office.
# All Rights Reserved * Licensed Materials - Property of IBM
# US Government Users Restricted Rights - Use, duplication or disclosure
# restricted by GSA ADP Schedule Contract with IBM Corp.

# Node Removal Tool

SHELL=com.ibm.ws.management.tools.NodeRemovalUtility

binDir=`dirname $0`
. $binDir/setupCmdLine.sh

CONSOLE_ENCODING=-Dws.output.encoding=console

PLATFORM=`/bin/uname`
case $PLATFORM in
  AIX)
    LIBPATH="$WAS_LIBPATH":$LIBPATH
    export LIBPATH ;;
  Linux)
    LD_LIBRARY_PATH="$WAS_LIBPATH":$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH ;;
  SunOS)
    LD_LIBRARY_PATH="$WAS_LIBPATH":$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH ;;
  HP-UX)
    SHLIB_PATH="$WAS_LIBPATH":$SHLIB_PATH
    export SHLIB_PATH ;;
esac

# For debugging the utility itself
# DEBUG="-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777"

"$JAVA_HOME"/bin/java \
  -Xbootclasspath/p:"$WAS_BOOTCLASSPATH" \
  $DEBUG \
  $CONSOLE_ENCODING \
  "$CLIENTSAS" \
  "$CLIENTSOAP" \
  -Dws.ext.dirs="$WAS_EXT_DIRS" \
  $USER_INSTALL_PROP \
  -Dwas.install.root="$WAS_HOME" \
  -classpath "$WAS_CLASSPATH":$CLASSPATH com.ibm.ws.bootstrap.WSLauncher \
  $SHELL "$CONFIG_ROOT" "$WAS_CELL" "$WAS_NODE" "$@"

exit $?


 

 

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.