How can I generate a License Report?
Show older comments
I am aware that I can use the license center to administer my licenses. I would like to see detailed information regarding license usage, is it possible to view this information in a comprehensive report?
Accepted Answer
More Answers (1)
Walter Roberson
on 15 Apr 2026 at 18:03
0 votes
It is possible to create a license usage report by analyzing the output of lmstat https://www.mathworks.com/help/install/ug/network-license-manager-tools.html -- possibly needing to invoke it regularly (such as a cron job.)
To be honest: analyzing lmstat output is a bit of a pain, especially the error handling. If, for example, the license server restarts, then you will get a restart notice in the logs, but you will typically not get any kind of clean "license was returned" notice for the licenses that were in use, so you need to read the restart record and infer that there must have been a license release for all of the licenses that were previously active. Furthermore, I seem to recall that in cases of sudden license shutdown, that there was typically no shutdown record, just a restart record, so you would typically end up inferring that the licenses were in active use between the last recorded activity time and the restart... which can end up attributing several hours use that did not in fact exist.
For these reasons, if you need to analyze license usage for cost center purposes (instead of just to get approximate ideas of who is using the software), then I recommend considering using one of the commecial third-party flexlm license analysis tools.
Categories
Find more on Manage Products in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!