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
4 answers

wlst embeded mode not working

I'm trying to build a small Utility for tasks like 1) connecting to weblogic admin server. 2) Add managed server. 3) Register domain with nodemanager, etcetera. I started development in eclipse, added all the jars of weblogic\wlserver103\server\lib…
srk
  • 4,857
  • 12
  • 65
  • 109
2
votes
0 answers

updating adf-config.xml with WLST: Where's the mbean?

I've been trying to alter a value found in the adf-config.xml for Oracle Webcenter. I'm trying to change the default, min, and max timeouts for portlet producers. The documents say to edit the adf-config.xml, and the adf-config.xml documentation…
Marc
  • 415
  • 5
  • 16
2
votes
4 answers

How can I create a portable Weblogic Scripting Tool application?

I am creating WLST scripts which will be run against a server running weblogic which is fairly locked down. I only have permission to view logs and read only access to the console unless a pre-authorised change. I don't have permission to access…
samlewis
  • 3,950
  • 27
  • 27
2
votes
1 answer

Why isn't the stack trace available, when exceptions are raised, in WLST (wls12.1.1)

I've created a script to do stuff in the Online mode, for weblogic server 12.1.1. I obviously messed something up, and i'd like to have the stack trace so that i can analyze what went wrong. I'm currently doing something like this: try: …
vlad-ardelean
  • 7,480
  • 15
  • 80
  • 124
1
vote
2 answers

WLST - how to check if a patch was installed?

I need to patch my Oracle but i want to check first if the patches that I want to install are already installed. How can i do it with WLST? (I need to script it because i am going to use it on a lot of systems - middleware 11g) thanks, Gav.
Gavriel Dorino
  • 31
  • 1
  • 2
  • 4
1
vote
2 answers

Capturing WLST output in Java Client

I am presently invoking WLST from a Java Client. I would like to return the result of the WLST function back to my Java Client. I was hoping if someone could help me. Regards, Sarat Challa
1
vote
1 answer

BEA-error WLContext.close() in python script

I'm new to Weblogic. Recently I've created my first script to deploy a WL application. The script is very simple. The problem is that the script throws an exception I don't know to solve. The script looks like:…
Toren
  • 6,648
  • 12
  • 41
  • 62
1
vote
1 answer

wlstModule connection information lost

When using wlst with a WebLogic 10.3.5.0 release I am puzzled by the following situation and hoping for an answer. Given a standard wlst command to connect to a server connect('weblogic','welcome1','t3s://localhost:7002') it connects as expected to…
sweetfa
  • 5,457
  • 2
  • 48
  • 62
1
vote
3 answers

Setting Domain Credential during WebLogic WLST offline domain creation?

I have successfully created WLS 10.3.5 domains using offline WLST, along the lines of readTemplate(template); set("name","DomainName"); ... One detail remains: I need to set the "Credential" of each domain to a common random value, across all…
mgaert
  • 2,338
  • 21
  • 27
1
vote
0 answers

Require Weblogic Stop All Managed Servers WLST Script which are in Running state except AdminServer

My requirement is to stop all servers in a weblogic domain which are in running state except AdminServer. I have got similar one and modified, but getting syntax error while executing. Could someone please look at it and help me out ? import…
Vignesh
  • 11
  • 1
1
vote
1 answer

Is there any way to test the weblogic admin connecting URL (t3/t3s) before connecting to it

I'm using following command to connect to weblgic using WLST, java weblogic.wlst core.py inside core.py I'm calling following command to connect to the weblogic admin. but some times the service url becomes unresponsive And my script hangs…
user1672382
  • 87
  • 1
  • 10
1
vote
2 answers

WLST - Node Manager Commands : "nmStart" can it start many weblogic servers at the same time?

we are using "WLST - Node Manager Commands" to control our servers restart. but to minimize the restarting time, can we run multi servers at the same time ? our code right now working like this…
Majed
  • 917
  • 6
  • 18
1
vote
1 answer

How to pass a parameter from Shell to WLST script

EDIT: The issue is solved. But I keep it here so others will benefit from here. If it is not okay, I will delete the question. I want to stop servers in an order automatically . So I have written scripts one with python the other with bash for that…
1
vote
0 answers

Oracle Internet Directory 12.2.1.3.0 Error occurred while performing invoke : Creation of wallets failed for domain

After successfully installing Oracle Internet Directory 12.2.1.3.0, I am able to connect with this command connect('weblogic','Oracle20_1','t3://MYPC:7001') but when I issue this…
Michael
  • 11
  • 2
1
vote
1 answer

Anyone tried Cluster automation with WLST?

Most of the production env might need a automation script for Clusters. Reason is whenever there is a need of enhance the sites need to add new cluster to existing domain. When there is a decommissioned a physical site that needs removal of cluster…
PavanDevarakonda
  • 625
  • 5
  • 27