server version command
server version command displays the version information of the named server and the current Java runtime environment (JRE).
Run the command from the
server version serverName
The name of the server to run the command against. If no server name is specified, the default
defaultServerserver name is used. If no server name is specified and no
defaultServerserver exists, the command displays the version of the Liberty installation.
If the named server specifies a particular JRE with the
JAVA_HOMEvariable in the
server.envfile, the command displays the version for that JRE. Otherwise, the system default version is displayed.
The following exit codes are available for the
server version command and the equivalent executable JAR file
This code indicates successful completion of the requested operation.
This code indicates invocation of a redundant operation. For example, starting a started server or stopping a stopped server. This code might also be returned by JVM if invalid Java options are used.
Exit codes that are greater than or equal to 20 indicate that an error occurred while performing the request. Messages are printed and captured in log files with more information about the error.