Skip to main content

OpenLM Generic format reference

Use this reference when you write a tool that reports a license manager to OpenLM SLM in the OpenLM Generic format. Each time OpenLM Broker runs your tool, the tool prints one XML report: the licenses of the license manager, who uses them, and whether the license manager works. Broker sends the report to OpenLM SLM as it is.

To connect your tool to Broker and approve the license manager in EasyAdmin, see OpenLM Generic. Its starter scripts print a valid report.

A report at a glance​

A report describes one license server at the moment your tool runs. It has these elements:

  • One SERVER element, the root, with the time of the report and the status of the license manager.
  • One FEATURE element for each license feature, or each pool of a feature.
  • In each FEATURE element, one USER element for each session that holds licenses of the feature, and one ALLOCATION element for each license that the license manager assigns to a named user.

The starter scripts in OpenLM Generic print the following report, with the parts that most tools need:

<?xml version="1.0" encoding="UTF-8"?>
<SERVER request_time_utc="1796171975879" server_status="ok">
<FEATURE name="Drafting" vendor="Example Vendor" total="10" inuse="3" license_type="Floating">
<USER name="mjones" workstation="WS-101" start_time_utc="1796112900000" number_of_lics="1"/>
<USER name="asmith" workstation="WS-102" start_time_utc="1796118000000" number_of_lics="2"/>
</FEATURE>
<FEATURE name="Reporting" vendor="Example Vendor" total="5" inuse="0" license_type="Floating">
</FEATURE>
</SERVER>

Your tool writes request_time_utc at each run. OpenLM SLM refuses a report whose time is 90 seconds or more away from the moment Broker ran the tool, so this sample works only with a fresh time. See Times.

The smallest report that OpenLM SLM accepts has a status and one feature with a name and a vendor:

<SERVER server_status="ok">
<FEATURE name="Drafting" vendor="Example Vendor" total="5" inuse="0"/>
</SERVER>

SERVER​

The SERVER element is the root of the report. Its attributes describe the license manager as a whole:

AttributeValueIf you leave it out
request_time_utcThe time your tool builds the report, in milliseconds since 1970-01-01 00:00:00 UTC, for example 1796171430676. It must be within 90 seconds of the moment Broker ran your tool.OpenLM SLM doesn't check the time.
server_statusok, in lower case, when the license manager works. Any other text means that it doesn't: EasyAdmin shows the license server as LM down, with your text after The LM server is down as the reason, and OpenLM SLM takes no licenses or sessions from that report. Write the reason in more than one word: while the rest of the report stays the same as at the last read, a one-word value shows as The LM server is down Down. instead of your text, the sessions stay, and OK shows as Up to date.The license server shows as LM down, with no text after The LM server is down.
name, portAny text.Nothing changes. OpenLM SLM names the license server after the host and port of the license manager in Broker, not after these attributes.

To report that your tool can't reach the license manager, print a report with server_status set to the reason and no features, for example <SERVER request_time_utc="1796171430676" server_status="License service is not running"/>. Don't print the error as plain text: OpenLM SLM can't read it and shows a parse error instead of your reason.

FEATURE​

Each FEATURE element is one license feature, or one pool of a feature. List every feature in every report, also the features that nobody uses: a feature that leaves the report leaves the Licenses window at the next read.

