+

Search Tips   |   Advanced Search

Stopping a node

Use scripting to stop a node agent.

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

    Using Jython:

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

  2. Stop the node:

    Jacl:

    Using Jython:

      AdminControl.invoke(na, 'stopNode')


Related tasks

  • Use the wsadmin scripting AdminControl object for scripted administration
  • Adding, managing, and removing nodes
  • Start the wsadmin scripting client

  • Commands for the AdminControl object