Description Syntax Example shutdown

WLST Command and Variable Reference 3-77 Understanding Server Life Cycle in Managing Server Startup and Shutdown for Oracle WebLogic Server. In the event of an error, the command returns a WLSTException.

3.9.2.2 Syntax

resume[sname], [block]

3.9.2.3 Example

The following example resumes a Managed Server instance. wls:mydomainserverConfig resumemanaged1, block=true Server managed1 resumed successfully. wls:mydomainserverConfig

3.9.3 shutdown

Command Category: Life Cycle Commands Use with WLST: Online

3.9.3.1 Description

Gracefully shuts down a running server instance or a cluster. The shutdown command waits for all the in-process work to be completed before shutting down the server or cluster. You shut down a server to which WLST is connected by entering the shutdown command without any arguments. When connected to a Managed Server instance, you only use the shutdown command to shut down the Managed Server instance to which WLST is connected; you cannot shut down another server while connected to a Managed Server instance. WLST uses Node Manager to shut down a Managed Server. When shutting down a Managed Server, Node Manager must be running. In the event of an error, the command returns a WLSTException.

3.9.3.2 Syntax

shutdown[name], [entityType], [ignoreSessions], [timeOut], [force], [block] Argument Definition sname Name of the server to resume. This argument defaults to the server to which WLST is currently connected. block Optional. Boolean value specifying whether WLST should block user interaction until the server is resumed. This argument defaults to false, indicating that user interaction is not blocked. In this case, WLST returns control to the user after issuing the command and assigns the task MBean associated with the current task to a variable that you can use to check its status. If you are importing WLST as a Jython module, as described in Importing WLST as a Jython Module in Oracle WebLogic Scripting Tool, block is always set to true. Argument Definition name Optional. Name of the server or cluster to shutdown. This argument defaults to the server to which WLST is currently connected. 3-78 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

3.9.3.3 Example

The following example instructs WLST to shutdown the server to which you are connected: wls:mydomainserverConfig shutdown Shutting down the admin server that you are currently connected to ....... Disconnected from weblogic server: AdminServer The following example instructs WLST to wait 1000 seconds for HTTP sessions to complete or timeout at 1000 seconds before shutting down myserver: wls:mydomainserverConfig shutdownmyserver,Server,false,1000, block=false The following example instructs WLST to drop all HTTP sessions immediately while connected to a Managed Server instance: wls:mydomainserverConfig shutdownMServer1,Server,true,1200 Shutting down a managed server that you are connected to ... Disconnected from weblogic server: MServer1 The following example instructs WLST to shutdown the cluster mycluster: wls:mydomainserverConfig shutdownmycluster,Cluster Shutting down the cluster with name mycluster Shutdown of cluster mycluster has been issued, please refer to the logs to check if the cluster shutdown is successful. Use the stateserver-name or statecluster-name,Cluster to check the status of the server or cluster wls:mydomainserverConfig statemycluster,Cluster There are 3 servers in cluster: mycluster States of the servers are entityType Optional. Type, Server or Cluster. This argument defaults to Server. When shutting down a cluster, you must set this argument explicitly to Cluster, or the command will fail. ignoreSessions Optional. Boolean value specifying whether WLST should drop all HTTP sessions immediately or wait for HTTP sessions to complete or timeout while shutting down. This argument defaults to false, indicating that all HTTP sessions must complete or timeout. timeOut Optional. Time in seconds that WLST waits for subsystems to complete in-process work and suspend themselves before shutting down the server. This argument defaults to 0 seconds, indicating that there is no timeout. force Optional. Boolean value specifying whether WLST should terminate a server instance or a cluster without waiting for the active sessions to complete. This argument defaults to false, indicating that all active sessions must complete before shutdown. block Optional. Boolean value specifying whether WLST should block user interaction until the server is shutdown. This argument defaults to false, indicating that user interaction is not blocked. In this case, WLST returns control to the user after issuing the command and assigns the task MBean associated with the current task to a variable that you can use to check its status. If you are importing WLST as a Jython module, as described in Importing WLST as a Jython Module in Oracle WebLogic Scripting Tool, block is always set to true. Argument Definition WLST Command and Variable Reference 3-79 MServer1---SHUTDOWN MServer2---SHUTDOWN MServer3---SHUTDOWN wls:mydomainserverConfig

3.9.4 start