WLST Code to Check the Deployment Status of Weblogic Servers

0Shares

main.py

def serversRunningStatus():
 
    #Get list of servers in current domain
    servers = cmo.getServers()
    print "Server status in current domain: "
    for server in servers:
        #Get State of each server
        state(server.getName(),server.getType())
    print "End of script"
 
connect("weblogic","welcome2","myAdminServer:7001")
 
serversRunningStatus()
disconnect()
0Shares

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.