This folder is part of the Straypenguins-Tips-Inventory repository and provides practical, field-tested automation scripts and configuration snippets for Oracle WebLogic Server administration.
The aim is to help administrators:
WebLogic/
βββ automation-wlst/
β βββ change_server_listenport/
β βββ log_settings/
β βββ set_autorestart/
β βββ set_default_stagingmode/
β βββ set_machine_nmtype/
β βββ set_maxreqparamcount/
β βββ set_restartdelaysec/
βββ profile.d/
βββ rsyslog/
βββ systemd/
βββ change-wls-java_home.sh
βββ derby-disable.sh
βββ jre-securerandom-fix.sh
βββ jre8-securerandom-fix.sh
β οΈ WARNING:
Verify that the tools do what you intend before use!
NO WARRANTY for middleware operational breakdowns!
Automation scripts leveraging WebLogic Scripting Tool (WLST). Each subfolder contains:
.py
WLST script (core logic).sh
wrapper (shell script for execution).properties
files (for connection/config parameters; not required for some tools)change_server_listenport/
Change or list the non-SSL listen port for a specific WebLogic Server instance (e.g., 7003 => 7004).
log_settings_admin/
: For AdminServer (extended log format does not apply)log_settings_ms/
: For Managed Serversset_default_stagingmode/
Configure the default deployment staging mode (stage
/nostage
) for a server.
set_machine_nmtype/
Set the NodeManager type (SSL
or Plain
) for a machine. Useful when managing server instances with NodeManager.
set_autorestart/
Enable or disable the AutoRestart setting for a given server. Useful when managing server instances with NodeManager.
set_restartdelaysec/
Set the restart delay (in seconds) for a server. Use together with the set_autorestart
tool.
MaxRequestParameterCount
) for a server.ORACLE_HOME
, WL_HOME
, DOMAIN_HOME
) and ulimits for the oracle
user. Adjust as needed.
β οΈ Many Automation-WLST scripts read this file to ensure environment variables are set. Most scripts will not function properly unless this file is deployed and contains the appropriate values.
rsyslog
rules to redirect journald
logs for WebLogic server instances to /var/log/weblogic/*
when the servers are run under systemd
.Systemd service definitions for running WebLogic as managed Linux services.
weblogic-admin.service
Unit file for Admin Server
weblogic@.service
Template unit for Managed Servers (parameterized by instance name, e.g., βMS1β)
sysconfig/weblogic-AdminServer
Environment file used by the systemd unit for Admin Server
sysconfig/weblogic-MS1
Sample environment file used by the systemd unit for a Managed Server named βMS1β. The name after the -
corresponds to the server instance.
change-wls-java_home.sh
Safely modifies, reports, or backs up the JAVA_HOME
path parameter in WebLogic/Oracle Middleware OUI properties and configuration files.
As you may know, updating the JDK version on an already installed/configured Middleware server often involves a series of tedious and error-prone steps.
This tool is designed with safety in mind; it provides a βlist-onlyβ mode runtime option and an in-file βSAFE_MODEβ switch.
π‘ Caution & Tips The script provides extensive help output, which can be displayed by using the
-h
option. It also provides a detailed βProcedure Outline: How this script is involved in WebLogic Server JDK Replacementβ in the comments, which describes the practical replacement procedure. Be sure to read these instructions carefully for a successful replacement.
derby-disable.sh
Disables the built-in Java DB (derby.jar
) by renaming the jar file (π demo DB; can consume production server resources).
jre-securerandom-fix.sh
For JDK 11+: Switches securerandom.source
from /dev/random
to /dev/urandom
in java.security
to avoid entropy depletion and speed up JVM start.
jre8-securerandom-fix.sh
Same as above, but for Java 8, which requires /dev/./urandom
(with a dot in the path).
oracle
user, with relevant environment variables set (see profile.d/oracle.sh
)..properties
files β be sure to check and edit these before use.All scripts and configurations are provided as-is, without warranty. Test thoroughly in a non-production environment before applying to live systems.