By: David Hart user 15 Oct 2020 at 12:27 p.m. CDT

4 Responses
David Hart gravatar
I'm an app developer accessing a Community version of Gluu Server installed by someone on our IT staff who is not available to assist. I can login to Gluu Server w an admin account, and I can run the oxauth-rp test app, both work fine. From either of those apps, or by looking at available logs in the Gluu Server admin console, or via a REST call from a web browser, can I confirm which rev of oxd is installed? I want to use swagger-codegen to produce a csharp client library and would like to make sure that I apply the proper version of swagger spec.

By Michael Schwartz staff 15 Oct 2020 at 1:49 p.m. CDT

Michael Schwartz gravatar
Very good question. `/opt/oxd-server/bin/oxd-server status` doesn't give you the version. ``` # /opt/oxd-server/bin/oxd-server status oxd server running pid=306 OXD_HOME = /opt/oxd-server OXD_BASE = /opt/oxd-server OXD_CONF = /opt/oxd-server/conf OXD_PID_FILE = /opt/oxd-server/ OXD_START = org.gluu.oxd.server.ServerLauncher OXD_LOGS = /var/log/oxd-server OXD_STATE = /gluu/oxd-server/run/oxd-server.state CLASSPATH = /opt/oxd-server/lib/bcprov-jdk15on-1.64.jar:/opt/oxd-server/lib/oxd-server.jar org.gluu.oxd.server.OxdServerApplication JAVA = /opt/jre/bin/java JAVA_OPTIONS = -server -Xms256m -Xmx512m -XX:MaxMetaspaceSize=256m -XX:+DisableExplicitGC -cp /opt/oxd-server/lib/bcprov-jdk15on-1.64.jar:/opt/oxd-server/lib/oxd-server.jar org.gluu.oxd.server.OxdServerApplication server /opt/oxd-server/conf/oxd-server.yml OXD_ARGS = oxd-server.state=/gluu/oxd-server/run/oxd-server.state RUN_CMD = /opt/jre/bin/java -server -Xms256m -Xmx512m -XX:MaxMetaspaceSize=256m -XX:+DisableExplicitGC -cp /opt/oxd-server/lib/bcprov-jdk15on-1.64.jar:/opt/oxd-server/lib/oxd-server.jar org.gluu.oxd.server.OxdServerApplication server /opt/oxd-server/conf/oxd-server.yml org.gluu.oxd.server.ServerLauncher oxd-server.state=/gluu/oxd-server/run/oxd-server.state ```

By Arnab Dutta staff 15 Oct 2020 at 11:36 p.m. CDT

Arnab Dutta gravatar
Hi David, We can check oxd `version` in the following two ways: 1. From `/var/log/oxd-server/oxd-server.log` generated on start-up of oxd-server (screenshot log.png attached). 2. From `MANIFEST.MF` inside oxd-server.jar file (screenshot Manifest.png attached). Regards, Arnab

By Arnab Dutta staff 16 Oct 2020 at 1:49 a.m. CDT

Arnab Dutta gravatar
Hi David, We will also address in upcoming `4.2.2` release so that users can easily check oxd `version` either using health-check endpoint or by using `systemctl status oxd-server` command. Regards, Arnab

By Arnab Dutta staff 21 Oct 2020 at 11:04 p.m. CDT

Arnab Dutta gravatar
Following solutions will be provided in upcoming 4.2.2 release to check oxd version. 1. Version can be checked using `/opt/oxd-server/bin/oxd-server version` command. 2. Health-check (`/health-check`) endpoint will also return version of running oxd along with application status. Closing this ticket. Regards, Arnab