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

lmstat reports

I'm trying to create a license usage website using the output from lmstat -a. Each feature in the license file has both floating and node locked license. Unfortunately "Total number of licenses issued" shows both license types (node locked and floating). Is there a way to excluded the node locked licenses from the output of lmstat?

 

0 Kudos
(1) Reply
aparashar1
Flexera Alumni

@captain678 , i am afraid that there is no way to figure out from the lmstat output, if the licensing rights are node-locked or floating. However, using FNP API's, you should be able to achieve this.

Sample Code should run something around this could be:

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

for (feats = lc_feat_list(lm_job, LM_FLIST_ALL_FILES | LM_FILTERLIST_ALL_FILES, NULL); feats && *feats; feats++)
{

    confi = lc_get_config(lm_job, *feats );

    if(confi->idptr && confi->idptr->id.data)
        printf(" This feature is node-locked \n\n");
    else
        printf(" The feature is floating \n\n");

}

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

(If my response assists with your questions , then please click "ACCEPT AS SOLUTION" or 'Kudos' so that it help others.)
0 Kudos