Skip to main content

OpenLM Generic

To monitor a license manager that OpenLM has no integration for, write a small tool that reports its licenses and the users who hold them in the OpenLM Generic format. OpenLM Broker runs the tool once a minute, or reads the report from a web address, and sends each report to OpenLM Platform as it is. OpenLM Platform then shows the licenses, the sessions, and, when you add a log file, the denials.

To connect the tool, follow this page. To write the tool, use OpenLM Generic format reference.

The license manager type in Broker and in OpenLM Platform is OpenLM Generic.

Note

Several vendors ship a tool that prints this format, for example for AMP, EasyCopy, progeCAD, License4J, and OSKA. If your license manager has a page in this section, follow that page.

Before you begin​

Confirm these prerequisites:

  • An OpenLM Platform account.
  • OpenLM Broker, approved in Broker Hub. OpenLM Platform accepts license manager data only from approved Brokers, so the license manager doesn't reach Pending Servers until you approve the Broker. Broker versions back to v4.7.3.0 have the OpenLM Generic type. To read the report from a web address, use v26.9.16.1403 or higher: earlier versions send the error of a failed connection to OpenLM Platform as if it were the report.
  • A tool that prints the report, on the Broker machine. Broker runs it under the account of the Broker service, which is Local System on Windows, so the tool must run without a signed-in user and without asking anything.
  • Or a web address that answers with the report, and that the Broker machine can reach without signing in.

What you can monitor​

OpenLM Platform shows what your report sends. The following table lists what you can see and the part of the report that gives it:

What OpenLM Platform showsWhat your report sends
Whether the license manager works, and why notserver_status
Each feature with its total, or UnlimitedFEATURE, with total
The licenses in use, and each session with its user, computer, start time, and licensesUSER elements, and inuse
Borrowed licenses and the end of the borrow periodborrowed and linger_time on USER
Expiration datesexp_date_utc on FEATURE
Licenses that are assigned to named usersALLOCATION elements
License type, version, product name, overdraft, and separate pools of one featurelicense_type, version, product_name, overdraft, and additional_key on FEATURE
Denied requests, and sessions shorter than a minuteA log file that Broker reads next to the report

Broker reads the report once a minute. A session from the report starts at its start_time_utc and ends at the first read that no longer lists it, so its end is to the minute. Sessions and denials from the log file are to the second.

How OpenLM Broker passes the report​

The following diagram shows how OpenLM Broker collects the report and sends it to OpenLM Platform.

Diagram: OpenLM Broker on the license manager machine, or any machine that runs your tool, runs your tool once a minute or reads its URL. Your tool reads your license manager and prints an OpenLM Generic report with the licenses and users. Broker sends the license data to OpenLM Platform over HTTPS on port 443, and you see it in the OpenLM Platform apps in a web browser. How OpenLM Broker passes an OpenLM Generic report

Broker gets the report in one of two ways, from the Data Inquiry command of the license manager:

  • A command: Broker starts the command at second 30 of every minute and reads what it prints on standard output. It starts the program without a command shell, so a pipe, a redirection, or a command that is part of the shell, such as type on Windows, works only behind cmd /c or sh -c. To send a file that another job writes, use a command that prints it, for example cmd /c type C:\OpenLM\report.xml on Windows or cat /opt/openlm/report.xml on Linux. Broker has no mode that reads a file by itself.
  • A web address: when the command starts with http: or https:, Broker sends a plain GET request to it, with no credentials, and reads the answer.

Broker also reads the report once right after you save the license manager. Saving a license manager, or restarting Broker, doesn't end the sessions: the next report lists them again with the same start times. Broker sends the text to OpenLM Platform as it is, over HTTPS on outbound port 443. Broker doesn't check the XML, so OpenLM Platform finds any error in it. See When OpenLM Platform refuses a report.

Prepare the tool​

