Python Script to Monitor Weblogic Servers thru WLST
Python Script: (monitor.py) def reportDomainHealth(usern, passw, url): print "" print "=====================================================================" connect(usern,passw,url) domainRuntime() print "Found Servers: " serverList=ls('ServerRuntimes'); serverList=serverList.split() print "%15s %15s %20s %15s %15s %40s" % ("Server","Threads","HoggingThreads","QueueLength","Heap_Free","HealthState ") print "----------------------------------------------------------------------------------------------------------------" for i in range(len(serverList)): if serverList[i] != 'dr--': server_st=get('ServerRuntimes/' + serverList[i] + '/HealthState') ...