server version command

The server version command displays the version information of the named server and the current Java runtime environment.

Usage examples

Find out the version information of the myserver server:

server version myserver

Syntax

Run the command from the path_to_liberty/wlp/bin directory.

server version serverName
serverName

The name of the server to run the command against. If no server is specified, a server called defaultServer is automatically created to run the command against.

Exit codes

The following exit codes are available for the server version command and the equivalent executable JAR file ws-server.jar:

Exit codes for the server version command
CodeExplanation

0

This code indicates successful completion of the requested operation.

1

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.

>=20

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.

See also