Example: Migrating - Stopping a node
The WebSphere Application Server V4.0 wscp tool requires the name of the node. In V4.0, if you stop a node, you bring down the administrative server on that node. To take the equivalent action in V5.x, stop the node agent.
Tip: If you bring down the server to which the wsadmin process is connected, you cannot issue any more commands against that server.
- wscp V4.0
Node stop /Node:mynode/
- wsadmin V5.x
Using Jacl:
set na [$AdminControl queryNames type=NodeAgent,node=mynode,*] $AdminControl invoke $na stopNode
Using Jython:
na = AdminControl.queryNames('type=NodeAgent,node=mynode,*') AdminControl.invoke(na, 'stopNode')
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.
AdminControl object for scripted administration