According to the BEA documentation, the WebLogic Scripting Tool is a command-line scripting interface that system administrators and operators use to monitor and manage WebLogic Server instances and domains. It allows you to write scripts in Jython that are able to connect to a running WebLogic domain and make modifications to the configuration with no need to restart anything. It can also be used for creating and modifying a domain in its offline mode. It comes as standard with WebLogic 9.2 and a version is available for 8.1. It is recommended and supported by BEA for automating WebLogic server administration. I am currently developing WLST scripts to improve the development and deployment process.
I see it as having the following potential benefits:
- Streamlining development – As it can be executed from an Ant build and cause an application version to be undeloyed and replaced with a new version on a running server, all without intervention.
- Improving deployments – Manual steps in a deployment are slow and unreliable. At some stage they are guaranteed to go wrong. The scripted nature of this means that a deployment can be tested against multiple environments and proven before going live. You know that the deployment method for production is the one that produced your test environments.
- Faster, more reliable disaster recovery – Scripts can be developed to handle a number of failures. i.e. If a database fails and needs to be run from a DR server, scripts can be written in advance to re-create all connection pools pointed at the DR location. This way, the disaster recovery process is fast and reliable. The person initiating the fail-over only needs to know where to find the appropriate scripts. They do not need to know the steps themselves.
- Monitoring – Scripts can be written (many already exist) to connect to the running server and monitor it. This can include things such as checking whether message queues are live, testing connection pools, monitoring the JVM heap and various other tasks.
Useful links for getting started
This page has only existed for a very short time, so I haven’t had much opportunity to develop my own content. However, there is already a lot of good documentation out there that would help someone get started with WLST. Here I present my bucket of links that I have found useful.
- WebLogic Scripting Tool
- WLST project home at Dev2Dev
- Environment proving with WLST
- WLST Online and Offline command summary
- Using WLST offline
- Automating WebLogic platform application provisioning
- WLNav – Interview with developers at Dev2Dev
- Jython
Source code
I have already written a number of WLST objects and scripts to make my life easier. I need to work on pulling them out into the web site in a manner that I’m happy with, but in the meantime if you are interested, please get in touch and I can send you what I have so far.

7 comments so far
Hey Steve,
nice artical. Can you please help me with sample WLST scripts for automated monitoring of weblogic resources like JDBC,JVM,JMS, etc.
Thanks,
andrudu
January 15th, 2008 at 7:24 pm
Andrudu … Apologies for not posting any response sooner. I have a tendency not to update this site very often. I have created a WLST Samples follow-up post where I have linked to a number of example scripts that provide monitoring. Also, in case you haven’t heard the news, BEA Guardian is now available for free. That ought to make your monitoring much easier!
Steve
April 5th, 2008 at 7:34 am
Hi Steve,
Can you pl send a script for deploying applications and all the sample script that you hav developed.
I too work on 9.2 WLS and this would be great help to me…
October 8th, 2008 at 4:31 pm
Hi steve
Can you please send me WLST script for Weblogic 9.2 to 10.3 upgrade including JMS,jdbc .
I too work on 9.2 WLS and this would be greatly help me
Thanks in Advance,
Raja
February 5th, 2009 at 5:38 am
I haven’t done an upgrade from 9.2 to 10.3 so far. However, there are plenty of instructions for doing it in the online documentation. Have a look here for step-by-step instructions:
http://edocs.bea.com/wls/docs103/upgrade/index.html
Also (you may notice if you look at that page) there is a domain upgrade wizard that’s intended to make the task easy!
April 7th, 2009 at 6:07 pm
Hi,
can u pl send me the wslt scripts you r refering in this article. thanks!
September 25th, 2009 at 2:24 am
Hi any chance you could forward all the examples …
thanks
Surj
November 12th, 2009 at 8:40 am
Leave a Comment