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
- 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,*')
- Stop the node:
Using Jacl:
$AdminControl invoke $na stopNode
Using
Jython:
AdminControl.invoke(na, 'stopNode')