WebSphere

Disabling the event service using scripting

You can disable the event service by running an AdminTask administrative command using the wsadmin tool.

About this task

If the event service is disabled, it does not automatically start when the server starts.

To disable the event service using the wsadmin tool:

Procedure
  1. Start the wsadmin tool.
  2. Use the AdminTask object to run the disableEventService administrative command:
    • Using Jacl:
      # disable event service at server scope
      $AdminTask disableEventService { -nodeName node1 -serverName server1 }
      
      # disable event service at cluster scope
      $AdminTask disableEventService  { -clusterName cluster1 }
    • Using Jython:
      # disable event service at server scope
      AdminTask.disableEventService('[ -nodeName node1 -serverName server1 ]')
      
      # disable event service at cluster scope
      AdminTask.disableEventService('[ -clusterName cluster1 ]')
    The parameters of the disableEventService command are as follows:
    nodeName
    The name of the node where the event service should be disabled. This is an optional parameter; the default value is the current node. If you specify a node name, you must also specify a server name. Do not specify a node if you are disabling the event service in a cluster.
    serverName
    The name of the server where the event service should be disabled. This parameter is required if you specify a node name. Do not specify a server name if you are disabling the event service in a cluster.
    clusterName
    The name of the cluster where the event service should be disabled. This parameter is required if you are disabling the event service in a cluster.
  3. Restart the server.

task Task topic

Terms of use | Feedback


Timestamp icon Last updated: 22 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic/com.ibm.websphere.cei.620.doc/doc/tcei_disable_server_script.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).