version
version
Displays version information forEclipse GlassFish
Description
The version subcommand displays version information for
Eclipse GlassFish. By default, if the subcommand cannot contact the
domain administration server (DAS), the subcommand retrieves the version
information locally and displays a warning message.
This subcommand is supported in remote mode and local mode.
Options
- asadmin-options
-
Options for the
asadminutility. For information about these options, see theasadmin(1M) help page. --help-?-
Displays the help text for the subcommand.
--verbose-v-
If this option is set to
true, the subcommand provides the version of the Java Runtime Environment (JRE) that the server is running. The default isfalse. --local-
If this option is set to
true, the subcommand obtains the version locally from the installation of Eclipse GlassFish on the host where the subcommand is run.
If this option is set tofalse(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.
Examples
Example 1 Obtaining Version Information From a Running DAS
asadmin> version
Version = Eclipse GlassFish 7.0.0 (build 34)
Command version executed successfully.
Example 2 Obtaining Version Information When the DAS Cannot be Reached
asadmin> version
Version string could not be obtained from Server [localhost:4848] for some reason.
(Turn debugging on e.g. by setting AS_DEBUG=true in your environment, to see the
details).
Using locally retrieved version string from version class.
Version = Eclipse GlassFish 7.0.0 (build 34)
Command version executed successfully.