AttributeValueIf you leave it out
nameThe feature name, which EasyAdmin shows as Feature.OpenLM SLM refuses the whole report.
vendorThe vendor name, which EasyAdmin shows as Vendor. An empty value, vendor="", is accepted.OpenLM SLM keeps the license server Up to date but takes none of the features of the report, and the sessions of the license server end. Always send the attribute.
totalThe number of licenses, a whole number, shown as Total. -99 means unlimited, shown as Unlimited.0.
inuseThe number of licenses in use. Make it equal the sum of number_of_lics of the feature's USER elements. See Counts.0.
license_typeOne of the license types, spelled exactly as listed.Floating.
exp_date_utcThe expiration date, in milliseconds since 1970-01-01 00:00:00 UTC, or permanent for a license that doesn't expire. Send the same value in every report.No expiration date.
versionThe feature version, shown as Version.No version.
additional_keyA key that keeps 2 pools of the same feature apart, for example 2 purchases with different expiration dates, shown as Additional Key.Features with the same name, vendor, version, and license type count as one. See What makes a feature.
product_nameThe product name, shown as Product Name.The product name of another FEATURE with the same name, or else the feature name.
overdraftLicenses that users can use beyond total, shown as Overdraft.0.

OpenLM SLM drops a feature whose exp_date_utc is in the past, together with its sessions. An exp_date_utc that isn't a number or permanent, for example 2027-01-31, is ignored: the feature has no expiration date.

USER​

Each USER element is one session: one user on one computer who holds licenses of the feature.

AttributeValueIf you leave it out
nameThe username, shown as Username.The user GeneralUser.
workstationThe computer name, shown as Workstation. EasyAdmin shows it in lower case.The computer unknown.
number_of_licsThe licenses that the session holds, a whole number, shown as Consumed Tokens in Currently Consumed Licenses.0: the session appears, but it holds no license.
start_time_utcThe time the session started, in milliseconds since 1970-01-01 00:00:00 UTC. Send the same value in every report for as long as the session lasts. A start time later than the report removes the session.The session starts at the time of the first report that lists it.
borrowedtrue or 1 for a license that the user borrowed to work offline, false or 0 otherwise, in lower case. A borrowed session counts in Borrowed.false.
linger_timeFor a borrowed license, the length of the borrow period in seconds, counted from start_time_utc. EasyAdmin shows it as Linger Time, and the end of the borrow period, start_time_utc plus this value, as Linger Due. Send the same value in every report.Linger Time and Linger Due are empty.

ALLOCATION​

Each ALLOCATION element assigns one license of the feature to a named user. OpenLM SLM counts the allocations of a feature in Allocated. ALLOCATION works with any license type.

AttributeValueIf you leave it out
nameThe user that the license is assigned to.
start_time_utcThe time the license was assigned, in milliseconds since 1970-01-01 00:00:00 UTC.OpenLM SLM sets the start date of the allocation to 1753-01-01.
number_of_licsAccepted, but OpenLM SLM counts one license for each ALLOCATION element.

Name each user once in a feature: when a user appears in 2 ALLOCATION elements of one feature, OpenLM SLM keeps one of them. An allocation isn't a session. To show that the user also uses the license now, add a USER element.

License types​

license_type takes one of these values, exactly as written here:

  • Floating
  • NodeLocked
  • NamedUser
  • HostBased
  • SingleUse
  • NamedUserCasual
  • Unmanaged
  • UserNameLocked
  • Token
  • Credit
  • Disposable

EasyAdmin shows the value as License Type. A Disposable feature counts in neither Quantity nor Used of the license server in the License Manager - Servers widget.

Any other value, a different case such as floating, or an empty value, makes OpenLM SLM refuse the whole report.

Rules that every report follows​

OpenLM SLM applies these rules to every report.

Times​

All times are milliseconds since 1970-01-01 00:00:00 UTC.

  • request_time_utc is the time of this run. OpenLM SLM compares it with the moment Broker ran your tool, which it computes from the clock of the Broker machine and the Time Zone of the license server. When they are 90 seconds or more apart, OpenLM SLM refuses the report: EasyAdmin shows the license server as Unknown, with the 2 times in the reason, and from the next read the time of the report instead of a status, with no licenses in use. While the rest of the report stays the same as at the last read, OpenLM SLM doesn't check the time: EasyAdmin shows the time of the report instead of a status, and the sessions stay.
  • Never print a fixed or cached time. When your tool can't know the time of the run, for example when it prints a file that another job wrote earlier, leave request_time_utc out: OpenLM SLM then skips the check.
  • Print the same start_time_utc for a session in every report, and the same exp_date_utc and linger_time. An exp_date_utc that changes at every run makes OpenLM SLM record a new expiration date at every read.
  • OpenLM SLM reads the times of the log lines in the Time Zone of the license server.

