Thursday, October 18, 2012

WLST to stop and undeploy a list of Deployments


cd /opt/oracle/fmw11_1_1_5/
. ./wlserver_10.3/common/bin/wlst.sh
connect( 'weblogic', 'password', 't3://acme.com:7001')
modulestodelete='_ALSB_1347537896788,_ALSB_1347537898052,_ALSB_1347537898748,_ALSB_1347537899485,_ALSB_1347537900275,_ALSB_1347541839901'
for mymodule in modulestodelete.split(','):
 stopApplication(mymodule)
 undeploy(mymodule)
disconnect()
exit()



No comments: