5.1 How does FlexNet find a license file?

FlexNet uses the environment variable ARMLMD_LICENSE_FILE to find the license file.

The locations to be searched by ARM license-managed software are stored in ARMLMD_LICENSE_FILE. You can set ARMLMD_LICENSE_FILE so that it contains one or more file names, directory names, or port@server values. If you specify a directory name, you must not include the final slash /character. The locations are searched in order until a valid license is found. If a directory name is found then each file within the directory that has a .lic extension is searched. For ARM licensed tools, the contents of ARMLMD_LICENSE_FILE are searched before the contents of the generic FlexNet environment variable, LM_LICENSE_FILE.

ARM license search algorithm

The following example shows an overview of the algorithm used by ARM licensed products when searching for a license file:

Search algorithm
if (ARMLMD_LICENSE_FILE env-var set)
{
    Search ARMLMD_LICENSE_FILE for feature.
    if (feature found)
    {
        Stop searching
    }
}
if (LM_LICENSE_FILE env-var set)
{
    Search LM_LICENSE_FILE for feature.
    if (feature found)
    {
        Stop searching
    }
}
else
{
    Search c:\FLEXlm\license.dat (Windows)
    Search /usr/local/FLEXlm/licenses/license.dat (Unix/Linux)
    Search ~/.flexlmrc (Unix/Linux)
    if (feature found)
    {
       Stop searching
    }
}
Print error saying that license was not found.
Non-ConfidentialPDF file icon PDF versionARM DUI0577O
Copyright © 2011-2016 ARM Limited or its affiliates. All rights reserved.