Stop a node using scripting

 

+

Search Tips   |   Advanced Search

 

Overview

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:

 

Procedure

  1. Start wsadmin

  2. Execute...

    Using Jacl:

    ### Identify the node that you want to stop and assign it to a variable:
    set na [$AdminControl queryNames type=NodeAgent,node=mynode,*]
    
    ### Stop the node: 
    $AdminControl invoke $na stopNode 
    

    Using Jython:

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


 

See Also


AdminControl object for scripted administration

 

See Also


Commands for the AdminControl object