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
2
votes
2 answers

How to call one wlst script from another wlst?

I am trying to call one wlst script from another wlst script, by importing the other one. I tried the following: domain.py import final final.foo() final.py def foo(): cd('/') when domain.py calls foo, it fails to recognize CD('/') command as its…
Jinu Mohan
  • 136
  • 12
2
votes
1 answer

Handling wlst exception in python script

I'm maintaining a build that is interrupted when trying to delete missing MDS partition. It's fine when there's stuff to remove. I'm not so familiar with the subject and I'd like to either check partition presence before removal handle error and…
arkonautom
  • 958
  • 18
  • 29
2
votes
4 answers

Use WLST to create SOA EDG domain

I am basically a configuration management and automation expert . I have got a task to create weblogic domains for SOA silently . The document that I have to follow is http://docs.oracle.com/cd/E23943_01/core.1111/e12036/create_domain.htm#SOEDG532 I…
Sbal
  • 343
  • 7
  • 20
2
votes
0 answers

How to get Applications Deployment status using WLST script in Weblogic

I am using below script for monitoring my weblogic resourcees like JDBC,JMS,but i want to monitor my applications status which has been deployed in my Weblogic server. Any help in adding deployment monitoring script into it will be a great…
stiwary2987
  • 31
  • 2
  • 6
2
votes
3 answers

WLST capture the output of state('ms1') to a variable

I need to capture the output of the below to a variable. I know we can get to serverRuntime or domainRuntime() trees and get the state. But need to get the below working. wls:/owb/serverConfig> state('Server1') Current state of 'Server1' :…
SSA
  • 73
  • 1
  • 9
2
votes
1 answer

WLST execute stored variable "connect()" statement

So, I am passing a environment variable from bash to python; #!/usr/bin/env python2 import os #connect("weblogic", "weblogic", url=xxx.xxx.xxx.xxx:xxxx) os.environ['bash_variable'] via wlst.sh I can print exported bash_variable, but how do I…
q5p4k0
  • 51
  • 3
  • 5
2
votes
2 answers

WLST to check the PermGen usage

I would like to get the Max Perm Gen and Usage of a server in WL Domain using WLST. SO far I was able to see it's possible to get the information from JMX, mBean. The mBean location is "java.lang:Location=Server1,name=PS Perm Gen,type=MemoryPool" I…
user3376413
  • 91
  • 1
  • 6
2
votes
0 answers

Jython NameError: String - WLST String cast

I have imported WLSTModule in Jython and calling: servers = wls.ls("/Clusters/SOA_Cluster/Servers", returnMap='true', returnType='c') having imported wlstModule as wls This however throws an error of File "/tmp/wlst_module26609970055824621399.py",…
IanWatson
  • 1,649
  • 2
  • 27
  • 49
2
votes
1 answer

WLContext.close() was called in a different thread than the one in which it was created

I have written wlst script to achieve the below tasks recursively Stopping the applications Undeploying the applications Deploying the appliactions When ever i execute the script, Either undeploy or Deploy happens only for 1 application. For…
user1041177
  • 275
  • 1
  • 6
  • 17
2
votes
0 answers

addTemplate() gives UndeterministicSelectionException

We have 3 weblogic extension templates jars A,B and C. We have created another template jar D which deploys all the three templates by specifying their names under dependency tag in template-info.xml as shown below. template-info.xml
user507333
  • 79
  • 1
  • 6
2
votes
1 answer

WLST Detect / Start Weblogic server

I use Weblogic server for my application and am trying to automate data source update task. So, I have a script (UpdateDataSource.py) which updates the data source to what I need. Now, I need Weblogic to restart once the data source has been…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
2
votes
1 answer

How to run the WLST script from Shell?

I am running python scripts from the shell script. And after executing the python script, CLASSPATH is being displayed. Is there any way where I could eliminate the CLASSPATH and execute the wlst. Thanks, TJ
teja
  • 21
  • 1
2
votes
2 answers

WebLogic 10 WLST command to stop a deployment

Is there a WLST command to stop a Weblogig deployment? (i.e. the opposite of the nmStart() command) If so, what is it? I am changing database passwords and I want to shutdown all deployments so all connections will close. Currently I have to log…
JayG
  • 612
  • 1
  • 6
  • 11
2
votes
1 answer

Record WLST Scripts for Adapter Settings for creating Outbound Connection Pools

I am new to the Record WLST Scripts tool. I am trying to record within my Weblogic Administrative Console Settings for JmsAdapter to create a new Outbound Connection Pool, but the Record tool does not seem to be able to capture changes within…
Baraa
  • 687
  • 1
  • 9
  • 26
2
votes
1 answer

Invoking Jython without Weblogic's WLST

I'm using an AIX machine which has Weblogic 9.21 installed and it also has jython as part of its installation (WLST). Is there a way to run jython code without having to initialize the WLST first? I have the following jars too if they bring in any…
Vladimir
  • 417
  • 5
  • 20