Original script/description see http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html
My upload http://download.csdn.net/detail/haha7/4306698.
Environment
Os:linux
Script Lang:jacl (uh ....) I know it's not recommended.)
Application:webtop.war
Attention
can only run on Linux, because only the sh file is written
Target server must be in the cluster (currently only tested for Appservers connected to Networkdeployment Deploymentmanager)
only a secrity server was tested, the cluster version was difficult to get, and the existing environment was not changed (seemingly 6.1.0.41 to secrity serverfrom a non-secrity server ). Visual secrity should look like this .
"$WAS _root/bin/wsadmin.sh"-username myadmin-password myadmin-f "$script" Install-pilot false "$configDir" $distDi R
Localized customization
The war/ear package location of the original script is fixed and I add the following code to specify the location
Read-r distdirtemp? " Please enter the deployable path: "
Distdir= ' echo $distDirTemp |tr-s '
Instructions for use
The following documents need to be modified to suit their own environment
webtop_war-pilot.settings
Change the parameters of the enterprise applications. (Applicationname,modulename, etc.)
webtop_war-pilot.targets
Change the parameters of the enterprise Applications target server. (NodeName, ServerName, clustername)
webtop_war-pilot.scripts
Change the target server JVM settings. (Nodename,servername)
deploy.sh
Change Was_root
Change the expected action. For example, do not want to enterprise applications install/update completed after being uninstalled, note/delete
Echo Fourth Uninstall ...
"$WAS _root/bin/wsadmin.sh"-F "$script" Uninstall-pilot true "$configDir" $distDir "