Configuring


Make sure the user provided in the script can be authenticated in the domain where the script is run.

Instructions


  1. Save the script given as patchingLevel.py.
  2. Modify the parameters for the user and the connection string to the Admin Server.
  3. Set the domain environment using the script <domain_home>/bin/setDomainEnv.sh.
  4. Run the script as follows:
    $ java weblogic.WLST patchingLevel.py

Caution


This sample code is provided for educational purposes only, and is not supported by Oracle Support. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.

Script

username = 'admin-username'
password = 'admin-password'
connect(username,password, 'wls-hostname:wls-port')
print version
print "\n"
disconnect()
exit()

Sample Output

The output should be similar to the following (same as the server startup)
WebLogic Server Temporary Patch for 10276172 Mon Dec 13 15:58:37 IST 2010
WebLogic Server Temporary Patch for 9221722 Tue Dec 29 17:19:16 IST 2009
WebLogic Server Temporary Patch for 9100465 Tue Dec 22 11:52:59 IST 2009
WebLogic Server 10.3.2.0 Tue Oct 20 12:16:15 PDT 2009 1267925
NOTE: Please note that this method is no longer applicable to WLS 12.1.2 and higher, where opatch is used instead.


0 Comments