+

Search Tips   |   Advanced Search

Starting clusters using scripting

Use wsadmin.sh to start application servers, generic servers, and proxy server clusters in the application server runtime.

This topic uses the AdminControl object to start clusters.

Alternatively, we can use:


Tasks

  1. Start the wsadmin scripting tool.

  2. Identify the ClusterMgr MBean and assign it to the clusterMgr variable.

    • Jacl:

        set clusterMgr [$AdminControl completeObjectName cell=mycell,type=ClusterMgr,*]

    • Jython:

        clusterMgr = AdminControl.completeObjectName('cell=mycell,type=ClusterMgr,*')
        print clusterMgr

    Example output:

      WebSphere:cell=mycell,name=ClusterMgr,mbeanIdentifier=ClusterMgr, type=ClusterMgr,process=dmgr

  3. Refresh the list of clusters.

    • Jacl:

        $AdminControl invoke $clusterMgr retrieveClusters

    • Jython:

  4. Identify the Cluster MBean and assign it to the cluster variable.

    • Jacl:

        set cluster [$AdminControl completeObjectName cell=mycell,type=Cluster,name=cluster1,*]

    • Jython:

        cluster = AdminControl.completeObjectName('cell=mycell,type=Cluster,name=cluster1,*')
        print cluster

    Example output:

      WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1

  5. Start the cluster.

    • Jacl:

        $AdminControl invoke $cluster start

    • Jython:

  6. RippleStart the cluster. RippleStart combines stopping and starting operations. It, in turn, stops and then restarts each member of the cluster.

    • Jacl:

        $AdminControl invoke $cluster rippleStart

  7. Jython:

See also

  1. Starting clusters
  2. Create clusters using scripting
  3. wsadmin AdminControl
  4. Stop clusters using scripting
  5. Cluster administration scripts
  6. ClusterConfigCommands
  7. Commands for the AdminControl object