2.6.16 list-clusters
Lists existing clusters in a domain.
Synopsis
asadmin [asadmin-options] list-clusters [--help] [target]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The list-clusters subcommand lists the existing clusters in a domain. The list can be filtered by cluster, instance, node, or a configuration. For each cluster that is listed, the subcommand indicates whether the cluster is running. This subcommand is supported in remote mode only.
Precondition
Domain Administration Server (DAS) is running.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- target
-
Filters the list of clusters by specifying the target for which the clusters are to be listed.
Type: String
The following values can be specified:
-
domain
Lists all clusters in the domain. This is the default value.
-
cluster-name
Lists only the specified cluster.
-
instance-name
Lists the cluster of which the specified instance is a member.
-
node-name
Lists the clusters that contain an instance that resides on the specified node. For example, if instance pmdi1 in cluster pmdc and instance ymli1 in cluster ymlc reside on node n1, pmdc and ymlc are listed.
-
configuration-name
Lists all clusters that contain instances whose configuration is defined by the named configuration.
Default value: domain
-
Examples
The following example lists all clusters in the current domain.
asadmin list-clusters
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |