---
title: "Slurm license management with OpenLM LicOps | OpenLM"
description: "OpenLM LicOps connects Slurm to your license servers, checking each job at submission and at start, and recording why a job ran, waited or was refused."
url: https://www.openlm.com/integrations/slurm/
---

1.  [Home](https://www.openlm.com/)
2.  [HPC scheduler integrations](https://www.openlm.com/integrations/hpc-schedulers/)
3.  Slurm license management

HPC scheduler integrations

# Slurm license management with OpenLM LicOps

OpenLM LicOps connects Slurm to your license servers. Each job is checked when it is submitted and when it starts, sent to a license server that can serve it, and recorded with the reason it ran, waited or was refused.

[Book a LicOps session](https://www.openlm.com/contact-us/)

## Key facts

OpenLM LicOps adds the connection between Slurm and your license servers that Slurm does not provide on its own.

Connects through

An sbatch wrapper, controller prolog and epilog hooks, and the Licenses= line in slurm.conf

Replaces

Scripts that copy lmstat counts into Slurm

Who it's for

Slurm administrators, HPC leads and license administrators

## What is Slurm?

Slurm is an open-source workload manager used on many of the world's HPC clusters. It decides which job runs on which nodes, and when. It is developed by SchedMD.

## How Slurm handles licenses today

Slurm has two kinds of licenses. Local licenses are a fixed count in slurm.conf. Remote licenses are a count stored in the Slurm database with sacctmgr, which can be shared between clusters.

Either way, Slurm keeps a counter. A job asks for licenses with sbatch -L, and Slurm keeps it pending until the counter shows enough free.

## Where Slurm falls short on licenses

-   **It's a counter, not a connection:** Slurm's own documentation says remote licenses don't integrate with third-party license managers by themselves. Slurm never asks the license server.
-   **Keeping the count right is your script:** To keep the count in step with the license server, sites write scripts that read lmstat and update Slurm. Those scripts break, lag and race.
-   **Users outside Slurm aren't seen:** Desktop and interactive users take licenses Slurm thinks are free. The job starts and fails on a denial.
-   **One server per request:** Remote licenses are requested by name and server. Slurm won't pick another license server that has the license free.
-   **Denial storms:** Jobs that start without a license retry the checkout from every node at once. The flood of requests and denials slows or crashes the license server for everyone.
-   **No reason, no record:** When a job fails on a license, there's no single record of why. Users open tickets, admins read logs.

## One license pool, interactive and HPC together

Slurm's license count only knows what was declared to it. LicOps decides from total minus what the license manager reports in use, desktop users included, minus jobs already admitted, so a Slurm job never gets a license an engineer just opened on a desktop.

## Every license manager in your company, one set of rules

LicOps decides from OpenLM Platform, which monitors 100+ license managers: FlexNet Publisher (FlexLM), RLM, DSLS, Sentinel, LM-X and more. Routing and failover apply to TCP-based network license managers.

## What OpenLM LicOps adds

-   **Checks before the job takes compute:** LicOps checks the license when the job is submitted, again when it starts, and releases it when the job ends. A job no longer holds nodes while it waits for a license.
-   **No job takes compute without its license:** A job that can't get its license never takes nodes and then fails. Today it is refused at submission with a clear message; waiting in the queue is coming next.
-   **Stops denial storms:** When jobs start without a license, every one of them retries the checkout. The license server is flooded with requests and denials, a denial storm, and slows down or fails for everyone, desktop users included. LicOps admits a job only when its license is there, and paces the checkouts of the jobs it admits, so the storm never starts.
-   **Paces checkouts with throttling:** A throttle rule sets how fast checkouts may reach each license pool. When a whole job array starts at once, the extra checkouts wait a moment in order instead of stampeding the vendor daemon. Jobs are deferred, never denied.
-   **Picks the license server that can serve the job:** If you run more than one license server, LicOps sends each request to one that can serve it. Your rules can prefer a server, keep jobs off a server, try servers in order, or refuse the request.
-   **Backup when a license server fails:** Set a primary and a backup server for each connection. LicOps switches when the failure threshold is reached, and switches back automatically. This applies to TCP-based network license managers.
-   **Your rules, your priorities:** Rules decide where and how fast: Deny, Force, Prefer or Exclude a server, Cascade from primary to backup to pay-per-use, Round Robin, Weighted Round Robin and Throttle. Each has conditions and a priority, can be switched on and off, and can be limited to dates, for example before a tape-out. Your FlexLM options file INCLUDE and EXCLUDE lists are applied at admission too.
-   **Every job leaves a record:** Each license session carries the job name, queue, account and cluster. When a job waits or is refused, the record says why. No more piecing it together from scheduler and license logs.
-   **Refusals show up as denials:** Every request LicOps refuses is reported as a denial, in the same reports as license-server denials. You see the real demand, not just what got through.
-   **You decide what happens if LicOps is unreachable:** Choose fail-open (jobs run and are logged) or fail-closed (jobs wait). Jobs never hang on a slow answer: the call times out after 2 seconds by default.

## How LicOps connects to Slurm

1.  **Submit.** The ol-sbatch wrapper on the login nodes asks LicOps to admit the job, with its --licenses request.
2.  **Start.** A PrologSlurmctld hook on the controller confirms the license when Slurm dispatches the job.
3.  **End.** An EpilogSlurmctld hook releases it, however the job ends.
4.  **Checkout.** Optionally, a TaskProlog routes the application's license checkout through LicOps.

OpenLM supplies the Slurm adapters and an install script. The hooks need only curl and jq on the controller.

## Slurm on its own, and with LicOps

Slurm on its own

With OpenLM LicOps

Knows what the license server has free

No. A count you keep in step yourself

Yes. Checks license availability before the job takes compute

Interactive and batch users

Separate: desktop use isn't seen

One license pool, one set of rules

More than one license server

You name one server per request

Sends the request to a server that can serve it

License server fails

Jobs fail

Switches to the backup server

Priorities and rules

Partitions and QOS, not license-aware

License rules with conditions, priority and dates

Why a job waited or failed

Spread across logs

One record per job

Denial storms

Can happen when many jobs start without a license

Prevented: a job starts only with its license

Checkout bursts from job arrays

All hit the license server at once

Paced per pool by a throttle rule

Refused requests in reports

No

Reported as denials

Cloud burst using owned licenses

Aware of its own counter only

Aware of real availability, desktop included

## Technical notes for Slurm administrators

### Components

Component

Slurm hook

Runs on

Role

ol-sbatch

Wrapper around sbatch

Submit and login nodes, as the user

Admit, before the job reaches Slurm

ol-prolog

PrologSlurmctld

Controller

Dispatch, when the job is allocated

ol-epilog

EpilogSlurmctld

Controller

Release, however the job ends

ol-taskprolog

TaskProlog

Compute nodes

Optional: routes the checkout through LicOps

The controller hooks run as SlurmUser. They are controller-side hooks, not the node Prolog and Epilog.

### How users submit

`ol-sbatch --licenses=matlab:1 my-simulation.sh`  
`ol-sbatch --licenses=matlab:1,abaqus:2 my-job.sh`  
`#SBATCH --licenses=matlab:1` (inside the job script)

-   \--licenses is native Slurm. The generated Licenses= line in slurm.conf declares the names, and a license map links each name to its vendor and feature.
-   Jobs without licenses pass straight through.
-   To keep users typing sbatch, alias it to ol-sbatch on the submit nodes. A job\_submit.lua check can reject license requests that bypass the wrapper. On high-throughput clusters keep that check to the job comment only, since job\_submit.lua runs under slurmctld locks.

### Order of calls

1.  Admit (ol-sbatch): LicOps grants a session before the job is queued and stores it in the job comment. A denied job is never queued.
2.  Dispatch (PrologSlurmctld): the controller confirms the seat when the job is allocated.
3.  Release (EpilogSlurmctld): the session is released whatever the outcome.
4.  Checkout (TaskProlog, optional): LM\_LICENSE\_FILE points at LicOps, with the existing value kept as a fallback.

For jobs that need several licenses, each is admitted separately. If any one is refused, the others are released and the submission is rejected.

### Requirements

-   LicOps reachable on port 8100 from the controller and every submit and login node
-   curl and jq on those hosts
-   Root access to edit slurm.conf and run scontrol reconfigure
-   The installer (install-slurm-adapters.sh) is run for both the controller and the submit role. It backs up slurm.conf and never overwrites an existing prolog or epilog.

Full setup guide: [https://www.openlm.com/documentation/cloud/deployment-operations/licops/integrations/](https://www.openlm.com/documentation/cloud/deployment-operations/licops/integrations/)

## Cloud burst: use the licenses you already own

Often the licenses are free but the cluster is full. LicOps sends those jobs to cloud compute, so licenses you already paid for keep working instead of sitting idle.

It bursts in your own cloud account, on your contract, to your own license servers.

Which scheduler, cloud and instance types do you run? [Contact us](https://www.openlm.com/contact-us/) to check your platform.

On Slurm, cloud nodes are part of the cluster through Slurm's own power saving. Slurm still decides where the job runs; LicOps makes sure the license is there when it starts.

## HPC license reporting

Every license session carries its job, array task, queue, account and project. Refused requests, true denials, contention and chargeback in dollars feed OpenLM reporting in near real time, and your own BI tools.

More: [HPC license reporting](https://www.openlm.com/integrations/hpc-license-reporting/).

## Coming next

Slurm and LSF jobs will wait in the queue until their license is free, then start in order, as PBS jobs do today.

## What changes, by team

Team

Without OpenLM

With OpenLM

HPC and platform leads

Jobs start when both the license and the nodes are ready. Fewer stalled and failed jobs, less idle hardware.

Jobs start when both the license and the nodes are ready. Fewer stalled and failed jobs, less idle hardware.

License administrators

Manual reconfiguration and log hunting

Rules pick the server, a backup takes over on failure, and every job has a record. No manual reconfiguration or log hunting.

Engineers

A job can start on a Friday night and fail on a license

A job either gets its license or is refused at submission with a clear reason. No job starts on Friday night and fails on a license.

Finance and procurement

Buying decisions made without full visibility into refused requests

Real demand, including refused requests, per project. Buy licenses for the real peak, and don't buy licenses when the bottleneck is compute.

## License managers you'll typically find on HPC clusters

-   [FlexNet Publisher (FlexLM)](https://www.openlm.com/supported-software/flexnet-publisher-flexlm-license-management-with-openlm/)
-   [Reprise RLM](https://www.openlm.com/supported-software/reprise-license-management-rlm-and-optimization-with-openlm/)
-   [Dassault DSLS](https://www.openlm.com/supported-software/master-your-catia-and-enovia-assets-specialized-control-for-dsls/)
-   [Sentinel RMS](https://www.openlm.com/supported-software/sentinel-rms-license-management-with-openlm/)
-   [LM-X](https://www.openlm.com/supported-software/lm-x-license-management-with-openlm/)
-   [Altair License Manager](https://www.openlm.com/supported-software/advanced-license-management-for-altair-units-with-openlm/)
-   [LS-DYNA](https://www.openlm.com/supported-software/ls-dyna-license-management-with-openlm/)
-   [IBM LUM](https://www.openlm.com/supported-software/ibm-lum-license-management-and-optimization-with-openlm/)

LicOps decides from OpenLM Platform data for each of these. Routing and failover apply to TCP-based network license managers. All supported license managers: [https://www.openlm.com/license-manager-capabilities/](https://www.openlm.com/license-manager-capabilities/)

## Low-risk rollout

-   Uses the scheduler's own hooks. Nothing in the scheduler, the applications or the license servers is replaced.
-   The installer backs up your configuration and never overwrites an existing hook. The uninstaller reverses the install.
-   Fail-open is available: if LicOps can't answer within 2 seconds, jobs run and are logged.
-   Start on one queue, see the results on your own data, then widen.

## Where to start

Every environment is different: its scheduler, its license managers and its rules. A solution engineer shows LicOps on a setup like yours.

[Book a LicOps session](https://www.openlm.com/contact-us/)

## Questions and answers

Does Slurm talk to FlexLM by itself?

No. Slurm's remote licenses are a counter stored in the Slurm database. Slurm's documentation says they don't integrate with third-party license managers by themselves. LicOps adds that connection.

Does LicOps prevent license denial storms?

Yes. A denial storm is a flood of checkout requests and denials from jobs that started without a license. LicOps admits a job only when its license is there, so the retries never happen, and a throttle rule paces checkouts per license pool so a job array can't stampede the vendor daemon.

Do we still need scripts that update Slurm's license count from lmstat?

No. LicOps checks license availability itself when the job is submitted and when it starts.

Which Slurm hooks does LicOps use?

An sbatch wrapper on the login nodes, PrologSlurmctld and EpilogSlurmctld on the controller, a Licenses= line in slurm.conf, and optionally a TaskProlog on the compute nodes.

What happens to a Slurm job when no license is free?

LicOps refuses it at submission, before it is queued, with a clear message such as "OpenLM: licence admission denied for MLM:MATLAB." It never takes nodes and then fails.

Does LicOps work with Slurm in the cloud?

Yes. Cloud nodes join through Slurm's power saving, and LicOps checks the license when the job starts on them.

Do engineers need to change how they submit jobs?

They submit through the wrapper and state the licenses they need, as they would with sbatch -L. Everything else stays the same.

## Links

-   [All HPC scheduler integrations](https://www.openlm.com/integrations/hpc-schedulers/)
-   [IBM Spectrum LSF](https://www.openlm.com/integrations/lsf/)
-   [OpenPBS and PBS Professional](https://www.openlm.com/integrations/pbs/)
-   [Kubernetes](https://www.openlm.com/integrations/kubernetes/)
-   [HPC license reporting](https://www.openlm.com/integrations/hpc-license-reporting/)
-   [OpenLM LicOps for HPC](https://www.openlm.com/product/openlm-licops-for-hpc/)
-   [LicOps vs built-in scheduler license management](https://www.openlm.com/comparison/licops-vs-scheduler-license-management/)
-   [Semiconductor & EDA](https://www.openlm.com/industry/openlm-for-semiconductor-eda/)
-   [Automotive & Mobility](https://www.openlm.com/industry/automotive/)
-   [Aerospace, Space & Defense](https://www.openlm.com/industry/openlm-for-aerospace-space-defense/)
-   [Energy, Oil & Gas](https://www.openlm.com/industry/openlm-for-energy-oil-gas/)
-   [OpenLM for the CTO and VP Engineering](https://www.openlm.com/for/cto/)
-   [OpenLM for the CFO](https://www.openlm.com/for/cfo/)
-   [Supported license managers](https://www.openlm.com/license-manager-capabilities/)
-   [OpenLM for the Chief Procurement Officer](https://www.openlm.com/for/procurement/)
-   [AI FinOps](https://www.openlm.com/ai-finops/)
-   [OpenLM MCP connector](https://www.openlm.com/features/openlm-mcp-connector/)
-   [License harvesting](https://www.openlm.com/features/license-harvesting/)
-   [OpenLM for ServiceNow](https://www.openlm.com/openlm-for-servicenow/)

Last updated 26 Nov 2026 · [Read this page as Markdown](https://www.openlm.com/integrations/slurm/index.md)
