WAS v8.5 > Script the application serving environment (wsadmin) > Manage servers and nodes with scripting

Stopping a node using wsadmin.sh

Use scripting to stop a node agent.

Before starting this task, wsadmin must be running. See the topic about starting the wsadmin scripting client using wsadmin.sh 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:

    Jacl:

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

    Jython:

      na = AdminControl.queryNames('type=NodeAgent,node=mynode,*')
  2. Stop the node:

    Jacl:

      $AdminControl invoke $na stopNode

    Jython:

      AdminControl.invoke(na, 'stopNode')


Related


Use the wsadmin scripting AdminControl object for scripted administration
Start the wsadmin scripting client using wsadmin.sh


Reference:

Commands for the AdminControl object using wsadmin.sh


+

Search Tips   |   Advanced Search