Bladed Knowledge Base

Network license not found on Linux machine
Category: Licencing and dongles

Problem

Bladed versions affected: all current 4.x Linux versions of dtbladed 

Date of last article update: 2nd September 2022

=========================================================================

When trying to run dtbladed on Linux, the license server is accessible (i.e. the IP address can be resolved), but the license itself is not being picked up successfully by dtbladed.

Solution

If the license server is visible from the Linux machine, but the license itself is not being picked up successfully, there may be an issue with the local HASP license runtime on the Linux machine. The are three checks that can be done to check the status of the license runtime:

- Make sure that the license runtime is active (check the status of the 'aksusbd' service)

- Make sure the runtime is configured correctly (i.e. allows access to remote server, licence server IP is specified correctly, access to Admin API is allowed). This can be done by checking the contents of the '/etc/hasplm/hasplm.ini' file. If any changes are made to the .ini file, the 'aksusbd' service must be restarted for the changes to take effect.

- Check that the licence key from the license server is found by the license runtime (see example script below for retrieving list of discovered keys using Python from command line):

import requests

xml = """<haspscope>

<vendor><id>55600</id></vendor>

</haspscope>

<admin>

<hasp>

  <element name="vendorid" />

  <element name="haspid" />

  <element name="typename" />

  <element name="local" />

  <element name="localname" />

</hasp>

</admin>

"""

headers = {'User-Agent': 'SentinelLDK', 'ACCEPT': '*/*'} # set user agent to be accepted by the license manager

print(requests.post('http://localhost:1947/adminapi/get', data=xml, headers=headers).text)





Keywords Licence; license; HASP; Linux;