Jul 102011
 Posted by on July 10, 2011 at 4:31 am IBM Websphere Application Server, JACL Tagged with: , ,  Add comments
ibm websphere

Below JACL function can be used to Check server is up or not and Start Server if it is not running. I made this script to autodeploy ear files to websphere. Below script is part of it total auto deployment functions.

proc chk_startServer {} {

puts “checklist: — checking to see if server $serverName is already running on node $nodeName”
set runningServer [$AdminControl completeObjectName type=Server,node=$nodeName,process=$serverName,*]
if { [llength $runningServer] > 0 } {
puts “checklist: — Server $serverName running on node $nodeName”
return 1
} else {
puts “checklist: — Server $serverName is not running …”
puts “checklist: — starting server $serverName …”
$AdminControl startServer $serverName $nodeName
puts “checklist: — done.”
return 1

$nodeName and $serverName needs to be replaced by the real values.

© Incase of any copyright infringements please check copyrights page for faster resolutions.

Leave a Reply

Show Buttons
Hide Buttons