Your tool prints one report each time Broker runs it. Start from one of the following scripts. Each prints a valid report with two features and two sessions, from values that you replace with what your license manager reports. Both write a fresh request_time_utc at each run. The PowerShell script computes inuse from the sessions. In the shell script, you pass inuse with each feature: make it the sum of the licenses of its sessions.

For Windows PowerShell, save this script, for example as C:\OpenLM\report.ps1:

report.ps1
# report.ps1: prints one OpenLM Generic report for OpenLM Broker.
# Replace the sample values with what your license manager reports at each run.

# One entry per feature. Start is the UTC time the user checked the license out.
$features = @(
@{ Name = 'Drafting'; Vendor = 'Example Vendor'; Total = 10; Sessions = @(
@{ User = 'mjones'; Computer = 'WS-101'; Start = '2026-12-01 08:15:00'; Licenses = 1 },
@{ User = 'asmith'; Computer = 'WS-102'; Start = '2026-12-01 09:40:00'; Licenses = 2 }) },
@{ Name = 'Reporting'; Vendor = 'Example Vendor'; Total = 5; Sessions = @() }
)

function Ms([DateTime]$utc) { # milliseconds since 1970-01-01 UTC
[long]($utc - [DateTime]'1970-01-01').TotalMilliseconds
}
function Xml([string]$text) { # escapes XML characters, writes non-ASCII letters as &#N;
$text = [Security.SecurityElement]::Escape($text)
[regex]::Replace($text, '[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]',
{ param($m) '&#' + [char]::ConvertToUtf32($m.Value, 0) + ';' })
}

$lines = @('<?xml version="1.0" encoding="UTF-8"?>')
$lines += '<SERVER request_time_utc="{0}" server_status="ok">' -f (Ms ([DateTime]::UtcNow))
foreach ($f in $features) {
$inuse = 0; foreach ($s in $f.Sessions) { $inuse += $s.Licenses }
$lines += ' <FEATURE name="{0}" vendor="{1}" total="{2}" inuse="{3}" license_type="Floating">' -f (Xml $f.Name), (Xml $f.Vendor), $f.Total, $inuse
foreach ($s in $f.Sessions) {
$start = [DateTime]::ParseExact($s.Start, 'yyyy-MM-dd HH:mm:ss', [Globalization.CultureInfo]::InvariantCulture)
$lines += ' <USER name="{0}" workstation="{1}" start_time_utc="{2}" number_of_lics="{3}"/>' -f (Xml $s.User), (Xml $s.Computer), (Ms $start), $s.Licenses
}
$lines += ' </FEATURE>'
}
$lines += '</SERVER>'
[Console]::Out.Write(($lines -join "`n") + "`n")

For a POSIX shell on Linux, save this script, for example as /opt/openlm/report.sh, and make it executable:

report.sh
#!/bin/sh
# report.sh: prints one OpenLM Generic report for OpenLM Broker.
# Replace the sample values with what your license manager reports at each run.

xml() { # escapes XML characters
printf '%s' "$1" | sed -e 's/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g' -e 's/"/\&quot;/g' -e "s/'/\&apos;/g"
}
feature() { # name vendor total inuse
printf ' <FEATURE name="%s" vendor="%s" total="%s" inuse="%s" license_type="Floating">\n' \
"$(xml "$1")" "$(xml "$2")" "$3" "$4"
}
session() { # user computer start (ms since 1970-01-01 UTC) licenses
printf ' <USER name="%s" workstation="%s" start_time_utc="%s" number_of_lics="%s"/>\n' \
"$(xml "$1")" "$(xml "$2")" "$3" "$4"
}

printf '<?xml version="1.0" encoding="UTF-8"?>\n'
printf '<SERVER request_time_utc="%s000" server_status="ok">\n' "$(date -u +%s)"
feature "Drafting" "Example Vendor" 10 3 # inuse = the licenses of its sessions
session "mjones" "WS-101" 1796112900000 1 # 2026-12-01 08:15:00 UTC
session "asmith" "WS-102" 1796118000000 2 # 2026-12-01 09:40:00 UTC
printf ' </FEATURE>\n'
feature "Reporting" "Example Vendor" 5 0
printf ' </FEATURE>\n'
printf '</SERVER>\n'

