Main Content

监控网络许可证管理器

本主题介绍可用于管理网络许可证管理器的几个实用工具。有关这些实用工具的详细信息,请参阅 MATLAB® 安装中包含的 PDF 格式的 License Administration Guide (matlabroot\etc\LicenseAdministration.pdf)。

LMTOOLS 仅适用于 Windows® 计算机。所有操作系统都可以使用命令行实用工具。

使用 LMTOOLS(仅限 Windows)

在 Windows 计算机上,FlexNet® Publisher Licensing 包含一个名为 LMTOOLS 的工具。使用 LMTOOLS 可以执行许多许可证管理任务,例如:

  • 获取网络许可证管理器的状态。

  • 启动和停止网络许可证管理器。

  • 将网络许可证管理器配置为服务。

为了说明,下例显示了如何使用 LMTOOLS 查看网络许可证管理器的当前状态:

  1. 双击 matlabroot\etc\$ARCH 文件夹中的 lmtools.exe 文件启动 LMTOOLS,其中 matlabroot 为 MATLAB 安装文件夹,$ARCH 为特定于平台的子文件夹,例如 win64

  2. 选择 Server Status 选项卡。

  3. 点击 Perform Status Enquiry 按钮。LMTOOLS 显示的信息与您输入 lmutil lmstat -a 命令时显示的信息相同。

    LMTOOLS dialog box, displaying the status of the license manager

使用命令行实用工具

FlexNet 许可包含一组许可证管理实用工具,可用于启动、停止和监控网络许可证管理器。

在 Windows 计算机上,FlexNet 会将所有实用工具打包在一个名为 lmutil.exe 的命令行可执行文件中。此程序位于 matlabroot\etc\$ARCH 文件夹中,其中 matlabroot 为 MATLAB 安装文件夹,$ARCH 为特定于平台的子文件夹,例如 win64。例如,要运行网络许可证管理器状态检查,请打开 DOS 命令行窗口,然后运行 lmutil 并将 lmstat 指定为参量:

lmutil lmstat -a -c "C:\Program Files\MATLAB\R2024a\etc\license.dat"

-a 选项请求详尽列表。另外,还必须包含 -c 选项以指定要使用的许可证文件。此选项必须与每个 lmutil 选项配合使用。如果安装路径包含空格,请将路径括入引号中。下面列出了部分返回信息。

lmutil - Copyright (c) 1989-2018 Flexera Software Inc. All Rights Reserved.
Flexible License Manager status on Fri 12/17/2021 10:11

[Detecting lmgrd processes...]
License server status: 27000@lmsvr-837962
License File(s) on lmsvr-837962: C:\Program Files\MATLAB\R2024a\etc\license.dat:

  lmsvr-837962: license server UP (MASTER) v.11.16.2

Vendor daemon status (on lmsvr-837962):

    MLM: UP v11.16.2

Feature usage info:

Users of MATLAB: (Total of 5 licenses available)

Users of SIMULINK: (Total of 5 licenses available)

Users of Control_Toolbox: (Total of 5 licenses available)

Users of Identification_Toolbox: (Total of 5 licenses available) 

要查看 lmutil 包中的所有实用工具列表,请键入:

lmutil -h

要获取特定实用工具的帮助,请键入该实用工具的名称并带上 -h 选项,如下例所示:

lmutil lmstat -h

在 Linux 计算机和 macOS 计算机上,这些许可证管理实用工具是单独的可执行文件,位于 matlabroot/etc 文件夹中。例如,要查看网络许可证管理器的状态,请使用 lmstat 实用工具,如下所示:

lmstat -a

lmutil - Copyright (c) 1989-2018 Flexera Software Inc. All Rights Reserved.
Flexible License Manager status on Fri 12/17/2021 10:11

License server status: 27000@lmsvr-837962
License File(s) on lmsvr-837962: /usr/local/MATLAB/R2024a/etc/license.dat:

  lmsvr-837962: license server UP (MASTER) v.11.16.2

Vendor daemon status (on lmsvr-837962):

    MLM: UP v11.16.2

Feature usage info:

Users of MATLAB: (Total of 5 licenses available)

Users of SIMULINK: (Total of 5 licenses available)

要获取特定实用工具的帮助,请使用 -h 选项,如下例所示:

lmstat -h

下表列出了所包含的最有用的许可证管理工具的名称。

实用工具说明

lmdiag

诊断许可证签出问题。

lmdown

关闭许可证服务器节点上的所有许可证守护进程(lmgrd 和所有供应商守护进程)。

lmhostid

报告系统的主机 ID。

lmreread

使网络许可证管理器重新读取许可证文件,然后启动任何新的供应商守护进程。

注意

当您使用 lmreread 重新处理基于用户的许可证文件时,对关联的网络许可证管理器选项文件中的 INCLUDE 语句所做的更改将在 15 分钟延迟后生效。

lmstat

显示所有网络许可活动的状态。

lmswitchr

切换到另一个报告日志文件。

lmver

确定库或二进制文件的版本。

致谢

本主题列出了网络许可证管理器供应商守护进程中所使用内容的版权所有者。

MD5

MD5 derived from RSADSI MD5 Message-Digest Algorithm.Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991.All rights reserved.

License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest algorithm" in all material mentioning or referencing this software or this function.

License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work.

RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose.It is provided "as is" without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this documentation and/or software.

相关主题