+

Search Tips   |   Advanced Search

Cluster query scripts

The scripting library provides multiple script procedures to automate the application server configurations. Use the scripts in this topic to determine if clusters and cluster members exist and to display the clusters and cluster members configured in our environment. We can run each script individually, or combine procedures to create custom automation scripts.

The AdminClusterManagement script procedures are located in the app_server_root/scriptLibraries/server/V70 directory.

Use the following script procedures to query the cluster configuration:


checkIfClusterExists

This script displays whether the cluster of interest exists in the configuration.

Argument Description
clusterName Name of the cluster of interest.

Syntax

Example usage


checkIfClusterMemberExists

This script displays whether a specific cluster member exists in the cluster configuration.

argument descriptions. Run the script to see if the cluster
Argument Description
clusterName Name of the cluster to query.
serverName Name of the server of interest.

Syntax

Example usage


help

This script displays the script procedures that the AdminClusterManagement script library supports.

argument description. Run the script to display detailed
Argument Description
script Name of the script of interest.

Syntax

Example usage


listClusters

This script displays each cluster that exists in the configuration. This script does not require arguments.

Syntax

Example usage


listClusterMembers

This script displays the server cluster members that exist in a specific cluster configuration.

argument description. Run the script to list the cluster
Argument Description
clusterName Name of the cluster of interest.

Syntax

Example usage


Related tasks

  • Use the script library to automate the application serving environment
  • Automating server administration
  • Clustering servers with wsadmin scripting
  • Balancing workloads

  • Cluster configuration scripts