Monday, October 13, 2008

Weblogic Utility commands (weblogic.admin)

This script will help you in identifying the server is reachable.

“java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic CONNECT 10”

This will return the state of the server:

“java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic GETSTATE”

This will return the state of manage server:

“java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic GETSTATE MS1”

This will provide you information about the license file:

“java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic LICENSES”

This will ping the server:

“java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic PING 10”

Tis will generate the thread dump and append in to server.out file:

“java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic THREAD_DUMP”

This will help you in creating the JDBC Connection pool.

“java weblogic.Admin -url localhost:7001 -username weblogic -password weblogic CREATE -name myPool -type JDBCConnectionPool”

No comments: