8.2. Running FlexNet and the Licensing Interconnect Separately on Windows

Use the instructions in this section to start the Licensing Interconnect and manage FlexNet and the Licensing Interconnect separately on Windows systems. On Windows, you will need to install the Licensing Interconnect as a Windows Service; see Installing the Licensing Interconnect as a Windows Service for detailed procedures.

After you have installed the service, on each license server, start the Licensing Interconnect with the following command:

ansysli_server  -k start

8.2.1. Installing the Licensing Interconnect as a Windows Service

You can install the Licensing Interconnect as a Windows Service (named Ansys, Inc. License Manager) via command arguments. You can specify startup options via command arguments or via the ansyslmd.ini file. Procedures for both methods are described below, but we recommend using the ansyslmd.ini method to specify startup options.


Note:  The Windows service name has been changed as of Ansys Release 2024 R1. If you have installed the Ansys License Manager 2024 R1 or newer on a machine that has never had the Ansys License Manager installed, the Windows service name is "ANSYS, Inc. License Manager CVD". This service is installed using the Flexera installs.exe file. For more information on the installation usage and options, run <Installation Directory>:\Program Files\ANSYS Inc\Shared Files\Licensing\winx64>installs.exe.


When installing the Licensing Interconnect as a Windows Service, be sure that the Licensing Interconnect Service is set to automatically restart.

The basic form of the command to install the Licensing Interconnect as a Windows Service is:

ansysli_server -k install

Any other command arguments needed to start the Licensing Interconnect must precede the -k install argument.

The following example indicates installation of the Licensing Interconnect as a Windows Service, starting it with the options specified in your ansyslmd.ini file. Use the -ini option, replacing path_to_file with the actual path of the ansyslmd.ini file only if the ansyslmd.ini file is not in the default location. The -ini command and any other command arguments needed to start the Licensing Interconnect must precede the -k install argument.

ansysli_server -ini "path_to_file" -k install

See the sample ansyslmd.ini file in Specify Startup Options via the ansyslmd.ini File for an example of the entries needed to administer FlexNet and the Licensing Interconnect separately.

8.2.1.1. Specify Startup Options via the ansyslmd.ini File

You can use the ansyslmd.ini file to specify startup options. We recommend using this method to specify startup options, as this method allows you to change startup options without reinstalling the service.

You may use the sample ansyslmd.ini file below to indicate that the Licensing Interconnect will not start FlexNet (ANSYSLI_NOFLEX) and will read the license feature information (CACHE_FLEXLIC) from thedirectory path specified (LICKEYFIL), allowing you to administer FlexNet and the Licensing Interconnect separately.

ANSYSLI_NOFLEX=1
CACHE_FLEXLIC=1
LICKEYFIL=c:\FlexNet\ansys\license\license_files\

Replace c:\FlexNet\ansys\license\license_files\ above with the actual directory path to the license files file name of the FlexNet license file, either directory path or file name is valid.

8.2.1.2. Specify Startup Options via Command Line

The following example installs the Licensing Interconnect as a Windows Service, allowing you to administer FlexNet and the Licensing Interconnect separately:

ansysli_server -noflex -cacheflexlic -c "c:\FlexNet\ansys\license\license_files\" -k install

where:

  • -noflex indicates that the Licensing Interconnect will not start FlexNet

  • -cacheflexlic indicates that the Licensing Interconnect will read the license feature information

  • -c indicates the FlexNet license file directory location

Replace c:\FlexNet\ansys\license\license_files\ above with the actual directory path to the license files file name of the FlexNet license file, either directory path or file name is valid.

8.2.1.3. Uninstalling the Service

Use this command to uninstall the Licensing Interconnect Windows Service:

ansysli_server -k uninstall