Stopping a node using wsadmin scripting

Use scripting to stop a node agent.

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 article for more information.

About this task

Stopping the node agent on a remote machine process is an asynchronous action where the stop is initiated, and then control returns to the command line. Perform the following task to stop a node:

Procedure

  1. Identify the node that you want to stop and assign it to a variable:

    Using Jacl:

    set na [$AdminControl queryNames type=NodeAgent,node=mynode,*]

    Using Jython:

    na = AdminControl.queryNames('type=NodeAgent,node=mynode,*')
  2. Stop the node:

    Using Jacl:

    $AdminControl invoke $na stopNode 

    Using Jython:

    AdminControl.invoke(na, 'stopNode')



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 19, 2011 7:16:32 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-express-iseries&topic=txml_nodestop
File name: txml_nodestop.html