+

Search Tips   |   Advanced Search

 

Create clusters without cluster members using scripting

 

You can use scripting to create clusters without cluster members. Before starting this task, the wsadmin tool must be running. See the Start the wsadmin scripting client article for more information.

 

Overview

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

 

Procedure

  1. There are two ways to perform this task. Choose one of the following:

    • Use the AdminTask object:

    • Use the AdminConfig object:

      1. Identify the cell configuration ID and set it to the s1 variable:

          Use Jacl:

          set s1 [$AdminConfig getid /Cell:mycell/]
          
          

        • Use Jython:

          s1 = AdminConfig.getid('/Cell:mycell/')
          

      2. Create a new cluster without a cluster member:

          Use Jacl:

          $AdminConfig create ServerCluster $s1 {{name ClusterName}}
          

        • Use Jython:

          print AdminConfig.create('ServerCluster', s1, '[[name ClusterName]]')
          

  2. Save the configuration changes. See the Saving configuration changes with the wsadmin tool article for more information.

  3. In a network deployment environment only, synchronize the node. See the Synchronizing nodes with the wsadmin tool article for more information.



Use the AdminConfig object for scripted administration

 

Related Reference


Commands for the AdminConfig object