WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Stopping a node using scripting

Before you begin

Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.

Why and when to perform 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:

Steps for this task

  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 concepts
AdminControl object for scripted administration

Related reference
Commands for the AdminControl object

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/txml_nodestop.html

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