How can I generate a License Report?
显示 更早的评论
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?
采纳的回答
更多回答(1 个)
Walter Roberson
2026-4-15,18:03
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Manage Products 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!