Best Practices for Command-Line Interface Administration

All weblogic.Admin commands return a value of 0 in case of success and 1 in case of failure. The return value can be checked in DOS scripts with the variable ERRORLEVEL.

Here is an example of such usage:

java weblogic.Admin -url t3://localhost:7001 -username %1 -password %2 CONNECT
if ERRORLEVEL 1 echo Server is down

Using scripts and a command-line interface greatly simplifies Weblogic Server administration. When you want to stop a managed server, it is much more efficient to open a link from the Program Manager to your stopWLS.cmd file than to open up a browser, navigate through the interface, and stop the server.

Command scripts make the commands much more manageable and efficient. ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.