Network Deployment (Distributed operating systems), v8.0 > Reference > Jython script library


Cluster administration scripts

The scripting library provides multiple script procedures to automate the application server configurations. Use the scripts in this topic to start and stop cluster processes with a variety of options. We can run each script individually or combine procedures to create custom automation scripts.

The AdminClusterManagement script procedures are located in...

WAS_HOME/scriptLibraries/server/V70

Use the following script procedures to start cluster processes in your environment:

Use the following script procedures to stop cluster processes in the environment:



rippleStartAllClusters

This script stops and restarts each cluster within a cell configuration.

Syntax

AdminClusterManagement.rippleStartAllClusters()

Example usage

AdminClusterManagement.rippleStartAllClusters()



rippleStartSingleCluster

This script stops and restarts the cluster members within a specific cluster configuration.

rippleStartSingleCluster argument description. To run the script, specify the cluster name argument, as defined in the following table:

Argument Description
clusterName Name of the cluster to stop and restart.

Syntax

AdminClusterManagement.rippleStartSingleCluster(clusterName)

Example usage

AdminClusterManagement.rippleStartSingleCluster("myCluster")



startAllClusters

This script starts each cluster within a cell configuration.

Syntax

AdminClusterManagement.startAllClusters()

Example usage

AdminClusterManagement.startAllClusters()



startSingleCluster

This script starts a specific cluster in the configuration.

startSingleCluster argument description. To run the script, specify the cluster name argument, as defined in the following table:

Argument Description
clusterName Name of the cluster of interest.

Syntax

AdminClusterManagement.startSingleCluster(clusterName)

Example usage

AdminClusterManagement.startSingleCluster("myCluster")



immediateStopAllRunningClusters

This script stops the server cluster members for each active cluster within a specific cell. The server ignores any current or pending tasks. When the stop operation begins, the cluster state changes to partially stopped. After all servers stop, the cluster state becomes stopped.

Syntax

AdminClusterManagement.immediateStopAllRunningClusters()

Example usage

AdminClusterManagement.immediateStopAllRunningClusters()



immediateStopSingleCluster

This script stops the server cluster members for a specific cluster within a cell. The server ignores any current or pending tasks. When the stop operation begins, the cluster state changes to partially stopped. After all servers stop, the cluster state becomes stopped.

immediateStopSingleCluster argument description. To run the script, specify the cluster name argument, as defined in the following table:

Argument Description
clusterName Name of the cluster to stop.

Syntax

AdminClusterManagement.immediateStopSingleCluster(clusterName)

Example usage

AdminClusterManagement.immediateStopSingleCluster("myCluster")



stopAllClusters

This script stops the server cluster members of each active cluster within a specific cell. Each server stops so that the server can complete existing requests and allow failover to another member of the cluster. When the stop operation begins the cluster state changes to partially stopped. After all servers stop, the cluster state becomes stopped.

Syntax

AdminClusterManagement.stopAllClusters()

Example usage

AdminClusterManagement.stopAllClusters()


stopSingleCluster

This script stops the server cluster members of a specific active cluster within a cell. Each server stops so that the server can complete existing requests and allow failover to another member of the cluster. When the stop operation begins the cluster state changes to partially stopped. After all servers stop, the cluster state becomes stopped.

stopSingleCluster argument description. To run the script, specify the cluster name argument, as defined in the following table:

Argument Description
clusterName Name of the cluster to stop.

Syntax

AdminClusterManagement.stopSingleCluster(clusterName)

Example usage

AdminClusterManagement.stopSingleCluster("myCluster")

Use the script library to automate the application serving environment using wsadmin.sh
Automate server administration using wsadmin.sh
Cluster servers with wsadmin scripting
Balancing workloads


Related


Cluster configuration scripts
Cluster query scripts

+

Search Tips   |   Advanced Search