How to get SOA Applications state using WLST ?

First run "setDomainEnv.sh"  to set the environment

. ./setDomainEnv.sh

and start WLST

java weblogic.WLST

next run following commands

connect('weblogic','welcome1','localhost:7001')

domainRuntime()
cd ("AppRuntimeStateRuntime/AppRuntimeStateRuntime")
ls ()

You will see here the available applications
and you can get for example the soa-infra state using

print cmo.getCurrentState("soa-infra", "soa_server1")

or the mediator state using

print cmo.getCurrentState("oracle.soa.mediator#11.1.1@11.1.1", "soa_server1")  


Posted in Labels: , , |

1 comments:

  1. sap upgrade project Says:

    This is the answer of question which I was looking for. Using this code you can get SOA applications states using WLST. This code is simple and easy to understand. I also tried to generate the code but succeeded till the middle. Thanks for giving the code.