简体   繁体   中英

mbean to read the weblogic version details

I want to know which mbean give the weblogic version information. Also with that i need to know which patch is applied recently.I could not find the mbean which weblogic version and patch details.

WebLogic version you can get from the domainMBean which available though WLST using both online and offline commands...

connect('weblogic','weblogic','t3://localhost:7001')
domainConfig()
get('DomainVersion')
'10.3.6.0'

or

readDomain('C:/Oracle/wlserver_10.3/samples/domains/wl_server')
get('DomainVersion')
'10.3.6.0'

For patch details I'm not aware of that information being available through an mBean I'm afraid.

Here is the code to fetch the version and patch details

         String queryString = "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean";
        ObjectName objectName1;
        objectName1 = new ObjectName(queryString);
        ObjectName[] serverRuntimes = (ObjectName[]) connection.getAttribute(objectName1,
            "ServerRuntimes");

        String patch= (String) connnection.getAttribute(serverRuntimes[0], "WeblogicVersion");

this give the following sample value "WebLogic Server 10.3.6.0.3 PSU Patch for BUG14796139 Fri Nov 23 10:16:54 IST 2013 WebLogic Server 10.3.9.0 Tue Nov 15 08:52:36 PST 2011 1841050"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM