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
- There are two ways to perform this task. Choose one of the following:
- Use the AdminTask object:
Use Jacl:
$AdminTask createCluster {-interactive}
- Use Jython:
AdminTask.createCluster (['-interactive'])
- Use the AdminConfig object:
- 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/')
- 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]]')
- Save the configuration changes. See the Saving configuration changes with the wsadmin tool article for more information.
- 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