WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

Stopping a node using scripting

Use scripting to stop a node agent.

Before you begin

Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client 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')



Related tasks
Using the AdminControl object for scripted administration
Managing nodes
Related reference
Commands for the AdminControl object
Task topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/txml_nodestop.html

© Copyright IBM Corporation 2004, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)