Counts​

  • Used counts the licenses of the USER elements, not inuse. A feature with inuse="3" and no USER element shows 0 in use.
  • Keep inuse equal to the sum of number_of_lics of the feature's USER elements. When the USER elements hold more licenses than inuse, OpenLM SLM can drop all the sessions of the feature for that report, and Used shows 0 for it.
  • When the sessions of a feature hold more licenses than total plus overdraft, OpenLM SLM keeps sessions up to that number and drops the others.
  • total="-99" has no limit, so OpenLM SLM keeps every session.
  • Don't send a feature twice with the same five values when one of them has total="-99": OpenLM SLM then shows the other total, not Unlimited.

What makes a feature​

OpenLM SLM tells features apart by name, vendor, version, additional_key, and license_type, and compares the values with their case: Plotter and plotter are 2 features. Two FEATURE elements with the same five values count as one feature, and OpenLM SLM adds up their totals.

What makes a session​

OpenLM SLM follows a session from one report to the next by its user, computer, start time to the second, borrowed, and number_of_lics, within one feature. When one of these changes, the session ends and a new one starts.

  • A USER without start_time_utc starts at the first report that lists it.
  • A USER whose start time is later than the report doesn't appear.
  • 2 USER elements that are equal in these values count as 2 sessions.
  • OpenLM SLM ignores the handle and pswd attributes, which older tools print.
  • A session ends at the first report that no longer lists it.

Names, values, and case​

  • Element and attribute names are case sensitive: SERVER, FEATURE, USER, and ALLOCATION in upper case, attribute names in lower case with underscores, such as additional_key.
  • Numbers are whole numbers without a decimal point or a thousands separator.
  • true, false, ok, and the license types are case sensitive. permanent can be in any case.
  • Leave out attributes that this page doesn't list. OpenLM SLM doesn't read most of them, but a feature_kind or active value that it doesn't expect makes it refuse the whole report. An attribute name in another case, such as Version, is an attribute that this page doesn't list: OpenLM SLM doesn't read its value.
  • Write a double quote in a value as &quot;, an ampersand as &amp;, and a less-than sign as &lt;.

Characters and encoding​

Broker reads the output of a command in the default encoding of the Broker machine, which on Windows is the Windows code page, for example Windows-1252 on English Windows. A tool that prints UTF-8 shows letters outside ASCII as other characters, for example Zoë as Zoë.

To avoid this, print only ASCII characters, and write every other letter as an XML character reference with its Unicode number, for example Zo&#235; for Zoë. The PowerShell starter script in OpenLM Generic does this.

When Broker reads the report from a web address, it decodes the answer in the encoding that the charset of its Content-Type header names. Without a charset, Broker reads the answer as ISO-8859-1, so serve a UTF-8 report with Content-Type: text/xml; charset=utf-8.

One document​

The output is one XML document and nothing else. A line of text before it, or a byte order mark at the start of a command's output, makes OpenLM SLM refuse the report. The XML declaration, <?xml version="1.0" encoding="UTF-8"?>, is optional.

Denials and short sessions​

The report shows who uses a license when Broker reads it. To report denied requests, and sessions that start and end between 2 reads, write one line for each event to a log file that Broker reads next to the report. OpenLM Generic describes how to add the log file in Broker.

Each line has the shape of a FLEXlm debug log line:

<time> (<vendor>) DENIED: "<feature>" <user>@<computer> (<message> (<code>))
<time> (<vendor>) OUT: "<feature>" <user>@<computer> (<number> licenses)
<time> (<vendor>) IN: "<feature>" <user>@<computer> (<number> licenses)
<time> (<vendor>) TIMESTAMP <month>/<day>/<year>

