Welcome, guest | Sign In | My Account | Store | Cart

WSCP script to stop WebSphere AppServer

Tcl, 29 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
echo off

:: call tcl script to stop WebSphere App Servers

echo ****************************************
echo * stop servers
echo ****************************************

call wscp -p c:\scripts\websphere\wscp_properties.txt ^
          -f c:\scripts\tcl\stopservers.tcl


---------------------------------------------------------------

stopservers.tcl

# 
# stop servers
#

source c:\\SCRIPTS\\tcl\\showserverstatus.tcl

foreach server [ApplicationServer  list] {

        puts "\n******* stop SERVER $server\n"
        catch {ApplicationServer stop $server}	
}

showServerStatus

Automate WebSphere AppServer shutdown.

Created by Patrick Finnegan on Tue, 1 Oct 2002 (MIT)
Tcl recipes (162)
Patrick Finnegan's recipes (10)

Required Modules

  • (none specified)

Other Information and Tasks