To List the applied patches in weblogic, you can do the following.
For Versions Prior 10.3
- Go to your MW_HOME/utils/bsu directory
- Run the following command
./bsu.sh -report
Note* If you get any error like "unable to access patch-client.jar" - Execute the setWLSEnv.sh from WL_HOME/server/bin script and retry
For weblogic 12c and above
- Goto MW_HOME/OPatch/ directory
- Run the following command
./opatch lspatches
Sample Output
If you are not aware of what is your MW_HOME and what is your WL_HOME.
Use this trick.
Look for the weblogic.jar file in your filesystem
mwinventory:OPatch aksarav$ find /apps -name "weblogic.jar"
/apps/oracle-weblogic/wls12213/wlserver/server/lib/weblogic.jar
You will get the file location like preceding snip, Lets decode it.
/apps/oracle-weblogic/wls12213/wlserver/server/lib/weblogic.jar
WL_HOME = Parent directory of server/lib/weblogic.jar
therefore /apps/oracle-weblogic/wls12213/wlserver/ is WL_HOME
MW_HOME = Parent directory of WL_HOME
therefore /apps/oracle-weblogic/wls12213 is my MW_HOME
References:
Opatch and its Options: https://docs.oracle.com/cd/B16240_01/doc/em.102/e15294/options.htm
BSU command line interface: https://docs.oracle.com/cd/E14759_01/doc.32/e14143/commands.htm
Hope it helps.
Cheers,
A K S A R A V
More from Middleware Inventory
-
Weblogic Config XML readerHave you ever wanted to get the server configuration information of WebLogic directly from config.xml without using WLST. I recently had the same requirement and spent a little time ( I think ) to create this simple XML parser in python which helped me in reading the config.xml file's content…
-
Recover weblogic password in 4 steps - Weblogic 12cThe Objective In this post, we will see the easiest way possible to decrypt the WebLogic admin server password. in other words, recovering WebLogic password. You do not need to create a JAR file or copy any security-related files etc. You do not even need your AdminServer to be running. Just…
Weblogic Application Deployment ParserLet me introduce Weblogic Application Deployment Parser , A tool designed to list all the application (app-deployment) configuration from the config.xml file of weblogic. It uses the same core of Weblogic Config XML Reader you can find it here Though there are weblogic.Admin and WLST ways to get the deployed…
Weblogic 12c Nodemanger Native Version ExceptionException: weblogic.nodemanager.common.configexception: native version is enabled but nodemanager native library could not be loaded Solution: For Weblogic10 & 11g Go to your $WL_HOME/common/nodemanager/ Edit the nodemanger.properties file ( If not available create it) Change the value of NativeVersionEnabled=true to NativeVersionEnabled=false Restart the Nodemanager For Weblogic 12c Go to your Domain/nodemanager directory (i.e: /apps/oracle-weblogic/domains/mwidomain/nodemanager/) Edit…
-
weblogic server status script - WLSTA Small and Simple script to get all the server status from the weblogic domain, Including AdminServer & Managed Server. The Jython Script How to Execute this script Copy the preceding script content to a file, let's say /tmp/get_wls_serverstate.py cd domain/bin . ./setDomainEnv.sh java weblogic.WLST /tmp/get_wls_serverstate.py Script Output Hope this…