#!/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"
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"
No comments:
Post a Comment