The parts of a line follow these rules:

  • Time: the time of day, H:MM:SS or HH:MM:SS, at the start of the line, in the Time Zone of the license server.
  • Vendor: in parentheses. It must match the vendor of the feature in the report.
  • Feature: in double quotes. It must be a feature of the report, or OpenLM SLM ignores the denial.
  • User and computer: <user>@<computer>. The username can contain spaces.
  • Message of a denial: free text, which OpenLM SLM keeps as the message of the denial.
  • Code of a denial: optional, a negative and a positive number in parentheses after the message, such as (-4,342). The first number sets the type and the category of the denial. See Denial codes.
  • Number of licenses of OUT and IN: optional, (<number> licenses). Without it, the line counts 1 license.
  • Date: lines carry no date. A TIMESTAMP line gives the date, as month, day, and year, to the lines after it. Write one when the log starts and after each midnight.

The following lines report 2 denials and a session of 20 seconds:

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)

Broker starts at the end of the file when you add it, so it sends only the lines that are written after that. Write each event on one line, and add lines at the end of the file.

Denial codes​

OpenLM SLM sets the type and the category of a denial from the first number of the code, as FLEXlm does. The following table lists the numbers that give a category other than Other:

First numberTypeCategory
-4NoLicenseAvailableLimitReached
-24, -26, -35OtherLimitReached
-101AllLicensesAreReservedForOthersRestrictionOrAuthorization
-38, -39, -89, -104, -194OtherRestrictionOrAuthorization
-1, -2, -3, -5, -8, -9, -10, -11, -13, -18, -21, -25, -30, -37, -54, -55, -56, -114OtherProblemWithLicense
-7, -12, -14, -15, -16, -17, -20, -33, -34, -36, -40, -52, -53OtherLicenseServerError

A denial without a code, or with any other number, gets the type Other and the category Other.

When OpenLM SLM refuses a report​

EasyAdmin shows the problem as the Status of the license server in the License Manager - Servers widget, with the reason when you point at it. Used drops to 0 while OpenLM SLM refuses the report. Data error shows only at the first read of a refused report: when the next report is the same, the status turns back to Up to date, with 0 licenses in use.

What is wrongStatusReason
The output isn't well-formed XML, the root isn't SERVER, a value has the wrong form or case, or a feature has no nameData errorParsing failed. Data format is wrong. Can't convert xml..
The report has no FEATURE elementData errorEmpty features list.
request_time_utc is 90 seconds or more away from the moment Broker ran the toolUnknown, then the time of the report instead of a statusThe gap between RequestTime (from output) and ExecutionTime (executed in Broker) is too big. RequestTime:<time>, ExecutionTime:<time>
server_status isn't okLM downThe LM server is down and your text
server_status is missingLM downThe LM server is down
The tool printed nothing, or the web address answered with an empty bodyUnknownNone

These are examples of reports that OpenLM SLM refuses with the parse failure:

  • A value in the wrong case or form: license_type="floating", borrowed="True", total="five", inuse="", or a license_type that isn't in the list.
  • A root element other than SERVER, such as <server> or <Server>.
  • Text before the report: a line of text, or a byte order mark that a command prints.
  • The same attribute twice in one element, for example 2 linger_time attributes.
  • A number larger than 2147483647, for example a linger_time in milliseconds for 30 days.
  • A FEATURE without name.
  • The output of a failed command, a time-out message, or an HTML error page.

OpenLM SLM accepts a report without the XML declaration, with single quotes around values, with attributes in any order, and with namespace declarations on SERVER. It doesn't read most attributes that this page doesn't list, and it ignores elements whose name differs in case, such as <Feature>: the feature in such an element is missing from the report.

A feature without a vendor attribute isn't refused with a status: the license server stays Up to date, but OpenLM SLM takes none of the features of that report.

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.