Proactive insights, news and tips from Oracle Fusion Middleware Support. Learn Oracle from Oracle.

Get an Offline or Online WebLogic Domain Summary Using WLST!


Further to blog entry "WLST Offline Script to Create Summary of WebLogic Domain", I have created a solution which extends the capability to collecting an online summary if a connection to the domain's Admin Server can be established.

Search the web, and you will find many WLST examples which summarize managed server status and performance, JMS, JDBC and more. In this respect, my efforts are nothing new. However, I thought I would share as my scripts have the following "bells and whistles".

1. If you are unable to connect to the domain's Admin Server, an offline summary of the domain will automatically be obtained

2. The script renders the collected data in HTML, using some javascript to give the final result some interactive formatting for ease of reading. See screenshot snippet below:

Screenshot : Snippet of WLST Summarizer HTML Output

Screenshot showing WLST Summarizer HTML output

3. If a managed server has a "FAILED" health state or there is 1 or more thread hogs in its JVM thread pool, three thread dumps will be captured (15 seconds apart).

Download Sample Script

You can grab the sample script by clicking here.

Instructions to Run:

1. After download, extract the zip to the machine hosting the WebLogic environment. You should have three directories along with a readme.txt

  • output
  • Sample_Output
  • scripts

2. In the scripts directory, find the start wrapper script startWLSTDomainSummarizer.sh (Unix) or startWLSTDomainSummarizer.cmd (MS Windows). Open the appropriate file in an editor and change the environment variable settings to suit your system.

Example - startWLSTDomainSummarizer.cmd

set WL_HOME=D:\product\FMW11g\wlserver_10.3
set DOMAIN_HOME=D:\product\FMW11g\user_projects\domains\MyDomain
set WLST_OUTPUT_PATH=D:\WLSTDomainSummarizer\output\
set WLST_OUTPUT_FILE=WLST_Domain_Summary_Via_MBeans.html
call "%WL_HOME%\common\bin\wlst.cmd" StartDomainSummarizer.py

Note: The WLST_OUTPUT_PATH directory value must have a trailing slash. If there is no trailing slash, the script will error and not continue. 

3. Run the shell / command line wrapper script. It should launch WLST and kick off "StartDomainSummarizer.py". This initial python script will hit you with some prompts e.g.

Is your domain Admin Server up and running and do you have the connection details? (Y /N ):
Enter connection URL to Admin Server e.g t3://mymachine.acme.com:7001 :
Enter weblogic username:
Enter weblogic username password (function prompt 1):

(Note: the value typed in for password will not be echoed back to the console).

Depending on your responses it will call "WLSDomainInfoOffline.py" or "WLSDomainInfoOnline.py". 

4. If the scripts run successfully, you should get a HTML summary in the specified output directory. 

5. For the HTML to render correctly, ensure the .js and .css files provided (review the output directory created by the zip file extraction) are accessible. For example, to view the HTML locally (without using a web server), place the HTML output, jquery-ui.js, spry.js and wlstsummarizer.css in the same directory.


This is a sample script. I have tested it against WebLogic Server 10.3.6 domains on MS Windows and Unix.  I cannot guarantee that the script will run error free or produce the expected output on your system. If you have any feedback add a comment to the blog. I will endeavour to fix any problems with my WLST code.


JQuery: http://jquery.com/
Spry (Adobe) : https://github.com/adobe/Spry

Join the discussion

Comments ( 6 )
  • guest Wednesday, May 8, 2013


  • guest Wednesday, May 13, 2015


    Thanks for the script! I found it very useful.



  • sunny Friday, April 22, 2016

    the script download link is not working. can you please send me your script to my email id please.

  • Dan Monday, April 25, 2016

    Broken links were caused by change to blog name in url. Sorry about that. All fixed now. You should be able to download using the link.

  • raj Wednesday, September 4, 2019

    I tried to run the scripts for WLS, I got the below error.

    There has been a problem running WLSDomainInfoOnline.py. Debug this script by running it standalone.

    in the log, i got this message, can you please help to run the script in

    No stack trace available.
    Error occurred while performing cd : Attribute Servers not found. Use ls('a') to view the attributescd

    Exiting WebLogic Scripting Tool.

  • Mihai Thursday, January 16, 2020
    Love it ! Is simple to be used (as it is) and also to be updated. Thanks,Daniel !
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.

Recent Content