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_SDK_INSTALLATION_PATH/examples/token.
To run the embedded example and start the license server, lmx-serv, with a token.lic license:
Set the LMX_SDK_INSTALLATION_PATH environment variable to point to the location of the LM-X SDK.
Run the following command:lmx-serv -l LMX_SDK_INSTALLATION_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 that the license server, lmx-serv, must be located in the path so that the copied/pasted command can work.)
Note: This setting applies only to floating/network licenses.
Usage
The default location of the token is as follows:
- On Windows: LMX_SDK_INSTALLATION_PATH/examples/token/token.exe
- On Unix: LMX_SDK_INSTALLATION_PATH/examples/token/token
The following command will run the token program and query a license server to obtain all available details of the "myproduct" feature:
token myproduct
Note that the token program, token, must be located in the path so that the copied/pasted command can work.
- 5 licenses of "prod_a" in version 1.0
- 5 licenses of "prod_b" in version 1.0