version サブコマンドで確認できます。
(参考)Enterprise Server のバージョンを表示する (Sun GlassFish Enterprise Server v3 管理ガイド)
asadmin> version
例えばWindows
「/c/apps」に配置している場合。
# こんな感じとか
$ /c/apps/payara5/bin/asadmin version
Version string could not be obtained from Server [localhost:4848].
(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 = Payara Server 5.194 #badassfish (build 327)
Command version executed successfully.
# こんな感じ
$ /c/app/glassfish-4.1/glassfish4/glassfish/bin/asadmin version
Version string could not be obtained from Server [localhost:4848].
(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 = GlassFish Server Open Source Edition 4.1 (build 13)
Command version executed successfully.
例えばmacOS Sierra
GlassFishはHomebrewで配置しました。
$ /usr/local/Cellar/glassfish/4.1.2/libexec/glassfish/bin/asadmin version
Version string could not be obtained from Server [localhost:4848].
(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 = GlassFish Server Open Source Edition 4.1.2 (build 1)
Command version executed successfully.