Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Cluster servers with wsadmin scripting


Create clusters without cluster members using scripting

We can use wsadmin.sh to create application server, generic server, web server, and proxy server clusters without cluster members.

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


Procedure

  1. Start wsadmin.sh.

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

    • Use the AdminTask object:

        ### Jacl

        $AdminTask createCluster {-interactive}
        

        ### Jython

        AdminTask.createCluster (['-interactive'])
        

    • Use the AdminConfig object:

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

          ### Jacl

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

          ### Jython

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

      2. Create a new cluster without a cluster member:

          ### Jacl

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

          ### Jython

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

  3. Save the configuration changes.

    Save the configuration changes:

    AdminConfig.save()
    

  4. 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()
    


Create cluster members using scripting
Use the wsadmin scripting AdminConfig object for scripted administration


Related


Cluster configuration scripts
ClusterConfigCommands command group
Commands for the AdminConfig object using wsadmin.sh
Create a cluster: Create first cluster member

+

Search Tips   |   Advanced Search