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:


  1. Identify the node to stop and assign it to a variable:


    set na [$AdminControl queryNames type=NodeAgent,node=mynode,*]


    na = AdminControl.queryNames('type=NodeAgent,node=mynode,*')

  2. Stop the node:


    $AdminControl invoke $na stopNode


    AdminControl.invoke(na, 'stopNode')


Related tasks

Use AdminControl for scripted administration
Manage nodes



Commands for AdminControl