Wednesday, August 24, 2011

WLST OBIEE Bounce Presentation Server

Script to bounce the presentation server using the WLST:


# Bounce Presentationserver using WLST
# Be sure we are in the root
cd('..\..')

print 'Connecting to Domain ...'
try:
domainCustom()
except:
print 'Already in domainCustom'

print 'Go to biee admin domain'
cd('oracle.biee.admin')

print 'Go to coreapplication_obips1 Mbean'
cd('oracle.biee.admin:oracleInstance=instance1,type=BIDomain.BIInstanceDeployment.BIComponent,biInstance=coreapplication,process=coreapplication_obips1,group=Service')

print 'Stopping the presentation server'
params = jarray.array([], java.lang.Object)
signs = jarray.array([], java.lang.String)
invoke('stop', params, signs)

print 'Starting the presentation server'
params = jarray.array([], java.lang.Object)
signs = jarray.array([], java.lang.String)
invoke('start', params, signs)

PresentationServerStatus = get('Status')
print 'PresentationServerStatus± ' +PresentationServerStatus


Till Next Time

No comments:

Post a Comment