Stopping servers using scripting

You can stop servers using scripting and the wsadmin tool.

Before you begin

Before starting this task, the wsadmin tool must be running. See the topic about starting the wsadmin scripting client using wsadmin scripting for more information.

About this task

Restriction: Concurrently stopping servers using Jacl or Jython threading (multiple threads) methods is not supported in WebSphere®Application Server Version 7.0.

Procedure

Use the stopServer command to stop the server. This command has several syntax options. For example:
  • To stop a server on a WebSphere Application Server single server edition, choose one of the following options:
    • The following examples specify the server name only:
      Using Jacl:
      $AdminControl stopServer serverName
      Using Jython:
      AdminControl.stopServer('serverName')
    • The following examples stop an application server with the node specified:
      • Using Jacl:
        $AdminControl stopServer serverName mynode
      • Using Jython:
        print AdminControl.stopServer('serverName', 'mynode')
      Example output:
      WASX7337I: Invoked stop for server "serverName" Waiting for stop completion.
      WASX7264I: Stop completed for server "serverName" on node "mynode"
    • The following examples specify the server name and immediate:
      • Using Jacl:
        $AdminControl stopServer serverName immediate
      • Using Jython:
        AdminControl.stopServer('serverName', immediate)
  • To stop a server on a WebSphere Application Server network deployment edition, choose one of the following options:
    • The following example specifies the server name and the node name:
      • Using Jacl:
        $AdminControl stopServer serverName nodeName
      • Using Jython:
        AdminControl.stopServer('serverName', 'nodeName')
    • The following example specifies the server name, the node name, and immediate:
      • Using Jacl:
        $AdminControl stopServer serverName nodeName immediate
      • Using Jython:
        AdminControl.stopServer('serverName', 'nodeName', immediate)

Ícone que indica o tipo de tópico Tópico de Tarefa



Ícone de registro de data e hora Última atualização: July 9, 2016 7:58
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_stop
Nome do arquivo: txml_stop.html