Stop a node using scripting
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
- Start wsadmin
- Execute...
Using Jacl:
### Identify the node that you want to stop and assign it to a variable: set na [$AdminControl queryNames type=NodeAgent,node=mynode,*] ### Stop the node: $AdminControl invoke $na stopNodeUsing Jython:
na = AdminControl.queryNames('type=NodeAgent,node=mynode,*') AdminControl.invoke(na, 'stopNode')
See Also
AdminControl object for scripted administration
See Also
Commands for the AdminControl object