Skip to main content

Provides an API for interfacing with License Manager Simulator

Project description

ContributorsForksStargazersIssuesMIT LicenseDocumentationContact Us

An Omnivector initiative

omnivector-logo

License Manager Simulator

A License management simulator project for testing license integration in user applications.

About The Project

The License Manager Simulator APIis an REST API that simulates a license server data for use in the development of applications which interface to the license servers.

License servers supported:

  • FlexLM
  • RLM
  • LS-Dyna
  • LM-X
  • OLicense

Installation

To install this project, clone the repository and use docker-compose to run it in containers:

$ cd lm-simulator-api
$ docker-compose up

This will create a container for the API, and also a PostgreSQL container for the database.

The API will be available at http://localhost:8000/lm-sim.

Prerequisites

To use the License Manager Simulator API you must have License Manager Simulator scripts deployed together with a running License Manager Agent.

Instructions for this can be found at the License Manager documentation.

Usage

You can add/remove licenses from the license server API using the online interface at http://localhost:8000/lm-sim/docs. This helps you to make requests directly with the browser into the API, with examples.

Make sure the license name in the API matches the feature name of your license in Slurm and in the License Manager API configuration.

For example:

License Manager Simulator API:

{
  "name": "abaqus",
  "type": "flexlm",
  "total": 1000
}

Slurm:

LicenseName=abaqus.abaqus@flexlm
  Total=1000 Used=0 Free=1000 Reserved=0 Remote=yes

License Manager API configuration:

{
  "id": 1,
  "name": "Abaqus",
  "cluster_client_id": "client_id",
  "features": [
    {
      "id": 1,
      "name": "abaqus",
      "product": {
        "id": 1,
        "name": "abaqus"
      },
      "config_id": 1,
      "reserved": 0,
      "total": 0,
      "used": 0,
      "booked_total": 0
    }
  ],
  "license_servers": [
    {
      "id": 1,
      "config_id": 1,
      "host": "localhost",
      "port": 8000
    }
  ],
  "grace_time": 300,
  "type": "flexlm"
}

The API IP address should go into the license server section of the configuration to ensure the scripts can communicate with the API.

License

Distributed under the MIT License. See the LICENSE file for details.

Contact

Email us: Omnivector Solutions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

license_manager_simulator_api-4.2.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file license_manager_simulator_api-4.2.1.tar.gz.

File metadata

File hashes

Hashes for license_manager_simulator_api-4.2.1.tar.gz
Algorithm Hash digest
SHA256 8764b18e6125c80f2a67353cd6c0e90c8bbf297a50a0f0617c8c1a865c34a5ee
MD5 dbea7bdf849f383673bd3ae4bf1e9c7d
BLAKE2b-256 2b97f651f57b53432dd4c35eb03706199c1b8969938ba7c4cc84bc00d785e274

See more details on using hashes here.

File details

Details for the file license_manager_simulator_api-4.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for license_manager_simulator_api-4.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38cc2c64b70c3017597d9295ac8a9a713ea3a97bf31841ca0d7ce998ca89d6cc
MD5 5d044f687e374081cf08a8c52e46bc49
BLAKE2b-256 9e6c1f16dea199c2c527ebd1933dfeedd903b73546d0bccbfd3754aa9038c5c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page