Before you connect the tool to Broker, run it on the Broker machine and check what it prints:

  1. Run the command in a command prompt or a terminal, for example powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\OpenLM\report.ps1.
  2. Check that the output is one XML document, and nothing else: no line before <?xml or <SERVER, and no second document after </SERVER>.
  3. Check the rules that OpenLM Platform applies to every report:
    • request_time_utc is the time of this run, in milliseconds since 1970-01-01 00:00:00 UTC.
    • server_status is ok in lower case when the license manager works.
    • Every FEATURE has a name and a vendor.
    • inuse of each feature equals the sum of number_of_lics of its USER elements.
    • Each session keeps the same start_time_utc from one report to the next.
    • Names and values use letters from the ASCII set, or XML character references such as &#235; for other letters.

The full list of rules is in Rules that every report follows.

Configure OpenLM Broker​

To configure OpenLM Broker for your tool:

  1. Open the Broker UI for the Broker that runs the tool.

    On that machine, open http://localhost:5090/. Local access needs no credentials. From any other machine, open Broker Hub in OpenLM Platform and select the Broker UI icon of that Broker. When the Broker UI asks for a remote access token, create one on the Broker machine, as Open the Broker UI describes.

  2. On the License Managers page, check that Host shows the host name of the license manager machine.

    OpenLM Platform lists the license server under this host. The field holds the host for every license manager on the page.

  3. Select Add License Manager.

  4. From LM Type, select OpenLM Generic.

  5. In Port, enter the port of the license manager, or any port that no other license manager on this Broker uses, and select Add.

    The port names the license server: OpenLM Platform lists it as <port>@<host>. Broker doesn't connect to the port and doesn't pass it to your tool, and the name and port attributes of the report change nothing.

    The Add License Manager dialog in the Broker UI with the LM Type OpenLM Generic and the port 7301 Add your license manager as OpenLM Generic

  6. On the Commands tab, select Data Inquiry under Periodic commands, and enter the command that runs your tool, or its web address, in the command box. For example:

    powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\OpenLM\report.ps1

    On Linux, enter the path of the script, for example /opt/openlm/report.sh.

    The OpenLM Generic commands are empty by default. Leave Executable path, Status, Start, and Stop empty: OpenLM Platform takes the status of the license manager from server_status in the report.

    Keep these rules in mind for the command:

    • A semicolon (;) splits the line into separate commands, so don't use one, for example inside a PowerShell -Command. Put the code in a script file instead.
    • Placeholders such as {$port} aren't replaced in a command that you type.
    • Timeout (sec), 60 by default, is how long the tool can run. Broker stops a tool that runs longer.
    • Watch interval (sec), 55 by default, sets how often Broker reads the report. Any value under 120 means once a minute.

    The Commands tab of the OpenLM Generic license manager with the periodic Data Inquiry command, the watch interval 55, the time-out 60, and the command that runs C:\OpenLM\report.ps1 with PowerShell Enter the command that runs your tool as the Data Inquiry command

  7. (Optional) To report denials, add the vendor and the log file, as Report denials and short sessions describes.

  8. Select Save.

    Broker reloads its configuration, runs your tool, and reports the license manager to OpenLM Platform. The license server reaches Pending Servers.

To test the command, open the license manager again, select Data Inquiry on the Commands tab, and select Execute. The result shows the text that Broker sends to OpenLM Platform: your report when the tool works, or the error when it doesn't. Execute doesn't check the XML, so check the output against the rules in Prepare the tool.

