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

Actual server/license file used?

Hi !

Is there a way to find out which license file on which server has been used to check out a feature?

I've plowed through the include files and found some structures which include server/license file information, but am not sure how to tell where a specific feature gets its authorization from.

Thanks for helping

Regards

    Christian

13 Replies
Highlighted
Occasional contributor

Re: Actual server/license file used?

Hi again!

Nobody seems to have an answer to my question. I try to reformulate it:

Is there a way to programmatically retrieve the information of how a particular feature has been granted? I.e. server, license filename and -path?

Thank you

Regards

   Christian

0 Kudos
Highlighted
Flexera
Flexera

Re: Actual server/license file used?

The below query in the reporting database, can provide information about which license server(or vendor-daemon) used to check out a feature.

SELECT CATALOG_SECTION_ID, FEATURE_NAME, FEATURE_VERSION, DAEMON, SERVER_HOST FROM RPT_FEATURE

Please let me know if this helps.

Regards.

0 Kudos
Highlighted
Occasional contributor

Re: Actual server/license file used?

Hi @Akshitha !

Thank you for your answer. I did not not know about any sql interface. I was more thinking of just getting the information from the CONFIG structure somewhere (if it is in there...). lmserver, for example. But I'm not sure whether that's the actual used server or only a possible licence path.Do you know? And in case there are 2 license files which could apply,  is there a way to find out which one has been used to check out a feature?

Regards

Christian

0 Kudos
Highlighted
Flexera
Flexera

Re: Actual server/license file used?

Hi,

I don't think there can be 2 license files for the same vendor and same license server. Can you please share a screen shot if you come across such situation? It would be really helpful if you could provide a screen shot regarding the config structure (lmserver) just to be on the same page.

 

Regards.

0 Kudos
Highlighted
Occasional contributor

Re: Actual server/license file used?

Hi Akshitha!

I would like to have the possibility to verify that a license I check out is checked out the way I supect it to be. Having the possibilty to print something like (from inside my program which uses the flexlm libraries)

  • "featureX checked out from serverY using licensefileZ.lic" or
  • "featureX checked out using local file licensefileZ.lic"

would help to ensure that everything went okay.

I hoped to find this information in the typedef CONFIG in lmclient.h. But I may be wrong or there is no possibility to get this information at all?

Thanks for your patience 🙂

Regards

   Christian

 

0 Kudos
Highlighted
Flexera
Flexera

Re: Actual server/license file used?

Christian - can you elaborate on what is meant by checked out by a "local" license file?

0 Kudos
Highlighted
Occasional contributor

Re: Actual server/license file used?

Hi  @kclausen 

Thank you for your answer.

With 'local' I mean a physical license file on the local computer I'm working on without the use of any lmgrd.

With 'server' I mean an lmgrd running on a computer 'somewhere'  ont the net.

I.e. an lmpath like: c:\licenses\somelocalfile.lic;@someremoteserver

 

I would like to know where my program actually checks out a feature

Regards

   Christian

0 Kudos
Highlighted
Occasional contributor

Re: Actual server/license file used?

I know that I can override the lmpath for a certain daemon and that way make sure that only a certain path is used to search for licenses. But I would like to know whether there is a possiblity to find out which license.lic or server actually checked out a feature without setting specific lmpaths

Scenario:

  • I install a licenseNew.lic on a server  with a new feature featureNewxx
  • I forgot that I had a testing licenseNewTesting.lic with featureNew on my local computer

Now I try to checkout featureNew from my program to verify that the licenseNew.lic on the sesrver is correct. The feature will check out nicesly because there exists a local license file with featureNew, but the license file on the server is wrong (because it contains the wrong feature name featureNewxx)

An information like

"featureNew checked out from local file licenseNewTesting.lic"

would help to see the problem

Regards

   Christian

 

 

0 Kudos
Highlighted
Flexera
Flexera

Re: Actual server/license file used?

@chris58  - If a user has a local license file (such as for a Node-Locked license) then the check out of the license would not be recorded by the License Server and therefore not be available for reporting out of the FlexLM Report Logs.

0 Kudos