Date Created: Tue 22-Sep-2009

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/



Very Basic: Stop script multiple cell instances WebSphere

Stop all WebSphere Node Agents with shell script

#!/usr/bin/ksh

export Dmgr1=<your Deployment Manager profile location>
export Dmgr2=<your Deployment Manager profile location>

for script in $Dmg1r/bin/stopManager.sh $Dmgr2/bin/stopManager.sh

do
if [[ -f $script ]]
then
echo "Running $script"
$script
fi
done

Stop all WebSphere Deployment Managers with shell script

#!/usr/bin/ksh

export Profile1=<your node 01 profile location>
export Profile2=<your node 02 profile location>

for script in $Profile1/bin/stopNode.sh $Profile2/bin/stopNode.sh
do
if [[ -f $script ]]
then
echo "Running $script"
$script
fi
done

Stop all Application Servers with shell script (Single profile - change for multiple profiles)

#!/usr/bin/ksh

export Profile1=<your node 01 profile location>

echo "Stopping all Application Servers in $Profile1"

for server in `$Profile1/bin/serverStatus.sh -all | grep "Server name" | awk '{print $4}' | grep -v nodeagent`
do
out "Stopping $server"
$Profile1/bin/stopServer.sh $server >/dev/null &
done

echo "All servers are being stopped"

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many leading brands around the world. Steve specialises in JEE, DevOps and Thought Leadership.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

Courses

  • WebSphere Courses

Articles

WebSphere Categories

Other Categories