How to Startup or Shutdown Multiple WebLogic Managed Servers With a WLST Script (Doc ID 1383150.1)

Last updated on MAY 24, 2017

Applies to:

Oracle WebLogic Server - Version 9.2 and later
Information in this document applies to any platform.
***Checked for relevance on 8-Mar-2016***

Goal

This article provides a simple sample script that shows how multiple WLST instances can be started or shutdown without issuing irrelevant commands. This is important when shutting down managed servers because if a server isn't running, then issuing the shutdown command will return the following exception which will terminate the processing of the rest of the script:

On the other hand, starting a managed WebLogic server instance is relatively straightforward, using the WLST start() command, even when the instance is already running. If the instance is already running, the start() will silently time out and will not start another instance.

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms