cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Retrieve the Host ID String in the FlexNet Embedded Binary License File

How to Retrieve the Host ID String in the FlexNet Embedded Binary License File

Summary

How to Retrieve the Host ID String in the FNE Binary License File

Synopsis

This article aims to show how to retrieve the hostid from a Binary license file using the Flexnet Embedded Client API calls.

Discussion

The following is an example of a Binary License file:
INCREMENT survey fnedemo 1.25 1-jan-2015 uncounted HOSTID=ID_STRING=teststring 
INCREMENT highres fnedemo 1.25 1-jan-2015 uncounted HOSTID=ID_STRING=teststring


To return the hostid it is possible to use the following call getHostIds. As an example modify the View.c sample that is provided so that the following call is performed:
*if(feature.getHostIds() != null) { 
info.append(" HOSTID=\"" + feature.getHostIds() + "\""); 
}


This should then return the following values based on the license file:
Features found in C:\Users\sflynn\Documents\NetBeansProjects\View\license.bin 
highres 1.25 01-Jan-2015 uncounted HOSTID="{STRING=[1234567890]}", Acquisition Status= Not valid for acquisition: Signature didn't pass validation. 
survey 1.25 01-Jan-2015 uncounted HOSTID="{STRING=[1234567890]}", Acquisition Status= Not valid for acquisition: Signature didn't pass validation.
Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 12, 2018 09:33 PM
Updated by: