OraWorld

Where Technology meets Experience.

  • 
  • 
  • 
  • 
  • 
  • 
  • Home
  • Articles
    • FMW
      • 12c
      • NodeManager
      • OHS
      • SOA
      • Webcenter
      • OBIEE
      • BIAPPS
      • OEM 12c
    • IAM
      • OAM
      • OIM
      • OID – OVD
      • ODSEE
      • OUD
      • OES
      • OMSS
      • OIF
    • APPS
      • Ebiz Applications
      • Fusion Applications
    • Others
      • Database – Pl/Sql
      • OS
  • Blog
  • Contact US
  • About Us

June 17, 2012 by Sumit Gupta Leave a Comment

Server State in the Weblogic domain using WLST Commands

 
Many times during our SOA implementation, we could not logged into SOA Console to monitor the state of the servers in the Domain due to different reasons ( huge load, bad Console performance).
 
It can be easily done by WLST Commands. Properties like ServerState, Server Health,ListenPort, Listen Addresses etc can be easily monitored.
 
a) There are bunch of commands that needs to be executed to get the details. For simplycity, a jython script can be directly executed.
 
ServerStatus.py

 

username = 'weblogic'
password = 'PASSWORD'
URL='t3://host:port'
connect(username,password,URL)
domainRuntime()
cd('ServerRuntimes')

servers=domainRuntimeService.getServerRuntimes()
for server in servers:
 serverName=server.getName();
 print '**************************************************'
 print '############## serverName ###############'
 print '**************************************************'
 print '##### Server State #####', server.getState()
 print '##### Server ListenAddress #####', server.getListenAddress()
 print '##### Server ListenPort #####', server.getListenPort()
 print '##### Server Health State #####', server.getHealthState()

 

b) Execute it

$ORACLE_SOA_HOME/common/bin/wlst.sh ServerStatus.py

 

c) Sample Output

 

**************************************************
############## serverName ###############
**************************************************
##### Server State ##### RUNNING
##### Server ListenAddress ##### Server Name/IP
##### Server ListenPort ##### PORT
##### Server Health State ##### Component:ServerRuntime,State:HEALTH_OK,MBean:WLS_WSM1,ReasonCode:[]
**************************************************
############## serverName ###############
**************************************************
##### Server State ##### RUNNING
##### Server ListenAddress ##### Server Name/IP
##### Server ListenPort ##### PORT
##### Server Health State ##### Component:ServerRuntime,State:HEALTH_OK,MBean:AdminServer,ReasonCode:[]


Filed Under: FMW, Fusion, Oracle, Performance, Weblogic Tagged With: Commands, Fusion, scripts, Server, state, Weblogic, WLST

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe

Author

Sumit GuptaSumit Gupta (214)

Sumit Gupta is an Oracle Fusion Middleware consultant with more than 13+ years of rich experience working on Oracle technologies. His area of expertise includes Oracle Identity Management (OIM, OAM, OID, OUD, ODSEE, DIP), SSO, IDCS, WebLogic,SOA, UCM, Webcenter, OBIA, OBIEE, Oracle EPM, ODI, Oracle E-Business Suite and Fusion Applications.

Find posts by Categories

Find posts by Months

Sharing is Sexy !

  • 
  • 
  • 
  • 
  • 

© Copyright 2015 OraWorld · All Rights Reserved