OS: Windows
Use the MGLS_LICENSE_SEARCH environment variable to change the license search behavior to emulate the default behavior on Linux.
When set to 1, this environment variable, which is only applicable to PCLS, restricts Mentor applications from searching for licenses beyond the first defined license location.
Setting MGLS_LICENSE_SEARCH limits the license search for all Mentor applications, so make sure you do not want to search other defined license locations. Setting MGLS_LICENSE_SEARCH is not normally necessary.
Mentor applications on Windows search for the following license locations.
Sequence |
Type |
Location |
|---|---|---|
1 |
environment variable |
MGLS_LICENSE_FILE |
2 |
registry value |
HKEY_LOCAL_MACHINE\ SOFTWARE\MentorGraphics\Licensing\ MGLS_LICENSE_FILE |
3 |
environment variable |
LM_LICENSE_FILE |
4 |
registry value |
HKEY_LOCAL_MACHINE\ SOFTWARE\FLEXLM License Manager\ LM_LICENSE_FILE |
5 |
file |
C:\flexlm\license.dat |
By default, Windows licensing searches through all license locations until either a license is obtained or no licenses are found.
First you set MGLS_LICENSE_FILE and LM_LICENSE_FILE and then set
MGLS_LICENSE_SEARCH=1The search stops at the MGLS_LICENSE_FILE environment variable and searches no further; the search does not continue to the LM_LICENSE_FILE environment variable. If the MGLS_LICENSE_FILE environment variable contains multiple servers or paths, all are searched.