WLST Offline - Creating a Cluster


This is a post in the "WLST Offline" series. This series of posts will be small tidbits of creating various objects in WLST Offline. Mostly this is useful for easily remembering how to do these things when creating your own WLST domain creation scripts in offline mode.

Creating a Cluster
Creating a cluster in the domain using WLST Offline is done by doing something similar to the following:

cd('/')
create(CLUSTER_NAME, 'Cluster')

In the above, please replace CLUSTERNAME with proper values. After creating the Managed Servers they can be assigned to the cluster like this:

cd('/')
assign('Server',SERVERNAME,'Cluster',CLUSTER_NAME)


Of course you should replace SERVERNAME and CLUSTERNAME with the proper values.