Technology Stack - EBS (MOSC)

MOSC Banner

Monitoring Weblogic Servers

We are on 12.2.5 and I wrote a script to monitor our WLS servers based on this note:

How to Monitor Heap Size Usage of Weblogic Servers Using WLST (Doc ID 2699454.1)

The script is simple and worked great until I applied a patch and did a cutover. Now the port is wrong. How do I dynamically set the port based on the current run envionment?

Here is my script:

connect('weblogic','password','t3://server:7002')

servers=cmo.getServers()

print "-------------------------------------------------------"

print "\t"+cmo.getName()+" domain status"

print "-------------------------------------------------------"

for server in servers:

    state(server.getName(),server.getType())

print "-------------------------------------------------------"




Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center