Installing OpenLM Broker on Unix / Linux - OpenLM Software License Management
Israel +972 4 6308447         USA +1 619 831 0029              JAPAN +81 505 893 6263 担当:萩原

Installing OpenLM Broker on Unix / Linux

You are here:
< All Topics

This document describes how to install or upgrade OpenLM Broker on Linux/Unix-based systems for different types of distributions that use both systemd and alternative init systems. The instructions in this guide have been tested on Ubuntu 18.04 LTS, however they should be applicable to other distributions as well.


1. System Requirements

A working install of JDK must be present on the machine. Consult the system requirements page for the correct version.


2. Installing Broker

Depending on your Linux distribution, there are two ways of installing OpenLM Broker:

  • For systems that use systemd, section 2.2 describes how Broker can be installed as a service
  • For systems without systemd, section 2.3 describes how Broker can be started as a background process


2.1 Preliminary steps

1. Download the latest version of Broker for Unix/Linux from the OpenLM website downloads section.

2. Extract the archive (OpenLM_Broker_#.#.#.#.tar.gz) to a convenient location.

3. Open the file in your editor of choice. This file holds all the variables required for Broker to operate. It is mandatory to modify the JAVA_HOME variable so that it points to the path of your JDK 11 install.

The JAVA_HOME path must not end with a trailing slash.

Optionally, you can also edit the BROKERSRVNAMEUSER variable in case you need to launch the service from an account that is different from “root”. In this case you must ensure that all the files in the “OpenLM_Broker_X.X.X.X” folder have their ownership reassigned to the new user.

The BROKERSRVNAME variable can be changed when you want to install multiple instances of OpenLM Broker in parallel.

Example file:

#!/usr/bin/env bash

# Edit this file and customize service name in order to install multiple Broker services in parallel




#Change JAVA_HOME to point at installation folder

[[ -z "$JAVA_HOME" ]] && JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

4. Save the file and continue following the installation steps below, depending on your Linux distribution.


2.2 Installing Broker as a service

If your Linux version supports systemd, the following steps will install OpenLM Broker as a service which starts automatically on system start up:

1. Install the Broker as a service:

sudo ./ install

2. Test the status of the Broker service:

sudo ./ status

3. Run the Broker detection script as per the instructions described in section 4 of this document (“Configuring Broker with”). Alternatively, if your Linux install has a desktop user interface, you can run the GUI Broker Configuration tool with:

sudo ./ config


2.3 Running Broker as a background process

If your Linux version does not support systemd, the following steps will run OpenLM Broker as a background process instead:

1. Run the Broker process with:

sudo ./

To open the Broker configuration screen:

sudo ./


An older version of the script is provided in the Linux OpenLM Broker archive in This script can be used to start the Broker process on systems that do not or cannot have it installed as a service. All commands as described in section 4 are identical, except for “install” and “uninstall”.


3. Upgrading an existing Broker installation

To upgrade an existing installation of OpenLM Broker:

  1. Download the latest version of OpenLM Broker for Unix/Linux from the OpenLM Downloads section.
  2. Remove the current Broker installation
    • If using systemd, uninstall the current Broker services with:
      ./ uninstall
    • If you are not using systemd, stop the Broker process:
      ./ stop
  3. Extract the archive (OpenLM_Broker_#.#.#.#.tar.gz) to a convenient location.
  4. Copy the broker.xml and files from the previous Broker installation folder to the new folder, overwriting if required.
  5. Install the Broker services for the new version from the new OpenLM_Broker_x.x.x.x folder
    • If using systemd, install the service:
      ./ install
    • If not using systemd, start the process:
      ./ start


IMPORTANT: If your OS does not have systemd, you also need to replace with the older script from the archive available inside the main Broker archive.

It’s good practice to verify that the settings and license servers have remained the same in the GUI (if your Linux install has one) by running ./ config as well as checking that the Broker-monitored license managers are showing up in EasyAdmin’s License Servers window.


4. commands

Command name Description
install Installs OpenLM Broker as a service using “systemctl enable”
uninstall Disables an already installed OpenLM Broker instance from starting as a service
start Starts the OpenLM Broker service
stop Stops the OpenLM Broker service
restart Restarts the OpenLM Broker service
status Displays the current status of the OpenLM Broker service
config Launches the GUI Broker configuration tool


Command format:

sudo ./ <command>


5. Configuring Broker with

The function of this script is to detect and add supported license managers ports to the Broker configuration file.

For proper operation, has to be run as root.

There are a couple of behaviors that this script exhibits:

  • Running when no configuration file exists will create a default configuration file with the license manager ports that have been detected as open on the machine.
  • Running when a configuration file already exists will merge the two files, adding any missing port information to broker.xml. A copy of the original file is created as “broker.xml.backup”.

Command format:

sudo ./ <fileName.xml> <On Premise OpenLM Server IP/Hostname>

NOTE: the second parameter is optional and is applicable only when configuring a connection to an on-premise OpenLM Server.



This command adds the ports from addonports.xml to the main broker.xml file.

sudo ./ addonports.xml

This command adds the ports from the specified XML file along with as a connection to a on-premise OpenLM Server, with a default setting to port 7016

sudo ./ broker.xml


5.1 Using to import an OpenLM Cloud configuration

If you want to configure your Broker installation to connect to OpenLM Cloud, you must:

  • Download the attached broker.xml file that was provided in the initial welcome email when you signed up to OpenLM Cloud
  • In case your Broker installation is already configured to actively query one or more license managers, rename the new broker.xml file to avoid overriding the old configuration file (e.g. brokerSaaS.xml)
  • Copy the file to the location where you have installed OpenLM Broker
  • Run
    sudo ./ brokerSaaS.xml
  • Restart the Broker service/process:
    sudo ./ restart


5.2 Alternate configurations

It is also possible to import a configuration file from a different machine. This can be useful when there is a need to configure specific ports but there is no GUI, and thus the graphical Broker configuration tool cannot be used.

In such cases all that is required is to copy the broker.xml file from an already configured Broker machine and import it with the command. If broker.xml already exists on your machine, make sure to rename the copied file:

sudo ./ brokerAddon.xml
Previous Installation of two OpenLM systems “side by side” – KB4012
Next Monitoring licenses in a Linux / Unix environment – KB4101
Table of Contents