Start Weight is the order on which any app starts in WAS sever. App with least order will start first.
step1- Goto server profile.
step2- Copy the below script in a file e.g. ex7.jacl
step3- execute using wsadmin command. e.g. wsadmin -f ex7.jacl > ex7.txt
ex7.jacl start here-
---------------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------------
# Script Type - READ ONLY
# Script to get all the installed App name and their start weight.
# wsadmin -f PP3.jacl > output.txt
#-----------------------------------------------------------------------------------------
# set up globals
#--------------------------------------------------------------
global AdminConfig
global AdminApp
#---------------------------------------------------------
set apps [$AdminApp list]
puts "---------------------------------------------------------"
puts " "
puts " "
puts "This script will get all the installed Apps and read their starting weight!! "
puts " "
foreach appNam $apps {
set dep [$AdminConfig getid /Deployment:$appNam/]
set depObject [$AdminConfig showAttribute $dep deployedObject]
set StartWeight [$AdminConfig show $depObject startingWeight]
puts "APPLICATION NAME: $appNam $StartWeight "
puts " "
}
puts "End of Script.."
#--------------------------------------------------------------------
---------------------------------------------------------------------------------------------
ex7.jacl end here.
Cheers..
No comments:
Post a Comment