License Server URL Designation

The license server’s base URL, as described in Base URL for the License Server in the Getting Started section, is required for each flexnetlsadmin command. To identify this URL in the flexnetlsadmin commands, do one the following:

Use the “-server” Option
Use an Environment Variable

Use the “-server” Option

To specify the license server URL explicitly in each flexnetlsadmin command, use the -server option. Insert it as the first option in the command.

The following excerpt from a sample command shows the -server option designating a base URL for a CLS instance:

flexnetlsadmin -server https://ABC.compliance.flexnetoperations.com/api/1.0/instances/ 
XYZ10203040 ... 

This excerpt from a sample command shows the -server option designating a base URL command for a local license server:

flexnetlsadmin -server http://11.11.1.111:7070/api/1.0/instances/~ ... 

Use an Environment Variable

As an alternative to explicitly providing the license server’s base URL every time you enter a flexnetlsadmin command, you can set the base URL as the environment variable FLEXNETLS_BASEURL. The following shows an example of the variable (set in this case for a local license server):

FLEXNETLS_BASEURL=http://11.11.1.111:7070/api/1.0/instances/~ 

See your Windows or Linux documentation for instructions on how to set this variable.