The Execution Result of the OpenLM Generic Data Inquiry for the license manager on openlm-generic01.example.com port 7301: an XML report with the server status ok, the feature Drafting with the total 10 and 3 licenses in use by mjones on WS-101 and asmith on WS-102, and the feature Reporting with the total 5 The Execute result of a working tool

Detect doesn't add an OpenLM Generic license manager. Add it by hand.

Report denials and short sessions​

The report shows who uses a license at the moment Broker reads it. To report denied requests, and sessions that start and end between two reads, your license manager or your tool writes them to a log file, one line each, and Broker reads the new lines next to the report.

Each line has the shape of a FLEXlm debug log line, for example:

08:21:34 (Example Vendor) TIMESTAMP 12/2/2026
08:21:35 (Example Vendor) DENIED: "Drafting" mjones@WS-101 (Licensed number of users already reached. (-4,342))
08:21:36 (Example Vendor) DENIED: "Reporting" asmith@WS-102 (All seats are taken.)
08:21:41 (Example Vendor) OUT: "Reporting" ekim@WS-105 (2 licenses)
08:22:01 (Example Vendor) IN: "Reporting" ekim@WS-105 (2 licenses)

The line format, the date line, and the denial codes are in Denials and short sessions.

To add the log file in Broker:

  1. On the Vendors tab of the license manager, select Add Vendor, enter the vendor name that your report uses in vendor, for example Example Vendor, and select Continue.

    The vendor appears in the list after you switch to another tab and back.

  2. On the Log Files tab, select Add Log File, and fill in the dialog:

    • Log Type: FlexLM Debug Log File.
    • Log Name: a name for the log, for example Denial log.
    • Log Path: the full path of the file, for example C:\OpenLM\logs\generic.log. Any file name and extension works.
    • Vendor: the vendor that you added.
    • Under Advanced, set Encoding to the encoding of the file, for example UTF-8. Broker suggests the default encoding of the machine.

    The Add Log File dialog with the Log Type FlexLM Debug Log File, the Log Name Denial log, the path C:\OpenLM\logs\generic.log, the vendor Example Vendor, and under Advanced the encoding UTF-8, Read File Every 10 seconds, and Watch files by pattern off Point Broker at the log file of denials

  3. Select Continue, then Save.

Broker starts at the end of the file: it sends only the lines written after you save the log file. After a restart, Broker goes on from where it stopped, so it also sends the lines written while it was stopped, unless it was stopped for more than a day. OpenLM Platform records a denial only when its feature and vendor match a feature of the report.

Approve OpenLM Generic in OpenLM Platform​

Broker reports the license manager with the host name from the License Managers page and the port that you entered, with the License Manager Type OpenLM Generic.

To approve the license manager in OpenLM Platform:

  1. Sign in to OpenLM Platform with the URL your administrator gave you.

  2. Open Navigation (the grid icon in the OpenLM Platform header) and select Licenses and Features, then License Servers.

  3. Select Pending Servers, select the row of the license manager, then select Approve And Merge.

    The pending entry has the Server Name <port>@<host> and the License Manager Type OpenLM Generic.

    Pending Servers in OpenLM Platform with the license server 7301@openlm-generic01.example.com selected, the License Manager Type OpenLM Generic, and the Source Broker The license manager in Pending Servers

  4. On the Approve License Server page, check the settings, then select Approve.

    You can change the Display Name. Time Zone is the time zone of the Broker machine and is read-only. OpenLM Platform uses it for the moment Broker ran your tool, which it compares with request_time_utc, and for the times of the lines in the log file. The times in your report are always UTC. See Times.

    The Approve License Server page with the Display Name 7301@openlm-generic01, the License Manager Type OpenLM Generic, the Time Zone UTC, the Sample Rate 55, and the host openlm-generic01.example.com with the port 7301 Approve the license manager

Verify the integration​

