Given weblogic domain containing admin and manage servers. We would like to get JVM parameters of remote Admin or manager server. We will get remote attributes of JVM like: Java version of remote server. Max heap storage. Free heap space in percentage. JVM uptime. We would perform following steps to get JVM diagnostic parameters (WLST).… Read More »
Given a weblogic server. We would like to get list of running servers in current domain using python script. We would following the trailing steps to get list of active servers (WLST). Connect to admin server using t3 protocol. Get list of all servers (RUNNING, SHUTDOWN, STARTING etc) in current domain. Loop through all servers… Read More »
Given the AdminServer (weblogic). We would like get target(s) of deployed application in weblogic (AdminServer) Connect to AdminServer using t3 protocol. Get list of targets of deployed application. Disconnect from AdminServer. Program: Get target(s) of deployed application in weblogic (WLST) def getApplicationTargets(appName): newTargets =  try: cd(‘AppDeployments/’+appName) for t in cmo.getTargets(): newTargets.append(t.getName()) cd(‘/’) except Exception,… Read More »
Given the AdminServer (weblogic). We would like list deployed applications in weblogic (AdminServer) Connect to AdminServer using t3 protocol. Get list of applications deployed in AdminServer Disconnect from AdminServer Program: List deployed applications in weblogic Admin Server: def listDeployments(): listAppDeployments = cmo.getAppDeployments() for appDeployed in listAppDeployments: print appDeployed.getName() connect(“myAdmin”,”mypassword”,”myAdminServer:7001″) #Enter the Application name appName =… Read More »
Check particular application is deployed in current domain of weblogic server. A python/jython wlst script will connect to adminserver to verify app status.
Given the AdminServer (weblogic) We would like to connect to AdminServer using t3s (secure) protocol. We can make the SSL connection by using any of the following truststores: JavaStandardTrust (default truststore for SSL communication) DemoTrust CustomTrust We will use default truststore to make SSL (t3s) connection to AdminServer. To Initiate the SSL connection, the JavaStandardTrust should… Read More »
Given an application war file. deploy application to weblogic admin server using WLST (WebLogic Scripting Tool). Connect, deploy applicaiton and disconnect from server.