You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The information on this page refers to LM-X version 4.7.2 or newer, which added an example of using a token-based licensing model to the LM X SDK.

You can run an example of how to retrieve information on a token-based license to list all available information about any token dependencies the feature has.

The embedded example is located in the LM-X SDK under LMX_PATH/examples/token.

To run the the embedded example and start the license server, lmx-serv, with a token.lic license:

  1. Compile the LM-X SDK on Windows or Unix.

  2. Set the LMX_PATH environment variable to point to the location of the LM-X SDK.

  3. Run the following command:

    lmx-serv -l $LMX_PATH/examples/token/token.lic

    The above command will start a license server and read a token.lic file that will be served by this server.
    Note: This setting applies only to floating/network licenses.

Usage

The following command will run the token program (token.exe on Windows) and query a license server to obtain all available details of the "myproduct" feature:

$LMX_PATH/examples/token/token myproduct

    • 5 licenses of "prod_a" in version 1.0
    • 5 licenses of "prod_b" in version 1.0
  • No labels