Weblogic Scripting Tool (WLST)

About

The Oracle Weblogic Scripting Tool (WLST) is a scripting tool for monitoring, managing, and configuring Oracle WebLogic Server from the command line and then for instance enables you to programmatically administer application such as OBIEE 11g.

WLST online is a Java Management Extensions (JMX) client. It interacts with a server’s in-memory collection of Managed Beans (MBeans), which are Java objects that provide a management interface for an underlying resource.

WLST is based on Jython programming language with WebLogic WLST libraries.

WLST - Getting Started (Hello World)

WLST can be enabled for online and offline connection modes.

WLST enable editing, executing, debugging, WebLogic MBean access and navigation, as well as a built-in help for WLST commands.

You can extend the WebLogic scripting language by following the Jython language syntax.

Example

Content of the file example CreateCred.py from the installation of sample app to add credentials in the credential store.

connect(sys.argv[1], sys.argv[2],sys.argv[3])
createCred(map="oracle.bi.enterprise",key="wsil.browsing",user="abell",password="Admin123",desc="BI Web Services for SOA browsing key")
createCred(map="oracle.bi.actions",key="JNDIUser",user="abell",password="Admin123",desc="Used for Actions Invoking EJB Methods")
createCred(map="oracle.wsm.security",key="keystore-csf-key",user="owsm",password="Admin123",desc="Credential to open default keystore")
createCred(map="oracle.wsm.security",key="enc-csf-key",user="orakey",password="Admin123",desc="Credential to encode messages")
createCred(map="oracle.wsm.security",key="sign-csf-key",user="orakey",password="Admin123",desc="Credential to sign messages")
exit()

You run it with the following command:

  wlst "CreateCred.py" username password t3://localhost:7001

Documentation / Reference

Task Runner