Stop a node using scripting
Use scripting to stop a node agent. Before starting this task, the wsadmin tool must be running. See the Start the wsadmin scripting client article for more information.
Overview
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 to stop and assign it to a variable:
Use Jacl:
set na [$AdminControl queryNames type=NodeAgent,node=mynode,*]Using Jython:
na = AdminControl.queryNames('type=NodeAgent,node=mynode,*')
- Stop the node:
Use Jacl:
$AdminControl invoke $na stopNodeUsing Jython:
AdminControl.invoke(na, 'stopNode')
Use the AdminControl object for scripted administration
Manage nodes
Related Reference
Commands for the AdminControl object