HTML format output for wlst scripts - Threadpool and server status
1. Download the HTML.py module from the following link http://www.decalage.info/python/html and place this in wlserver_10.3/common/wlst/modules 2. Below script will generate html file upon successful execution and it will be placed in the same directory from where you execute the script #!/usr/bin/python import sys sys.path.insert(0,'/u01/app/oracle/product/fmw/wlserver_10.3/common/wlst/modules/HTML.py') import HTML tohtmlfile=open('ThreadPoolStatusHTMLFILE.html', 'w') def connection(): try: connect(wls_username,wls_password,url); except: "Unable to connect to the Admin Server, Please check!" def Threadpoolstatus(): tabledata=HTML.Table(header_row=['Server Name','Status','Completed Requests','Hogging Threads','Total Threads','Idle Threads','Pending','Queue Length','Throughput']); urldict...