The stopServer script

The stopServer script stops the specified server. If the server is enabled to use the embedded JMS server support, any associated WebSphere MQ jobs are also ended.

Product

This script is available in WebSphere Application Server and WebSphere Application Server Network Deployment.

Authority

To run this script, your user profile must have *ALLOBJ authority. For information on setting explicit authorities for a user profile that does not have *ALLOBJ authority, see Set explicit authorities for the startServer and stopServer scripts.

Syntax

The syntax of the stopServer script is:

stopServer [ server ] [ -instance instance ] [ -nowait ] [ -quiet ]
 [ -logfile filename ] [ -replacelog ] [ -trace ] [ -timeout seconds ]
 [ -statusport statusportnumber ] [ -port portnumber ]
 [ -username username ] [ -password password ] [ -conntype SOAP | RMI ]
 [ -help | -? ]

Parameters

The parameters of the stopServer script are:

Examples

These examples demonstrate correct syntax:

stopServer server1

Stops server server1 for the default instance.

stopServer server1 -nowait

This example stops the server1 application server for the default instance and returns control immediately to the user.

stopServer myserver -instance myinst -port 10380 -conntype SOAP

This example uses the SOAP port (10380) to stop the myserver application server in the myinst instance.