#Script to change target of all modules in a WL domain
#@Author Pierluigi Vernetto
#@Date 2010-06-04
connect('weblogic', 'weblogic0', 't3://localhost:7001')
edit()
startEdit()
cd('AppDeployments')
y=ls(returnMap='true')
for i in y :
print i
cd(i)
print(cmo)
set('Targets',jarray.array([ObjectName('com.bea:Name=AdminServer,Type=Server')], ObjectName))
cd('..')
save()
activate()
Saturday, June 5, 2010
WLST script to change target to all deployments in a domain
instead of AdminServer write the name of your target server.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment