Restarting node agent processes using the wsadmin scripting tool

If you stop a node agent process, you cannot start the process using the wsadmin tool or the administrative console. Use this topic to restart a running node agent.

Before you begin

A node agent must exist in your configuration and must be in the stopped state.

About this task

Use the following steps to restart a node agent process:

Procedure

  1. wsadmin 스크립트 도구를 시작하십시오.
  2. Determine the name of the node agent to restart.
    • Using Jacl:
      set na [$AdminControl queryNames type=NodeAgent,node=mynode,*]
    • Using Jython:
      na = AdminControl.queryNames('type=NodeAgent,node=mynode,*')
  3. Determine the NodeAgent MBean operation.
    Use the following help commands to return information about the restart option:
    • Using Jacl:
      $Help operations $na
    • Using Jython:
      print Help.operations('na')
  4. Restart the node agent process.
    As the help output from the operations command displays, you must specify two boolean parameters in the command invocation. First, specify true for the syncFirst parameter to synchronize your configuration before the command restarts the node. Next, specify true for the restartServers parameter to restart all running servers while the command restarts the node. The following command example synchronizes and restarts the application servers that are running on the node when the node agent restarts:
    • Using Jacl:
      $AdminControl invoke $na restart "true true"
    • Using Jython:
      AdminControl.invoke(na,'restart','true true')

Results

The node agent process has been restarted.

What to do next

Verify that your node agent and servers successfully started.

주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: July 9, 2016 6:14
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_restartnodeagent
파일 이름:txml_restartnodeagent.html