+

Search Tips   |   Advanced Search

Stopping a node using wsadmin.sh

Use scripting to stop a node agent.

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:


Tasks

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

    Use Jacl:

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

    Use Jython:

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

  2. Stop the node:

    Use Jacl:

    $AdminControl invoke $na stopNode 
    

    Use Jython:

    AdminControl.invoke(na, 'stopNode')
    

  • wsadmin AdminControl
  • Add, manage, and remove nodes
  • Start the wsadmin scripting client
  • Commands for the AdminControl object