Weblogic 12c – change console preferences using python and wlst

Manoj Sahid Hassankhan
0 0
Read Time:1 Minute, 15 Second

You can configure some features of the Administration Console by setting preferences manualy in the console. For some features you need to restart the Admin server.

In a provisoned environment you will need this to be automated. For this example i used wlst and python.

In this case there is an oracle bug which results in when one of the host machines is shut down, the admin console is very slow to respond.

 

A workaround for this is:

Login to the adminconsole

Goto:

On the mydomain > Configuration > general > Advanced page:
Change the parameter “Invocation Timeout Seconds” into 2

On the Preferences page > Shared Preferences (Tab):
Change the parameter “Management Operation Timeout” into 5

 

The parameter “Management Operation Timeout” can be managed with a WLST script.

There is a property file to set the parameter with a value

domain.invocationtimeout=2

domain.managementoperationtimeout=5

The wlst script reads the property file. if does noet exists then sets the default value to “0”

image

depending on the outcome it will set value

image

It is not possible to manage the parameter “Invocation Timeout Seconds” with WLST. I used python because there are enough suitable XML parsers in combination with Pretty Print.

Depending if the parameter is used it wil be created in the file ConsolePreferences.xml. located in /domains/domainName /servers/domainName + -adminServer/data/console.

 

if it does not exists. It will created the proper setting

image

 

If the parameter exists it wil replace the value

image

About Post Author

Manoj Sahid Hassankhan

Manoj is a versatile and experienced Oracle Fusion Middleware Consultant. In addition to his knowledge in the field of (clustered) Oracle Fusion Middleware he has experience with Oracle Database 10g / 11G / 12C incl. RAC implementations. He is a professional who likes to work hard on solutions and thinks along with new designs. Manoj has extensive experience in building new complex environments and more than 9 years of experience with professional management environments that work according to the ITIL methodology and tools such as Puppet, Jenkins and Nexus. As a senior Unix / Linux consultant, he manages a broad spectrum of operating systems.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Next Post

Get going with Project Fn on a remote Kubernetes Cluster from a Windows laptop–using Vagrant, VirtualBox, Docker, Helm and kubectl

The challenge I describe in this article is quite specific. I have a Windows laptop. I have access to a remote Kubernetes cluster (on Oracle Cloud Infrastructure). I want to create Fn functions and deploy them to an Fn server running on that Kubernetes (k8s from now on) environment and […]
%d bloggers like this: