---
title: OpenLM Generic format reference
description: "The OpenLM Generic report format for OpenLM Platform: the XML elements and attributes that your tool prints, the values OpenLM Platform accepts, the rules that every report follows, the denial log lines, and the reasons OpenLM Platform shows when it refuses a report."
product: OpenLM Platform
---

Use this reference when you write a tool that reports a license manager to OpenLM Platform 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 Platform as it is.

To connect your tool to Broker and approve the license manager in OpenLM Platform, see [OpenLM Generic](https://www.openlm.com/documentation/cloud/data-collection/connect-license-managers/engineering-lms/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](https://www.openlm.com/documentation/cloud/data-collection/connect-license-managers/engineering-lms/openlm-generic#prepare-the-tool) print the following report, with the parts that most tools need:

```xml
<?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 Platform 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](#times).

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

```xml
<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:

| Attribute | Value | If you leave it out |
| --- | --- | --- |
| `request_time_utc` | The 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 Platform doesn't check the time. |
| `server_status` | `ok`, in lower case, when the license manager works. Any other text means that it doesn't: OpenLM Platform shows the license server as **Down**, with your text as the reason, and 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 **Up**. | The license server shows as **Down**, with no reason. |
| `name`, `port` | Any text. | Nothing changes. OpenLM Platform 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 Platform 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 **Live Statistics** at the next read.

| Attribute | Value | If you leave it out |
| --- | --- | --- |
| `name` | The feature name, which OpenLM Platform shows as **Feature Name**. | OpenLM Platform refuses the whole report. |
| `vendor` | The vendor name, which OpenLM Platform shows as **Vendor Name**. An empty value, `vendor=""`, is accepted. | OpenLM Platform keeps the license server **Up** but takes none of the features of the report, and the sessions of the license server end. Always send the attribute. |
| `total` | The number of licenses, a whole number, shown as **Total**. `-99` means unlimited, shown as **Unlimited**. | `0`. |
| `inuse` | The number of licenses in use. Make it equal the sum of `number_of_lics` of the feature's `USER` elements. See [Counts](#counts). | `0`. |
| `license_type` | One of the [license types](#license-types), spelled exactly as listed. | **Floating**. |
| `exp_date_utc` | The 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. |
| `version` | The feature version, shown as **Version**. | No version. |
| `additional_key` | A 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](#what-makes-a-feature). |
| `product_name` | The product name, shown as **Product Name**. | The product name of another `FEATURE` with the same name, or else the feature name. |
| `overdraft` | Licenses that users can use beyond `total`, shown as **Overdraft**. | `0`. |

OpenLM Platform 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.

| Attribute | Value | If you leave it out |
| --- | --- | --- |
| `name` | The username, shown as **Username**. | The user `generaluser`. |
| `workstation` | The computer name, shown as **Workstation**. OpenLM Platform shows it in lower case. | The computer `unknown`. |
| `number_of_lics` | The 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_utc` | The 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. |
| `borrowed` | `true` 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_time` | For a borrowed license, the length of the borrow period in seconds, counted from `start_time_utc`. OpenLM Platform sets the end of the borrow period to `start_time_utc` plus this value. Send the same value in every report. | The borrow period ends at `start_time_utc`. |

## ALLOCATION

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

| Attribute | Value | If you leave it out |
| --- | --- | --- |
| `name` | The user that the license is assigned to. | |
| `start_time_utc` | The time the license was assigned, in milliseconds since 1970-01-01 00:00:00 UTC. | The allocation has no start date in **Allocations**. |
| `number_of_lics` | Accepted, but OpenLM Platform 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 Platform 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`

OpenLM Platform shows the value as **License Type**. For a `Disposable` feature, **Used** and **Available** in **Live Statistics** show N/A.

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

## Rules that every report follows

OpenLM Platform 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 Platform 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 Platform refuses the report and shows the license server as **Unknown**, with the 2 times in the reason. While the rest of the report stays the same as at the last read, OpenLM Platform doesn't check the time, and the license server stays **Up**.
- 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 Platform 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`. When `start_time_utc` changes, OpenLM Platform ends the session and starts a new one, so a start time that changes at every run makes a new session at every read.
- OpenLM Platform 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 Platform 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 Platform keeps sessions up to that number and drops the others.
- `total="-99"` has no limit, so OpenLM Platform keeps every session.
- Don't send a feature twice with the same five values when one of them has `total="-99"`: OpenLM Platform then shows the other total, not **Unlimited**.

### What makes a feature

OpenLM Platform 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 Platform adds up their totals.

### What makes a session

OpenLM Platform 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 Platform 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 Platform 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 Platform 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](https://www.openlm.com/documentation/cloud/data-collection/connect-license-managers/engineering-lms/openlm-generic#prepare-the-tool) 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 or an empty line before it, or a byte order mark at the start of a command's output, makes OpenLM Platform 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](https://www.openlm.com/documentation/cloud/data-collection/connect-license-managers/engineering-lms/openlm-generic#report-denials-and-short-sessions) describes how to add the log file in Broker.

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

```text
<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 Platform ignores the denial.
- **User and computer**: `<user>@<computer>`. The username can contain spaces.
- **Message** of a denial: free text, which OpenLM Platform shows as the error 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](#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:

```text
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 Platform 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 number | Type | Category |
| --- | --- | --- |
| `-4` | **NoLicenseAvailable** | **LimitReached** |
| `-24`, `-26`, `-35` | **Other** | **LimitReached** |
| `-101` | **AllLicensesAreReservedForOthers** | **RestrictionOrAuthorization** |
| `-38`, `-39`, `-89`, `-104`, `-194` | **Other** | **RestrictionOrAuthorization** |
| `-1`, `-2`, `-3`, `-5`, `-8`, `-9`, `-10`, `-11`, `-13`, `-18`, `-21`, `-25`, `-30`, `-37`, `-54`, `-55`, `-56`, `-114` | **Other** | **ProblemWithLicense** |
| `-7`, `-12`, `-14`, `-15`, `-16`, `-17`, `-20`, `-33`, `-34`, `-36`, `-40`, `-52`, `-53` | **Other** | **LicenseServerError** |

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

## When OpenLM Platform refuses a report

OpenLM Platform shows the problem as the **Status** of the license server in **Live Servers Statistics**, with the reason when you point at it. While a report is refused, **RSQT** keeps the time of the last report that OpenLM Platform accepted, and **Used** is empty.

| What is wrong | **Status** | Reason |
| --- | --- | --- |
| 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 `name` | **Data error** | `Parsing failed. Data format is wrong. Can't convert xml.` |
| The report has no `FEATURE` element | **Data error** | `Empty features list` |
| `request_time_utc` is 90 seconds or more away from the moment Broker ran the tool | **Unknown** | `The gap between RequestTime (from output) and ExecutionTime (executed in Broker) is too big. RequestTime:<time>, ExecutionTime:<time>` |
| `server_status` isn't `ok` | **Down** | Your text |
| `server_status` is missing | **Down** | None |
| The tool printed nothing, or the web address answered with an empty body | **Unknown** | None |

These are examples of reports that OpenLM Platform 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 Platform 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**, but OpenLM Platform takes none of the features of that report.
