2.13.8 list-virtual-servers
Lists the existing virtual servers.
Synopsis
asadmin [asadmin-options] list-virtual-servers [--help] [--target target]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The list-virtual-servers subcommand of asadmin lists the existing virtual servers. This subcommand is supported in remote mode only.
Precondition
-
Domain Administration Server (DAS) is running.
-
Virtual servers must exist on the specified target.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --target target
-
Limits the listing to virtual servers for a specified target.
Type: String
The following values can be specified:
-
server
Lists the virtual servers for the default server instance. This is the default value.
-
configuration-name
Lists the virtual servers for the specified configuration.
-
cluster-name
Lists the virtual servers for all the server instances in the specified cluster.
-
instance-name
Lists the virtual servers for the specified server instance.
Default value: server
-
Examples
The following example lists all the virtual servers for the server instance instance1.
asadmin list-virtual-servers --target instance1
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |