English: The logo of Oracle Corporation de:Bil...
English: The logo of Oracle Corporation de:Bild:Oracle-Logo.svg he:תמונה:Oracle Logo.jpg (Photo credit: Wikipedia)
When a WLST script is using an attribute “PendingRestartSystemResources” on the ServerRuntime to determine what need to restart automatically (i.e. what shows under the Changes and Restarts Checklist tab), it's observed through WLST that the attribute is either not exposed with 10.3.1 or moved somewhere else. In what circumstances is the “PendingRestartSystemResources” attribute accessible?  How can we make sure that this attribute is never missing from the “serverRuntime()” view?  First lets take a look at the WLST attribute dump snippets from serverRuntime() below:


FROM WLS 10.3.0 (working domain)
-r-- MANReplicationRuntime null
-r-- Name AdminServer
-r-- OpenSocketsCurrentCount 1
-rw- Parent null
-r-- PathServiceRuntime null
-r-- PendingRestartSystemResources null
-r-- RestartRequired false
-r-- RestartsTotalCount 0
-r-- SSLListenAddress null
-r-- SSLListenPort 7002
-r-- SSLListenPortEnabled false

FROM WLS 10.3.1 (Not Working Domain)
-r-- MANReplicationRuntime null
-r-- Name AdminServer
-r-- OpenSocketsCurrentCount 1
-r-- OracleHome C:\Oracle\Middleware
-rw- Parent null
-r-- PathServiceRuntime null
-r-- RestartRequired false
-r-- RestartsTotalCount 0
-r-- SSLListenAddress null
-r-- SSLListenPort 7002

Solution

"PendingRestartSystemResources" attribute has always been excluded in the API documentation.

WLST excludes such attributes from its list of displayed attributes but a couple of options are available:

1) This attribute should be available from a JMX Client (like JConsole) if the user wants to write his or her own JMXClient to retrieve it.
2) WLST has a hidden/unpublished option to set a parameter in the context. The parameter is called "showExcluded'

So, to view "PendingRestartSystemResources" in the serverRuntime() view, after connecting to the server, just execute the showExcluded() command. Then ls() should list all the excluded attributes, which will include "PendingRestartSystemResources".

0 Comments