WebLogic Scripting Tool (WLST) has been a long established favourite for experienced WebLogic Server administrators. Over the past two / three weeks I have spent time getting to know WLST - and by getting to know I mean developing a script to produce a solution rather than randomly running three or four commands :-). For the final result of my efforts, see my previous blog entry
This is a short summary of the resources I used.
If you are never encountered WLST, spend a few minutes reading:
Oracle Fusion Middleware Administrator's Guide 11g Release 1 (11.1.1)
3.5.1 Getting Started Using the Oracle WebLogic Scripting Tool (WLST)
Oracle Fusion Middleware WebLogic Scripting Tool Command Reference 11g
Overview of WLST Command Categories
Unsurprisingly, you will also find yourself using the Command Reference as a look up for available commands, functionality and syntax.
(There are many more WLST postings (questions, examples, discussions) to be found on the web.)
WLST is based on the Java scripting interpreter, Jython and as such
supports standard Jython features such as local variables, conditional
variables, and flow-control statements. Therefore, to achieve something more interesting and exciting you must prepared to learn (by doing) a little Jython. Fortunately, the Jython documentation is comprehensive and provides some good examples:
Jython (like it's "parent" language Python) is very sensitive to syntax errors. In particular, the language requires the use of indents when coding conditions
** Eclipse requires the Python and Jython Interpreters to be configured. Instructions can be found here.
And finally, if you have access to My Oracle Support, here are a few knowledge articles which provide some nice WLST examples: