- Revenera Community
- :
- FlexNet Operations
- :
- FlexNet Operations Forum
- :
- Customer Portal, FNE Cloud license server, process to see available licenses.
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Having difficulty finding a way to see remaining available licenses.
I can find out (in a long way) by going to:
Devices > Select the device
View > View Served Devices
Click on each Served Device > find out "Count"
accumulate the "Counts" and then check against "Qty mapped" for the Server .
I am assuming there is an easier way to do this. But I am new to Flexera and need help
Also how do you release a license that is checked out but forgotten to be released (by a Customer Portal admin)
Accepted Solutions


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ertugrul ,
You seem close, yet might be missing steps 1 and 2 (detailed below).
Steps:
1. Add a User with Portal Admin User Role permissions to the entitled account with a CLS.
2. Set a Password for CLS by Portal Admin User Role in Customer Portal
3) /authorize REST API
4) /features REST API
++++++++++++++++++++++++++++++++++
More detailed steps:
1. For the entitled account, please add a User with the "Portal Admin User Role" enabled.
2. Now with this User account above, log into the Customer Portal, locate your CLS device and from the "Action" menu, pull down and "Set Password".
From here, you can use the REST APIs.
3. Authorize - https://flexXXXX.compliance.flexnetoperations.com/api/1.0/instances/XXXXXXXXXXXX/authorize using a body:
{
"user":"admin",
"password":"PasswordFromStep2Above"
}
where XXXXXXXXXXXX is your unique CLS ID
4. Features - https://flexxxxx.compliance.flexnetoperations.com/api/1.0/instances/XXXXXXXXXXXX/features


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ertugrul ,
Apologies for the delayed response due to travel and holiday and travel and did I say travel? 😉
cURL to delete clients looks feasible based upon the documentation. There is one example (not your use case though) in attachments.
The command to delete (spitballing)
curl -X DELETE --url licenseServer_baseURL/clients/{id}


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello @ertugrul ,
The password you set for the Cloud License Server in the Customer Portal is for the user "admin". Please use "admin" instead of userx@gmail.com to authorize.
Thanks,


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ertugrul ,
Did some more digging into using curl to authorize. This format worked:
"expires" : "2019-09-28T12:24:43.258Z",
"token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImlzcyI6IkNVTDY4TUhaWEFVRCIsImlhdCI6MTU2OTU4NzA4MywiZXhwIjoxNTY5NjczNDgzLCJyb2xlcyI6IlJPTEVfQURNSU4sUk9MRV9EUk9QQ0xJRU5ULFJPTEVfUkVBRCxST0xFX1JFU0VSVkFUSU9OUyIsInhzcmZUb2tlbiI6ImEyNGY3Zjg0LWU3YmEtNDBmZC05ZThiLTQ0YWNlMTY0ZTcxOCJ9.AB1SaFitfnPUwbsKDG8uNXBUGSUtkzcPsyTwNrODDe1BvX3IaKn7gPWIobHCXp_ZBtiqRPek5YuPGA04ERJrNx"
}


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ertugrul ,
Glad to hear you were able to successfully view the features. You definitely need the referenced License Server Producer Guide to get access to the REST API documentation as it has the information you are requesting.
If you look at your response from /features you will see that each licensed feature has an associated id. You can then use that id to see all devices/clients which currently have a license for that feature. To do this send the request to /features/{featureid}/clients. Here's an example request & response for devices which have a license for a feature with id 179837:
curl -k -X GET -H "Content-type:application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImlzcyI6IkNVTDY4TUhaWEFVRCIsImlhdCI6MTU2OTU4NzA4MywiZXhwIjoxNTY5NjczNDgzLCJyb2xlcyI6IlJPTEVfQURNSU4sUk9MRV9EUk9QQ0xJRU5ULFJPTEVfUkVBRCxST0xFX1JFU0VSVkFUSU9OUyIsInhzcmZUb2tlbiI6ImEyNGY3Zjg0LWU3YmEtNDBmZC05ZThiLTQ0YWNlMTY0ZTcxOCJ9.AB1SaFitfnPUwbsKDG8uNXBUGSUtkzcPsyTwNrODDe1BvX3IaKn7gPWIobHCXp_ZBtiqRPek5YuPGA04ERJrNx" https://flexNNNN.compliance.flexnetoperations.com/api/1.0/instances/yourCLSID/features/179837/clients
[ {
"id" : 967863608,
"usageKind" : "CONCURRENT_USAGE",
"client" : {
"id" : 441852507,
"hostid" : {
"hostidValue" : "MyDevice1",
"hostidType" : "STRING"
},
"updateTime" : "2019-09-27T17:31:21.918Z",
"servedStatus" : "NORMAL",
"hostType" : "FLX_CLIENT",
"machineType" : "PHYSICAL",
"trusted" : false,
"correlationId" : "d6e10cea-bacc-4f8d-8ab9-533e6c34d595",
"collectedHostIds" : "STRING MyDevice1",
"requestOperation" : "REQUEST",
"requestHostid" : {
"hostidValue" : "MyDevice1",
"hostidType" : "STRING"
},
"serverHostid" : {
"hostidValue" : "CUL68MHZXAUD",
"hostidType" : "STRING"
},
"expiry" : "2019-10-04T17:31:21.918Z"
},
"useCount" : 1,
"reservedCount" : 0
} ]
The response contains id(s) for all clients with this license feature. To return a license for a given client, you will want to send a DELETE to the /clients/{deviceid} endpoint. Here's an example:
curl -k -X DELETE -H "Content-type:application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImlzcyI6IkNVTDY4TUhaWEFVRCIsImlhdCI6MTU2OTU4NzA4MywiZXhwIjoxNTY5NjczNDgzLCJyb2xlcyI6IlJPTEVfQURNSU4sUk9MRV9EUk9QQ0xJRU5ULFJPTEVfUkVBRCxST0xFX1JFU0VSVkFUSU9OUyIsInhzcmZUb2tlbiI6ImEyNGY3Zjg0LWU3YmEtNDBmZC05ZThiLTQ0YWNlMTY0ZTcxOCJ9.AB1SaFitfnPUwbsKDG8uNXBUGSUtkzcPsyTwNrODDe1BvX3IaKn7gPWIobHCXp_ZBtiqRPek5YuPGA04ERJrNx" https://flexNNNN.compliance.flexnetoperations.com/api/1.0/instances/yourCLSID/clients/441852507
The license for this client is now returned to the server license pool.
Note you have the ability to set a policy on the server to determine how frequently devices can be deleted to prevent "dishonest" users from trying to overuse licenses above their entitled quantity.
Best regards,


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ertugrul,
In the License Server Producer Guide there is a section on "Set Policies". You use a PUT with the /configuration endpoint to set a particular policy parameter.
So, let's say you want to enforce a 1day period between client deletions. Using curl this would look like:
curl -k -X PUT -H "Content-type:application/json" -d "{\"licensing.dropClientEnforcedDelay\":\"1d\"}" -H "Authorization: Bearer producertoken" https://flexNNNN.compliance.flexnetoperations.com/api/1.0/instances/yourCLSID/configuration
Notice you cannot use the token obtain by authenticating with admin credentials as you don't want your end customers to be able to modify this policy. It must be sent with the token obtained from authenticating with producer credentials. As I referenced in my last post in this thread, you will need to submit a support ticket to get the Producer password set for your instance. Once you submit the ticket please post the Case# here and I can try to get it expedited.
Best regards,


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Customer Portal, FNE Cloud license server, process to see available licenses.
Hi @ertugrul ,
There are REST APIs available to query the status of either a Cloud or Local License server. Please refer to the FlexNet Embedded License Server Producer Guide. The /features endpoint will give you a list of all features along with how many are currently in use. The /clients/{id} endpoint can be used to delete a served client. This will free up the license currently in use by the device.
Best regards,
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Customer Portal, FNE Cloud license server, process to see available licenses.
So I see the devices list as https://flexnnn-uat.flexnetoperations.com/flexnet/operations/fne/hosts/list
I tried the /features and /clilents/{id} endpoint but was not successful.
(tried https://flexnnn-uat.flexnetoperations.com/flexnet/operations/fne/features )
Let me know if this is available only at producer portal or if it is available at end user portal as well.
Also if you could send the URL for "FlexNet Embedded License Server Producer Guide” or a pdf it would help. I am searching for it and could not find it.
Cheers


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ertugrul ,
You seem close, yet might be missing steps 1 and 2 (detailed below).
Steps:
1. Add a User with Portal Admin User Role permissions to the entitled account with a CLS.
2. Set a Password for CLS by Portal Admin User Role in Customer Portal
3) /authorize REST API
4) /features REST API
++++++++++++++++++++++++++++++++++
More detailed steps:
1. For the entitled account, please add a User with the "Portal Admin User Role" enabled.
2. Now with this User account above, log into the Customer Portal, locate your CLS device and from the "Action" menu, pull down and "Set Password".
From here, you can use the REST APIs.
3. Authorize - https://flexXXXX.compliance.flexnetoperations.com/api/1.0/instances/XXXXXXXXXXXX/authorize using a body:
{
"user":"admin",
"password":"PasswordFromStep2Above"
}
where XXXXXXXXXXXX is your unique CLS ID
4. Features - https://flexxxxx.compliance.flexnetoperations.com/api/1.0/instances/XXXXXXXXXXXX/features
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Customer Portal, FNE Cloud license server, process to see available licenses.
I created two users one as admin user at customer portal and second one as regular user. So I guess steps 1 and 2 you recommended is done. Feature
I will try these two suggestions with some quick tools. But these are going to require code changes in the product to make these REST API calls.
So there is no way to do these from the Customer Portal without REST API Calls?
Thanks again this has been really helpful


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Customer Portal, FNE Cloud license server, process to see available licenses.
Hi @ertugrul ,
The REST APIs provide an efficient method to satisfy the use case scenario although requires implementation (via the REST APIs). The OOTB visual method is as you eloquently noted below.
++++++++++++++++++
Devices > Select the device
View > View Served Devices
Click on each Served Device > find out "Count"
accumulate the "Counts" and then check against "Qty mapped" for the Server .
++++++++++++++++++
If you or your integrator need assistance with the REST APIs, let us know. And, if this still hasn't helped with your question, please feel free to update.
Kind Regards,
Eric
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Customer Portal, FNE Cloud license server, process to see available licenses.
preferably from the Customer Portal at FlexNet Operations. (if not from producer portal)
I see the Devices from Devices > View Served Devices
but there there is no way to select a served device and return or remove it.
On View Server page there is "Remove Licenses" or "Return Server" selections under Action. But those return the available license to another server or transfer the license back ( my terminology probably not right) But this operation basically removes a license from the CLS.
My use case is as follows.
User Starts the application and checks out license (in our case they have ability to checkout up to a week) Then if they quit the application their feature license is not returned. If they go to vacation let's say. They have blocked a license from use. I am trying to find a way to return that license to available licenses pool.
Is there a way to do this from FlexNet Operations Portal? Or this also only available from REST API?


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Customer Portal, FNE Cloud license server, process to see available licenses.
Hi @ertugrul ,
Thanks for the reminder on the second part.
Yes, dropping or removing features from a client requires the Producer to manage the desired policy instead of your customer via Customer Portal, which could lead to serious implications of license leakage (intended or unintended overuse).
The 2 API approaches are:
1. API via one of the native (C, .NET or JAVA) SDKs via an API implementation, which is essentially sending an empty capability request (no AddDesiredFeatures) to CLS. This is the equivalent of a return.
2. API via REST. This option is mainly for license administrators. Please see an information snippet about the role, ROLE_DROPCLIENT, which I've attached from the "License Server Administrative Guide".
The REST API is a DELETE operation
https://flexXXXX.compliance.flexnetoperations.com/api/1.0/instances/XXXXXXXXXXXX/clients/{Id}
where Id at the end identifies the client from api/1.0/instances/XXXXXXXXXXXX/clients
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Customer Portal, FNE Cloud license server, process to see available licenses.
Hi
By the same token is there a way to get this another way like using "lmutil lmstat [-c] <blah> "
Or maybe do the API calls through curl. If so could you let me know the curl URL.
Cheers,


- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @ertugrul ,
Apologies for the delayed response due to travel and holiday and travel and did I say travel? 😉
cURL to delete clients looks feasible based upon the documentation. There is one example (not your use case though) in attachments.
The command to delete (spitballing)
curl -X DELETE --url licenseServer_baseURL/clients/{id}