Search This Blog

Monday, February 20, 2017

How to connect to weblogic using WLST(Weblogic scripting tool)

 

There was a case where i was trying to find out some weblogic configuration using the console, but it was not displaying due to some memory or God knows what issue.

 

I thought of using the WLST  to connect to the running weblogic instance.

 

Step 1

Go to weblogic/bin directory

Step 2

Make sure you set your WLS environment

. ./setWLSEnv.sh

Step 3

Make sure JAVA installed.

Run

java weblogic.WLST

Connect(‘weblogic’,’password,’t3://host:port’)

Connect to host using your credentials and password.

domainRuntime()

cd(‘ServerRuntimes/Sservername’)

You can traverse the tree with CD commands and get properties from command line.

whatever is with –r

 

do a get(propertyName)

 

*Items in bold need to run in command line, normal ones are comments.

Keep reading !

No comments:

Post a Comment