Questions tagged [wlst]

WLST (WebLogic Scripting Tool) is a command-line scripting environment that can be used to create, manage, and monitor WebLogic domains. It is based on the Java scripting interpreter, Jython.

WLST (WebLogic Scripting Tool) is a command-line scripting environment that can be used to create, manage, and monitor WebLogic domains. It is based on the Java scripting interpreter, Jython. In addition to supporting standard Jython features such as local variables, conditional variables, and flow control statements, WLST provides a set of scripting functions (commands) that are specific to WebLogic Server. To expertise in this you might need basic knowledge of any programming language is must. Most of the tricks are useful from Python and Jython scripting.

Satya Gattu started developing this WLST Project for WebLogic 8.1 in while working in BEA Systems (acquired by Oracle on April 29, 2008). Its usage and popularity increased from WebLogic 9 version onwards. It has wide scope for not using WebLogic Administration console for various configuration and monitor various System resources performance.

Oracle Fusion Middleware 11g provided a wonderful IDE for WLST developers. It is having full scope for MBean navigation, introspection to classes which you are going to use. Every IDE provides SyntaxHighlighting.

Write your questions on WLST, Python, Jython related System administration tasks. Keep getting the responses around the world from the best scripting experts.

Helpful References

349 questions
1
vote
0 answers

import python module in WLST (weblogic scripting tool)

I need to import python modules in WLST. For example I need "signal" module in WLST to write a timeout function. So I ask you how to do that. Environment: Oracle Linux 6, Oracle Weblogic 11 Moreover, I let you see a piece of code in WLST where I…
1
vote
0 answers

Is there any tool to automate Oracle Service Bus configuration for CICD and where to get it?

I have tried WLST. I am able to deploy wars. I have seen that there is a library to access…
user2108278
  • 391
  • 5
  • 17
1
vote
0 answers

domainruntime() and CD('/') issue

I created a python file and created another shell file to prepare the environment to run the python script. Below is part of the python script including two functions and the error code. I have the following Python code def getState(): print…
ISMAEL
  • 11
  • 1
1
vote
0 answers

Oracle JDBC Driver loaded in one class not accessible in another class in same package

I am working on an EAR application(deployed on WLS 12c) that has a feature to configure and test jdbc connection for Oracle. So, in my jsp page the user selects the driver as oracle.jdbc.OracleDriver, enter the connectionurl, username and password…
1
vote
0 answers

Subprocess and hardcoded directorys work fine varables fail

So am running into an issue and now sure what I am doing wrong. I am using python 2.4 and the subprocess module. This is integrated with my django site. I have a form that askes for some user input, it puts that into a file then starts the script…
Colin Wood
  • 467
  • 4
  • 16
1
vote
2 answers

How do I integrate existing scripts into Django?

I have just been introduced to the Django framework and I would like to use this framework for a lot of my system based Perl/Python/wlst scripts for my group. How can I take the normal command line output and have it output the browser in near real…
Colin Wood
  • 467
  • 4
  • 16
1
vote
0 answers

WLST Bean error when trying to set target server

I am trying to create a work manager by running my python code using WLST. In my python code when trying to set target server for a work manager with cmo.addTarget(bean), it is throwing the following error: ======= Creating a WorkManager name for…
SharletteMA
  • 85
  • 1
  • 3
  • 13
1
vote
2 answers

How to target WorkManager to multiple clusters without hardcoding cluster name or specifying cluster names in property file

i have a WLST script to setup WorkManager and target it to all the clusters in a weblogic domain. Issue is that i have hundred's of domains across multiple env's so cannot have multiple property files. Is there a way to script wlst to pull cluster…
Nanda K
  • 11
  • 1
1
vote
1 answer

Weblogic WLST get deployments status

I am trying to get deployments status from Weblogic Scripting tool. By deployments I mean list of deployments shown in Weblogic server administration console - Domain structure - Deployments I found that using: cd ('AppDeployments') print…
mauek unak
  • 702
  • 2
  • 11
  • 28
1
vote
1 answer

Weblogic Deployment Health Status through WLST

I need to monitor the Health Status of Deployment on Weblogic Server. i can get Server health status, threadpool status, overall server HealthStatus but didn't find Deployment Health Status. although i can get CurrentStatus which is the deployment…
1
vote
0 answers

How to login to the Weblogic Admin Console in code

Pages within Weblogic Administration Console (11g) use a REST-like URLs. I would need to access the contents of a specific URL within my Weblogic administration Console in code, for instance…
Tina J
  • 4,983
  • 13
  • 59
  • 125
1
vote
0 answers

WLST : Which mBean to access deployments>monitoring>workload>Work Managers

I am working on rolling weblogic manager servers start up scripts using python and wlst. Once server is started and comes in running mode I have to check if manage server Completed Requests > 0. If its more than 0 then proceed to next manager server…
Vivek Singh
  • 151
  • 1
  • 2
  • 7
1
vote
1 answer

How to set multiple JNDI names in Weblogic wlst Offline

I want to add 2 jndi names to one data source.This is my…
Pubudu Jayasanka
  • 1,294
  • 4
  • 18
  • 34
1
vote
0 answers

Changing Composite Audit Log via commands

In weblogic Server 11g, is it possible to change the Composite Audit Level via commands ? I was able to find some SOA Composite Application Management Commands which helped me create a python script to perform various action on the composites. PFB…
user3839347
  • 121
  • 10
1
vote
0 answers

using Threads with Jython/wlst

I'm working with weblogic servers and want a class to handle every connection separately with a handler in my scripts. I'm using jython2.7 as interpreter and include all the weblogic libs need. The Idea is to have a handler for every conncetion to…
LayoZz
  • 11
  • 1