确定当前借用了哪些许可证
网络许可证管理器提供了可用于在网络配置中监控所借用的许可证状态的工具。您可以使用 LMTOOLS 应用程序或 lmstat 命令。
在 Windows 系统上使用 LMTOOLS 应用程序
登录到您的许可证服务器。
导航到 matlabroot\etc\win64 文件夹,其中 matlabroot 表示所安装的 MATLAB 的名称。
双击 lmtools.exe 可执行文件以启动 LMTOOLS 应用程序。
在 LMTOOLS 对话框中选择 Server Status 选项卡。
点击 Perform Status Enquiry 按钮。LMTOOLS 将在输出窗口中显示状态信息。在状态信息中,产品列表中的每个条目会显示产品的许可证总数并指出当前签出了多少个许可证。对于借用的许可证,产品条目包含关键字 (linger:XXX),其中 XXX 以秒为单位指定借用期限。
-----------
Status
------------
Flexible License Manager status on Wed 10/5/2016 10:04
[Detecting lmgrd processes...]
License server status: 27000@myserver
License file(s) on myserver: C:\Program Files\MATLAB\R2021a\etc\license.dat:
myserver: license server UP (MASTER) v11.9
Vendor daemon status (on myserver):
MLM: UP v11.9
Feature usage info:
Users of TMW_Archive: (Uncounted, node-locked)
Users of MATLAB: (Total of 5 licenses issued; Total of 1 license in use)
"MATLAB" v14, vendor: MLM
floating license
myserver myserver (v14) (myserver/27000 101), start Wed 10/5 14:37
(linger: 121500)
Users of SIMULINK: (Total of 5 licenses issued; Total of 0 licenses in use)
Users of Control_Toolbox: (Total of 5 licenses issued; Total of 1 license in use)
"Control_Toolbox" v14, vendor: MLM
floating license
anyuser myserver myserver (v14) (myserver/27000 201), start Wed 10/5 14:37
(linger: 121500)
注意
MATLAB Compiler™:即使未借用 MATLAB Compiler,许可证状态信息也可能包含 linger。
在 Windows 系统上使用 lmstat 实用工具
登录到您的许可证服务器并打开 DOS 命令行窗口。打开 DOS 命令行窗口的一种方法是从开始菜单选择运行选项,在文本输入字段中键入 cmd,然后点击确定。
导航到 matlabroot\etc\$ARCH 文件夹,其中 matlabroot 表示所安装的 MATLAB 的名称,$ARCH 表示特定于平台的文件夹。
运行 lmutil 命令,并将 lmstat 指定为参数。(在 Windows® 计算机上,FlexNet® 将其所有许可证管理实用工具打包成一个程序 lmutil。)
以下示例使用 -a 选项显示 lmstat 返回的所有信息。请注意,您还必须使用 -c 选项来指定许可证文件的名称。有关 lmstat 的详细信息,请参阅 FlexNet End User’s Guide。
lmutil lmstat -a -c "C:\Program Files\MATLAB\R2021a\etc\license.dat"
在 lmstat 返回的状态信息中,产品列表中的每个条目会显示产品的许可证总数并指出当前签出了多少个许可证。对于借用的许可证,产品条目包含关键字 (linger:XXX),其中 XXX 以秒为单位指定借用期限。
lmutil - Copyright (c) 1989-2010 by Flexera Software, Inc.
All Rights Reserved.
Flexible License Manager status on Wed 10/5/2016 10:04
[Detecting lmgrd processes...]
License server status: 27000@myserver
License file(s) on myserver: C:\Program Files\MATLAB\R2021a\etc\license.dat:
myserver: license server UP (MASTER) v11.99
Vendor daemon status (on myserver):
MLM: UP v11.9
Feature usage info:
Users of TMW_Archive: (Uncounted, node-locked)
Users of MATLAB: (Total of 5 licenses issued; Total of 1 license in use)
"MATLAB" v14, vendor: MLM
floating license
myserver myserver (v14) (myserver/27000 101), start Wed 10/5 14:37
(linger: 121500)
Users of SIMULINK: (Total of 5 licenses issued; Total of 0 licenses in use)
Users of Control_Toolbox: (Total of 5 licenses issued; Total of 1 license in use)
"Control_Toolbox" v14, vendor: MLM
floating license
anyuser myserver myserver (v14) (myserver/27000 201), start Wed 10/5 14:37
(linger: 121500)
注意
MATLAB Compiler:即使未借用 MATLAB Compiler,许可证状态信息也可能包含 linger。
在 Linux 系统中使用 lmstat
登录到您的许可证服务器。
导航到 matlabroot/etc 目录,其中 matlabroot 为 MATLAB 安装文件夹。
运行 lmstat 实用工具。
lmstat -a -c /usr/local/MATLAB/R2021a/etc/license.dat