Loading
What is the most efficient way to check if the License Server is up and running?

We are notifying the application of server up/down via an event callback.

 

We are sending an `lc_vsend` and using the return value to check if the license server is up or down. However, we have noticed when a flex enabled application has many licenses checked out and the server is actually down, the `lc_vsend` takes a lot of time to return. Is there a faster way of checking if the license server is up or down?

 

We have tried using the return value of `lc_heartbeat` but we get false positives when we send a heartbeat for a job with no licenses checked out, it returns 0 regardless if the License Server is up or down.


Dolson and estmon8u like this.
  • Y Vernekar (Flexera Software)

    Hi @z004mtbc​ , there is no direct API for the use case. But one workaround that you could test is to use the API lc_get_server_version. This is used to get the LMGRD/LMADMIN and Vendor version. If the API returns a value, then the server is up, and if it returns 0, then the server is down.

    I would say use it with FNP_SERVER_TYPE_VENDOR_DAEMON and directly check the Vendor Daemon status.

    Expand Post

Loading
What is the most efficient way to check if the License Server is up and running?