2.12.8 version
Displays the version information for Java EE Server.
Synopsis
asadmin [asadmin-options] version [--help] [--verbose={false|true}] [--local={false|true}]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The version subcommand of asadmin displays the version information for Java EE Server. By default, if the subcommand cannot contact the DAS, the subcommand retrieves the version information locally and displays a warning message. This subcommand is supported in remote mode and local mode.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- {--verbose|-v}={false|true}
-
Provides the version of the Java Runtime Environment (JRE) in which the server is running. If this option is set to true.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
- --local={false|true}
-
Specifies whether the version information is retrieved locally.
If this option is set to true, the subcommand obtains the version locally from the installation of Java EE Server on the host where the subcommand is run. If this option is set to false (default), the subcommand attempts to contact the DAS to obtain the version. If the attempt to contact the DAS fails, the subcommand retrieves the version locally and displays a warning message.
Type: Boolean
The following values can be specified:
-
true
-
false
Default value: false
-
Examples
The following example obtains the Version Information from a running DAS.
asadmin version
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |