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