Creating clusters without cluster members using scripting

You can use the wsadmin tool to create application server, generic server, web server, and proxy server clusters without cluster members.

Before you begin

There are multiple ways to complete this task. This topic uses the AdminConfig or AdminTask objects to create clusters without cluster members in your environment. Alternatively, you can use the createClusterWithoutMember script in the AdminClusterManagement script library to create and configure clusters.

About this task

Perform the following steps to create a cluster without a cluster member:

Procedure

  1. wsadmin 스크립트 도구를 시작하십시오.
  2. There are two ways to perform this task. Choose one of the following:
    • Using the AdminTask object:
      • Using Jacl:

        $AdminTask createCluster {-interactive}
      • Using Jython:
        AdminTask.createCluster (['-interactive'])
    • Using the AdminConfig object:
      1. Identify the cell configuration ID and set it to the s1 variable:
        • Using Jacl:

          set s1 [$AdminConfig getid /Cell:mycell/]
        • Using Jython:
          s1 = AdminConfig.getid('/Cell:mycell/')
      2. Create a new cluster without a cluster member:
        • Using Jacl:

          $AdminConfig create ServerCluster $s1 {{name ClusterName}}
        • Using Jython:
          print AdminConfig.create('ServerCluster', s1, '[[name ClusterName]]')
  3. Save the configuration changes.
    다음 명령 예제를 사용하여 구성 변경사항을 저장하십시오.
    AdminConfig.save()
  4. In a network deployment environment only, synchronize the node.
    Use the syncActiveNodes script in the AdminNodeManagement script library to propagate the changes to all active nodes, as the following example demonstrates:
    AdminNodeManagement.syncActiveNodes()

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



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