InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.2: Command line administration >
6.6.0.2.2: WebSphere Control Program (wscp) >
6.6.0.2.2.4: Example wscp commands, procedures, and scripts >
6.6.0.2.2.4.10: Configuring server groups and clones

6.6.0.2.2.4.10: Configuring server groups and clones

The wscp ServerGroup operations allow you to configure server groups and clones. Server groups are templates for creating clones of application servers. Clients see the clones associated with a server group as a single application server image. The clones of an application server automatically participate in workload management.

The wscp ServerGroup operations included are as follows:

  • Creating a server group from an existing application server instance

  • Starting and stopping a server group and its clones

  • Adding a clone to a server group

See Managing workloads for information on server groups, clones, and workload management.

The following example creates a server group from an existing instance of an application server, specifying its name, server selection policy, and the value of an environment variable:

wscp> ServerGroup create /ServerGroup:EjbServerGroup/ -baseInstance /ApplicationServer:EjbAppServ/ \
-serverGroupAttrs {{EJBServerAttributes {SelectionPolicy roundrobin}} {Environment {VAR1 0}}}

The following example starts a server group after a delay of 30 seconds:

wscp> ServerGroup start /ServerGroup:EjbServerGroup/ -wait 30

The following example stops a server group, using the -force option to stop it regardless of any other conditions:

wscp > ServerGroup stop /ServerGroup:EjbServerGroup/ -force

The following example adds a clone to the server group EjbServerGroup. The clone runs on node Server1:

wscp > ServerGroup clone /ServerGroup:EjbServerGroup/ -cloneAttrs
{{Name Clone1}} -node /Node:Server1/

The fully qualified name of the new application server instance is /Node:Server1/ApplicationServer:Clone1/.

The following example lists all clones that are associated with a server group:

wscp > ServerGroup listClones /ServerGroup:EjbServerGroup/
/Node:Server1/ApplicationServer:EjbServerGroup1/
/Node:Server1/ApplicationServer:EjbServerGroup2/
Go to previous article: 6.6.0.2.2.4.8: Creating an enterprise application Go to next article: 6.6.0.2.2.4.11: Administering EIS connections

 

 
Go to previous article: 6.6.0.2.2.4.8: Creating an enterprise application Go to next article: 6.6.0.2.2.4.11: Administering EIS connections