Re: Start/Stop application on a single server in a cluster throughwsadmin - Websphere

This is a discussion on Re: Start/Stop application on a single server in a cluster throughwsadmin - Websphere ; The SH file...

+ Reply to Thread
Results 1 to 7 of 7

Thread: Re: Start/Stop application on a single server in a cluster throughwsadmin

  1. Re: Start/Stop application on a single server in a cluster throughwsadmin

    The SH file

  2. Re: Start/Stop application on a single server in a cluster throughwsadmin

    Output file

  3. Re: Start/Stop application on a single server in a cluster throughwsadmin

    Have you tried changing:
    {code}
    if [ "$1" = "stop" && "$2" = "UATCell01AppServer01" && "$3" = "App01" ]; then
    "$WAS_ROOT/bin/wsadmin.sh" -f "$script" stop UATCell01AppServer01 App01
    fi

    if [ "$1" = "start" && "$2" = "UATCell01AppServer01" && "$3" = "App01" ]; then
    "$WAS_ROOT/bin/wsadmin.sh" -f "$script" start UATCell01AppServer01 App01
    fi
    {code}

    To:
    {code}
    if [ "$1" = "stop"] && ["$2" = "UATCell01AppServer01"] && ["$3" = "App01" ]; then
    "$WAS_ROOT/bin/wsadmin.sh" -f "$script" stop UATCell01AppServer01 App01
    fi

    if [ "$1" = "start"] && ["$2" = "UATCell01AppServer01"] && ["$3" = "App01" ]; then
    "$WAS_ROOT/bin/wsadmin.sh" -f "$script" start UATCell01AppServer01 App01
    fi
    {code}

    The script is going to try to evaluate by [] pairs.

  4. Re: Start/Stop application on a single server in a cluster throughwsadmin

    missed some spacing in the last post:
    {code}
    if [ "$1" = "stop" ] && [ "$2" = "UATCell01AppServer01" ] && [ "$3" = "App01" ]; then
    "$WAS_ROOT/bin/wsadmin.sh" -f "$script" stop UATCell01AppServer01 App01
    fi

    if [ "$1" = "start" ] && [ "$2" = "UATCell01AppServer01" ] && [ "$3" = "App01" ]; then
    "$WAS_ROOT/bin/wsadmin.sh" -f "$script" start UATCell01AppServer01 App01
    fi
    {code}

    Sorry bout that.

    Josh

  5. Re: Start/Stop application on a single server in a cluster throughwsadmin

    That worked. It calls the JACL script now. But when that runs, it throws another exception...


    bash-3.00$ ./Application.sh start UATCell01AppServer01 App01
    bash-3.00$ ./Application.sh start UATCell01AppServer01 App01
    WASX7209I: Connected to process "dmgr" on node UATCell01Manager01 using SOAP connector; The type of process is: DeploymentManager
    WASX7303I: The following options are passed to the scripting environment and are available as argument that is stored in the argv variable: "[start, UATCell01AppServer01, App01]"
    WASX7017E: Exception received while running file "./Application.jacl"; exception information: com.ibm.bsf.BSFException: error while eval'ing Jacl expression:

    DONE.

    WASX7209I: Connected to process "dmgr" on node UATCell01Manager01 using SOAP connector; The type of process is: DeploymentManager
    WASX7303I: The following options are passed to the scripting environment and are available as argument that is stored in the argv variable: "[start, UATCell01AppServer01, HCSSPartner]"
    WASX7017E: Exception received while running file "./Application.jacl"; exception information: com.ibm.bsf.BSFException: error while eval'ing Jacl expression:

    DONE.

  6. Re: Start/Stop application on a single server in a cluster throughwsadmin

    Any idea which line in the jacl is blowing up?

    Perhaps add some put statements into the jacl to indicate whether or not the appManager has been retrieved properly.

  7. Re: Start/Stop application on a single server in a cluster throughwsadmin

    Yeah, it doesn't seem to be getting to that point actually. Could my logic in calling the proc be incorrect ?


    if { !($argc == 3) }{
    puts "This script requires 3 parameters: start/stop the application , the name of the Server, and the name of the "
    puts "application."
    puts ""
    puts "usage: "
    } else {
    set status [lindex $argv 0]
    }
    if {$status == "stop"}
    {
    set serverName [lindex $argv 1]
    set appName [lindex $argv 2]
    stop $status $serverName $appName
    } else {
    set serverName [lindex $argv 1]
    set appName [lindex $argv 2]
    start $status $serverName $appName
    }



    Basically, depending on whether the parm is start/stop, I call the appropriate proc.

+ Reply to Thread