How to Get WebLogic Assets Health State?
WebLogic health states can monitoring in “WebLogic Console > environment > servers”.

- To get to the health state of a deployment, you can use the following code after connecting to the Adminserver over WLST
domainRuntime()
appBean = getMBean(“ServerRuntimes/Managedserver_1/ApplicationRuntimes/superstore”)
appBean.getHealthState()
2. To get health state of servers use below wlst code.
Connect to Weblogic Admin Server in WLST
wls:/offline> connect(“weblogic”,”welcome1”,”localhost:7001")
wls:/volthread_domain/serverConfig> x=ls(‘Servers’,returnMap=’true’)
This will return all your servers (Output:) :
dr-AdminServer
dr-ManagedServer_1
dr-ManagedServer_2
Then run :
wls:/volthread_domain/serverConfig> x
Which will return:
[AdminServer, ManagedServer_1, ManagedServer_2]
wls:/volthread_domain/serverConfig> for i in x: state(i,’Server’)
Which will return :
Current state of “AdminServer” : RUNNING
Current state of “ManagedServer_1” : RUNNING
Current state of “ManagedServer_2” : SHUTDOWN
WLSDM can monitor all WebLogic assets health
Servers, Deployments, Datasource health dashboard:

Monitoring Health history (servers, deployment, datasource):

WLSDM Component monitoring:

Complete Oracle FMW product stack monitoring infrastructure for your FMW domains and their system components and instances (formerly OPMN processes).
Monitoring below Oracle FMW products’ WebLogic domains are not a big deal for WLSDM and WL-OPC users. You do not need to write any WLST scripts while “Monitoring the Status of Components Using the Command Line”.
- Oracle FMW OBIEE (Oracle Business Intelligence Enterprise Edition) — FMW BI Domains
- Oracle Traffic Director (OTD) Components and Instances
- Oracle HTTP Server (OHS) Components and Instances
- Oracle Forms and Reports (OFR) Components and Instances
- Oracle Data Integrator (ODI) Components and Instances
- Oracle E-Business Suite (EBS) Components and Instances
- Oracle Identity Management (IDM) Components and Instances
- Oracle Internet Directory (OID) Components and Instances
- Oracle Virtual Directory (OVD) Components and Instances
- Oracle Access Manager (OAM) Components and Instances
WLSDM installation is really easy and you can setup a complete monitoring infrastructure in less than 5 minutes. If you want to try then go to WLSDM download page. (Download link is available at below)
