Use the version subcommand in remote mode to display information about the GlassFish Server version for a particular server. If the subcommand cannot communicate with the server by using the specified login (user/password) and target (host/port) information, then the local version is displayed along with a warning message.
Ensure that the server is running.
Remote subcommands require a running server.
Display the version by using the version(1) subcommand.
This example displays the version of GlassFish Server on the local host.
asadmin> version Version = Oracle GlassFish Server 3.0.1 (build 19) Command version executed successfully. |
You can also view the full syntax and options of the subcommand by typing asadmin help version at the command line.