To verify that OpenLM Platform receives your reports:

  1. In OpenLM Platform, select License Servers, then select Live Servers Statistics under Operational.

  2. Find the row for the license manager, and confirm that Status is Up and that RSQT (Recent Successful Query Time) is recent.

    Quantity adds up the totals of the features, and Used the licenses in use. Point at Status to see the reason for another status.

    Live Servers Statistics with the license server 7301@openlm-generic01.example.com of the type OpenLM Generic, Status Up, Quantity 15, and Used 3 The license manager is Up

  3. Open Navigation, select Licenses and Features, then Live Statistics.

    Each feature of the report appears as a row, with its total in Total and its licenses in use in Used.

    Live Statistics with the features Drafting, total 10 and 3 used, and Reporting, total 5 and 0 used, of the vendor Example Vendor, with the license type Floating Your features in Live Statistics

  4. Select a feature's Used count to confirm that sessions arrived.

    The count opens Currently Consumed Licenses on the Usage page, with the user, the computer, and the start time of each session. Consumed Tokens shows the licenses of the session.

    Currently Consumed Licenses filtered on the feature Drafting: asmith on ws-102 with 2 licenses and mjones on ws-101 with 1 license, both with the license type Floating Your sessions in Currently Consumed Licenses

  5. If Broker reads a log of denials, open Navigation, select Licenses and Features, then Denials.

    Each denied request is a row with the feature, the user, and the computer. Error shows the message of the log line, and Group the category that OpenLM Platform gives its code.

    Denials Reports with the denials of the license server 7301@openlm-generic01.example.com for the features Drafting and Reporting of Example Vendor, with the users, the computers, the message in Error, and the category in Group, such as LimitReached and RestrictionOrAuthorization Denied requests from the log in Denials Reports

OpenLM Platform shows computer names in lower case, and the user names of denials too.

Troubleshooting​

This section covers common problems with an OpenLM Generic license manager in OpenLM Platform. Start each time with Execute for the Data Inquiry command in the Broker UI: it shows the text that Broker sends. The Broker log of the license manager, port-<port>-OpenLM Generic.log in the logs folder of the Broker installation, holds the detail.

Why does the license manager not reach Pending Servers?​

Open Broker Hub and confirm that this Broker appears under Brokers with status Up, and not under Pending Brokers. OpenLM Platform accepts license manager data only from approved Brokers.

Why does Status show Data error with a parse failure?​

When the reason is Parsing failed. Data format is wrong. Can't convert xml., OpenLM Platform couldn't read the text that Broker sent, so it took nothing from it. Select Execute for the Data Inquiry command and compare the result with the following table:

Execute resultCauseWhat to do
Your output, then Exit code: and a numberYour tool ended with an error. Broker sent its output and its error text.Run the tool by hand on the Broker machine and fix the error. To report a problem, print a report with server_status set to the reason, and exit with code 0.
Unbalanced quotesA semicolon in the command split it into 2 commands.Move the code into a script file, and run the file.
Command execution timed outYour tool ran longer than Timeout (sec).Make the tool faster, or raise Timeout (sec).
An HTML pageThe web address answered with an error page. Broker sends the body of any answer, also of an error.Open the address on the Broker machine, and fix the web server or the address.
An XML reportThe report breaks a rule of the format.Check it against When OpenLM Platform refuses a report.

After you fix the tool, Status can stay Data error until something in the report changes, for example a user who checks out or returns a license. While it does, OpenLM Platform shows no sessions for the license server.

Why does Status show Data error with "Empty features list"?​

The report has no FEATURE element. List every feature of the license manager in every report, also the features that nobody uses.

Why does Status show Unknown?​

When Status has no reason, OpenLM Platform got an empty report: your tool printed nothing, the web address answered with an empty body, or Broker couldn't start the command. Select Execute for the Data Inquiry command and compare the result with the following table:

