Date Created: Tue 22-Sep-2009

Related Document Categories:



    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"

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

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

WebSphere Categories

Oracle WebLogic Categories

JBoss Categories

Other Categories