Execute resultCauseWhat to do
Command could not be launched with CreateProcess error=2, The system cannot find the file specifiedBroker found no program at the start of the command. A shell command such as type alone also gives this.Correct the path, or put cmd /c in front of a shell command.
Command could not be launched with CreateProcess error=193, %1 is not a valid Win32 applicationThe command is the path of a file that isn't a program, for example a report file.Print the file with cmd /c type, and run a script through its program, for example powershell.exe -File.
NothingYour tool printed nothing, or the web address answered with an empty body.Run the tool by hand on the Broker machine, or open the address there.

Why does Status show Unknown with a gap between 2 times?​

When the reason starts with The gap between RequestTime (from output) and ExecutionTime (executed in Broker) is too big, the request_time_utc of the report is 90 seconds or more away from the moment Broker ran your tool. The reason shows both times. Make your tool write the time of each run, and don't print a fixed or cached time, for example from a file that another job wrote earlier. If your tool can't know the time, leave request_time_utc out.

When the 2 times are a whole number of hours apart, the Time Zone of the license server isn't the time zone of the Broker machine, for example because the time zone of the machine changed after you approved the license manager.

While the rest of the report stays the same as at the last read, OpenLM Platform doesn't check the time: it shows the license server as Up, with the old time as the status time.

Why does Status show Down?​

Your report sent a server_status other than ok, and OpenLM Platform shows that text as the reason. Point at Status to read it. A value such as OK or Ok counts as down too: write ok in lower case.

Write the reason in more than one word, such as License service is not running. While the rest of the report stays the same as at the last read, a one-word value such as Maintenance or OK shows as Up.

Why are the features not updated, and Used is 0?​

When the license server stays Up, but Live Statistics shows old features and Used is 0, a FEATURE element of the report has no vendor attribute. OpenLM Platform then takes none of the features of that report. Add vendor to every feature. An empty value, vendor="", is enough.

Why is a session missing?​

Check the report with Execute:

  • The session's start_time_utc is later than the time of the report, for example because the clock of the license manager runs ahead. OpenLM Platform drops such a session.
  • The feature's exp_date_utc is in the past. OpenLM Platform drops the feature and its sessions.
  • The sessions of the feature hold more licenses than total plus overdraft. OpenLM Platform drops the sessions beyond that number.
  • The sessions of the feature hold more licenses than inuse. OpenLM Platform can drop all the sessions of the feature. Make inuse the sum of number_of_lics of the feature's USER elements.

Why do usernames show other letters?​

Broker reads the output of a command in the Windows code page of the Broker machine, and the answer of a web address in the encoding that its Content-Type header names. Write letters outside ASCII as XML character references, such as &#235; for ë, or serve the report with Content-Type: text/xml; charset=utf-8. See Characters and encoding.

Why does OpenLM Platform show no denials?​

Check these points:

  • The log file is on the Log Files tab of the license manager, with the Log Type FlexLM Debug Log File and the Vendor of your report.
  • The lines were written after you saved the log file. Broker starts at the end of the file.
  • The denied feature is a feature of the report, with the same vendor.
  • The Time Zone of the license server is the time zone of the Broker machine. OpenLM Platform reads the time of each line in that zone, and a denial whose time is hours off can be missing.
  • Each line has the shape that Denials and short sessions describes.

Known limitations​

These limits apply to OpenLM Generic license managers:

  • Broker reads the report once a minute. Sessions shorter than that appear only when a log file reports them.
  • Broker has no mode that reads a report file. Use a command that prints the file.
  • Broker sends the output of a failed command, and the body of a web error page, as the report. OpenLM Platform then shows a parse error instead of the cause.
  • A feature without a vendor attribute makes OpenLM Platform drop the whole report, without a status that says so.
  • Remove License in Currently Consumed Licenses reports success for an OpenLM Generic session, but Broker has no command to remove a license, and the session stays.
  • OpenLM Platform shows computer names in lower case, and the user names of denials too.
  • When a user has 2 allocations of one feature, OpenLM Platform keeps one.

The documentation team might draft this page using a large language model. A technical writer reviews every page and verifies it against the product before publishing it. A human makes the final decision.