释放License命令
lmutil_x86.exe lmremove -c 1055@Vappcloud-WinS acfd Administrator VappCloud_Win7a.vancloud-corp.com VAPPCLOUD_WIN7A
最后一个displayname 一定要大写
Table of Contents * Previous Chapter * Next Chapter
FLEXlm End User Manual: Chapter 6 License Administration Tools
Chapter 6 License Administration Tools
FLEXlm provides utilities for the license administrator to help manage the licensing activities on the network. These utilities are:
- lmcksum (v2.4 or later) - prints license checksums. (page 40)
- lmdiag (v4.0 or later) - diagnoses license checkout problems. (page 40)
- lmdown - gracefully shuts down all license daemons (both lmgrd and all vendor daemons) on the license server node (or on all three nodes in the case of redundant servers). (page 41)
- lmgrd - the main daemon program for FLEXlm. (page 41)
- lmhostid - reports the hostid of a system. (page 42)
- lmremove - removes a single user's license for a specified feature. (page 43)
- lmreread - causes the license daemon to reread the license file and start any new vendor daemons. (page 44)
- lmstat - helps you monitor the status of all network licensing activities. (page 44)
- lmswitch (VMS only) -switches the debug logfile. (page 44)
- lmswitchr - switches the report log file. (page 45)
- lmver - reports the FLEXlm version of a library or binary file. (page 45)
Beginning in FLEXlm v2.4, all FLEXlm utility programs (except lmgrd) are packaged as a single executable called lmutil. lmutil can either be installed as the individual commands (either by creating links to the individual command names, or making copies of lmutil as the individual command names), or the commands can be run as `lmutil command', e.g. `lmutil lmstat', or `lmutil lmdown'. On Windows or Windows/NT systems, the `lmutil command_name' form of the commands are available. There is also a Windows version of these commands - see Section 6.12.1, `License Administration Tools - LMTOOLS for Windows,' on page 46.
Most lmutil utilities need to know the path to the license file. This can be specified with a `-c license_file' argument, or by setting the LM_LICENSE_FILE environment variable. Otherwise, the default location is used.
6.1 lmcksum
The lmcksum program (FLEXlm v2.4 or later) will perform a checksum of a license file. This is useful to verify data entry errors at your location. lmcksum will print a line-by-line checksum for the file as well as an overall file checksum. lmcksum takes the `-k' switch to force the encryption key checksum to be case-sensitive.
lmcksum will ignore all fields that do not enter into the encryption key computation; thus the server node name and port number, as well as the daemon pathname and options file names are not checksummed. In addition, lmcksum will treat non-case sensitive fields correctly (in general, lmcksum is not case-sensitive).
lmcksum takes an optional daemon name; if specified, only license file lines for the selected daemon are used to compute the checksums.
For FEATURE lines that contain ck=nnn, lmcksum prints simply OK or BAD. This is available for FLEXlm products v4 or higher.
Usage is:
lmcksum [-c license_file]
- -c license_file
- path to the file to checksum. By default lmcksum uses `license.dat' in the current directory (unlike other lmutil commands).
Example output is:
lmcksum - Copyright (C) 1989, 1997 GLOBEtrotter Software, Inc.
lmcksum: using license file `/usr/local/flexlm/licenses/license.dat' 189: SERVER speedy 08002b32b161 2837
166: DAEMON demo C:\flexlm\demo.exe
8: FEATURE f1 demo 1.000 01-jan-99 0 3B2BC33CE4E1B8F3A0BF ``
OK: 231: FEATURE f2demo 1.0 01-jan-0 1 8B1C30015351B7737F5E \
DUP_GROUP=HD ck=231
109: (overall file checksum)
6.2 lmdiag
lmdiag (FLEXlm v4.0 or later) allows you to diagnose problems when you cannot check out a license.
Usage is:
lmdiag [-c license_file] [-n] [feature]
- -c license_file
- path to the file to diagnose.
- -n
- run in non-interactive mode; lmdiag will not prompt for any input in this mode. In this mode, extended connection diagnostics are not available.
- feature
- diagnose this feature only.
If no feature is specified, lmdiag will operate on all features in the license file(s) in your path. lmdiag will first print information about the license, then attempt to check out each license. If the checkout succeeds, lmdiag will indicate this. If the checkout fails, lmdiag will give you the reason for the failure. If the checkout fails because lmdiag cannot connect to the license server, then you have the option of running `extended connection diagnostics'.
These extended diagnostics attempt to connect to each port on the license server node, and can detect if the port number in the license file is incorrect. lmdiag will indicate each port number that is listening, and if it is an lmgrd process, lmdiag will indicate this as well. If lmdiag finds the vendor daemon for the feature being tested, then it will indicate the correct port number for the license file to correct the problem.
See Also: Appendix B, `FLEXLM_DIAGNOSTICS' on page 54.
6.3 lmdown
The lmdown utility allows for the graceful shutdown of all license daemons (both lmgrd and all vendor daemons) on all nodes.
Usage is:
lmdown [-c license_file] [-q]
- -c license_file
- Use the specified license file.
- -q
- Don't prompt or print a header. Otherwise lmdown asks `Are you sure? [y/n]: `.
You should protect the execution oflmdown, since shutting down the servers causes users to lose their licenses. See the `-p' or the `-x' options in Section 6.4, `lmgrd,' on page 41 for details about securing access to lmdown.
When shutting down redundant servers, there is a 1 minute delay before the servers shut down. Do not use `kill -9' to shut down the license servers.
6.4 lmgrd
lmgrd is the main daemon program for FLEXlm. When you invoke lmgrd, it looks for the license file which contains the information about vendors and features. On Unix systems, it is strongly recommended that lmgrd be run as a non-privileged user (not root).
Usage is:
lmgrd [ -app ] [ -c license_file ] [ -t timeout_interval ] [ -l logfile ]
[ -s timestamp_interval ] [ -2 -p ] [ -v ] [ -x lmdown ] [ -x lmremove ]
- -app
- Required for Windows/NT systems.
- -c license_file
- Use the license file named.
- -t timeout_interval
- Sets a timeout interval, in seconds, during which redundant daemons must complete their connections to each other. The default value is 10 seconds. A larger value may be desirable if the daemons are being run on busy systems or a very heavily loaded network.
- -l logfile
- Write the debug log to logfile.
- -s timestamp_interval
- Specifies the logfile timestamp interval, in minutes. The default is 360 minutes.
- -2 -p
- Restricts usage of lmdown, lmreread, and lmremove to a FLEXlm administrator who is by default root. If there a Unix group called `lmadmin' then use is restricted to only members of that group. If root is not a member of this group, then root does not have permission to use any of the above utilities. The `-p' option is available in FLEXlm v2.4 and later.
- -v
- Prints lmgrd's version number and copyright and exits.
- -x lmdown
- Disallow the lmdown command (no user can run lmdown). If lmdown is disabled, you will need to stop lmgrd via `kill pid' (Unix) or CTRL-ALT-DEL and stop the lmgrd and vendor daemon processes (Windows 95). On Unix, be sure the kill command does not have a -9 argument.
- -x lmremove
- Disallow the lmremove command (no user can run lmremove)
The -x lmdown and -x lmremove options are available in FLEXlm v4.0 and later.
6.5 lmhostid
The lmhostid utility reports the hostid of a system.
Usage is:
lmhostid [-n]
The output of this command looks as follows:
lmhostid - Copyright (c) 1989, 1990 Globetrotter Software, Inc.
The FLEXlm hostid of this machine is `69021c89'
With the `-n' argument, no header is printed; only the hostid.
See Appendix A, `Hostids for FLEXlm-Supported Machines'.
6.6 lmremove
The lmremove utility allows you to remove a single user's license for a specified feature. This is only needed when a client node crashes, since that's the only condition where a license is not automatically freed. If the application is active, it will re-checkout the license after it is freed by lmremove.
Usage is:
lmremove [ -c file ] feature user host display
or
lmremove [ -c file ] -h feature host port handle
- -c license_file
- license file
- feature
- name of the feature checked out by the user.
- user
- name of the user whose license you are removing (from lmstat -a).
- host
- name of the host the user is logged in to (from lmstat -a).
- display
- name of the display where the user is working (from lmstat -a).
- port
- port, as reported by lmstat -a
- handle
- handle, as reported by lmstat -a
The user host display port and handle information must be obtained from the output of lmstat -a.
lmremove removes all instances of user on host on display from usage of feature. If the optional `-c file' is specified, the indicated file is used as the license file.You should protect the execution of lmremove, since removing a user's license can be disruptive. See the `-p' or the `-x' options in Section 6.4, `lmgrd,' on page 41 for details about securing access to lmremove.
The -h variation uses the serverhost, port, and license handle, as reported by lmstat -a. Consider this example lmstat -a output:
joe cloud7 /dev/ttyp5 (v1.000) (cloud9/7654 102), start Fri 10/29 18:40
In this example, the serverhost is `cloud9', the port is `7654' and the license handle is 102. To remove this license, issue the following command:
lmremove -h f1 cloud9 7654 102
or
lmremove f1 joe cloud7 /dev/ttyp5
When removing by handle, if licenses are grouped as duplicates, all duplicate licenses will also be removed.
6.7 lmreread
Thelmreread utility causes the license daemon to reread the license file and start any new vendor daemons that have been added. In addition, all pre-existing daemons will be signaled to reread the license file for changes in feature licensing information.
Usage is:
lmreread [-c license_file]
The license administrator may want to protect the execution of lmreread, since removing a user's license can be disruptive. See the `-p' and `-x' options in Section 6.4, `lmgrd,' on page 41 for details about securing access to lmreread.
If you use the `-c' option, the license file specified will be read by lmreread, not by lmgrd; lmgrd rereads the file it read originally. Also, lmreread cannot be used to change server node names or port numbers. Vendor daemons will not reread their option files as a result of lmreread.
6.8 lmstat
The lmstat utility helps you monitor the status of all network licensing activities.
Usage is:
lmstat [-a] [ -A ] [-c license_file] [-f feature] [-i [feature]]
[-S vendor] [-s hostname] [-t value]
- -a
- Display all information
- -A
- List all active licenses
- -c license_file
- Use the license file named.
- -f feature_name
- List users of feature_name.
- -i [feature_name]
- Print information about the named feature, or all features if no feature_name is given. This option is usually not recommended, since the information does not come from the license server, and may not reflect what the server actually supports.
- -S [vendor]
- List all users of vendor's features.
- -s hostname
- Display status of clients running on hostname.
- -t value
- Set lmstat timeout to `value'.
6.9 lmswitch
The lmswitch command is available on VMS only.
Thelmswitch utility switches the debug log file for the daemon serving the specified feature while the daemon is running.
Usage is:
lmswitch feature new-file
- feature
- any feature this daemon supports.
- new-file
- the new file path.
Of course, for this syntax to work, lmswitch needs to be installed as a foreign command.
The new logfile will be opened for write, rather than append, so it is possible to `switch' to the same filename in order to be able to view the old log file.
6.10 lmswitchr
Thelmswitchr utility switches the report writer (REPORTLOG) log file. It will also start a new REPORTLOG file if one does not already exist.
Usage is:
lmswitchr [-c license_file] feature new-file
lmswitchr [-c license_file] vendor new-file [v5.0+ only]
- -c
- license file path
- feature
- any feature this daemon supports
- new-file
- new file path
lmswitchr does not work with FLEXlm v3.0 vendor daemons. Ask your vendor for a later version of their vendor daemon.
6.11 lmver
The lmver utility reports the FLEXlm version of a library or binary file.
Usage is:
lmver filename
- filename
- name of the executable of the product.
For example if you have an application called `spell' type:
% lmver spell
Alternatively, on Unix systems, you can use the following commands to get the FLEXlm version of a binary:
strings file | grep Copy
6.12 License Administration Tools for Windows
6.12.1 License Administration Tools - LMTOOLS for Windows
For the Windows Platforms, an LMTOOLS.EXE Windows program is provided. It has the same functionality as listed in the previous sections but is graphically-oriented. Simply run the program and choose a button for the functionality required. Refer to the previous sections for information about the options of each feature.
6.12.2 The FLEXlmControl Panel
The FLEXlm control panel, FLEXLM.CPL, is an applet that installs into the Control Panel of Windows and is used to control the execution of the FLEXlm license manager. If the software you are installing includes the Control Panel, it will be installed in your Windows System Directory.
The library LMGR325B.DLL needs to be available for FLEXLM.CPL. In this example it is placed in the same directory, but it could be placed anywhere in the system search path.
6.12.3 Controlling LMGRD with the Windows Control Panel
LMGRD.EXE can be run manually or using the Control Panel. FLEXlm for Windows comes with a Control Panel applet for controlling LMGRD.EXE without using the DOS prompt.
6.12.4 Using The Control Panel on NT
To start the FLEXlm Control Panel, open the Control Panel and double-click on the FLEXlm License Manager icon.
From the Control tab you can start, stop, and check the status of your license server. Select the Setup tab to enter information about your license server.
The Service Name of `FLEXlm License Manager' is the default (for backwards compatibility). You should change this to a name that your vendor recommends. Complete the form to configure lmgrd to serve licenses.
The information you enter is stored in the registry under the service name you created:
HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager\Service-Name\...
Select the Control tab and click the Start button to turn on your license server. LMGRD.EXE will be launched as a background application with the license file and debug log file locations passed as parameters.
If you want LMGRD.EXE to start automatically, select the `Use NT Services' box and LMGRD.EXE will be installed as an NT service. You can then use the NT's Services control panel to adjust the start/stop behavior of LMGRD.EXE. Since NT services do not have command line parameters, LMGRD.EXE, when started as a service, locates its service name under `FLEXlm License Manager' in the registry and from there recovers the license file and log file locations. Multiple instances of LMGRD.EXE can be run as services provided each occurrence has a different service name.
You can switch back and forth between different instances of LMGRD.EXE by using the Setup tab and changing the selection in `Service Name'. This is only necessary if you have more than one product licensed with FLEXlm.
The remaining tabs in the control panel allow you a subset of control similar to the LMUTIL.EXE program. The Licenses tab provides information about the license file and the Advanced tab allows you to perform diagnostics and check versions.
6.12.5 Using the Control Panel on Windows 95
The behavior of the control panel applet FLEXLM.CPL is almost identical under Windows 95 and NT. FLEXLM.CPL is located in the Windows\System directory. If you are starting LMGRD.EXE manually from the Control tab, there is no difference between the two. But, since services are not available on Windows 95, the Use NT Service check box is not available. Instead a Start Server at Power-UP check box gives you the option to start the server when the system is booted.
On Windows 95, FLEXlm makes use of a registry feature that launches programs automatically. The `Microsoft\Windows\CurrentVersion\RunServices' registry is used to launch the program LMGRD95.EXE at power-on. This program scans the `FLEXlm License Manager' area of the registry and launches an instance of LMGRD.EXE for each service-name it finds.
If someone switches users (i.e. selects `shutdown' and chooses `close all programs and log on as a different user') on Windows 95, all instances of LMGRD.EXE will be terminated (see Microsoft documentation). This is one of the reasons we do not recommend using Windows 95 as a license server
Table of Contents * Previous Chapter * Next Chapter
释放License命令的更多相关文章
- linux释放内存命令
1.首先查看linux内存使用 #free -m 2.把内存数据同步到硬盘#sync 3.修改 /proc/sys/vm/drop_caches文件 #echo 3 > /proc/sys/vm ...
- Debian的一个命令
dpkg是一个Debian的一个命令行工具,它可以用来安装.删除.构建和管理Debian的软件包.下面是它的一些命令解释:1)安装软件命令行:dpkg -i <.deb file name> ...
- Linux 命令学习之dpkg命令详解
dpkg是一个Debian的一个命令行工具,它可以用来安装.删除.构建和管理Debian的软件包. 下面是它的一些命令解释: 1)安装软件 命令行:dpkg -i <.deb file name ...
- Debian系Linux的dpkg命令
dpkg "是"Debian Packager "的简写.为 "Debian" 专门开发的套件管理系统,方便软件的安装.更新及移除.所有源自" ...
- ubuntu命令总结 持续更新 补充
总结一下Ubuntu常用命令 top sudo apt-get install 软件名 安装软件命令 sudo nautilus 打开文件(有root权限) su root 切换到“root” l ...
- deepin 常见快捷键及常用命令
常用命令 1)安装软件命令行:dpkg -i <.deb file name>示例:dpkg -i avg71flm_r28-1_i386.deb2)安装一个目录下面所有的软件包命令行:d ...
- 026_lsof命令经验总结
一.lsof处理删除文件未释放句柄问题. 但是如果你不知道是哪个文件,或者是很多文件都有这样的情况,那你需要使用如下命令 lsof |grep deleted 注:这个deleted表示该已经删除了的 ...
- linux 磁盘空间被占满但找不到目标文件的问题处理 lsof命令
lsof简介 在终端下输入lsof即可显示系统打开的文件,因为 lsof 需要访问核心内存和各种文件,所以必须以 root 用户的身份运行它才能够充分地发挥其功能. 直接输入lsof部分输出为: 每行 ...
- [磁盘空间]lsof处理文件恢复、句柄以及空间释放问题
曾经在生产上遇到过一个df 和 du出现的结果不一致的问题,为了排查到底是哪个进程占用了文件句柄,导致空间未释放,首先在linux上面,一切皆文件,这个问题可以使用lsof这个BT的命令来处理(这个哈 ...
随机推荐
- Linux Glibc库严重安全漏洞修复方案通知(腾讯开发者社区)
如何查看当前glibc的版本号? rpm -aq | grep glibc 尊敬的用户: 您好!2015年1月28日, 腾讯云安全情报监测到LinuxGlibc库存在一处严重安全漏洞,可以 ...
- EntityFramework 学习 一 Eager Loading
贪婪加载是指查询一个类型实体的时候同时查询与实体关联的类型 通过Include()方法实现 using (var context = new SchoolDBEntities()) { var stu ...
- 大话设计模式--模板方法模式 TemplateMethod -- C++ 实现
1. 模板方法模式: 定义一个操作中的算法骨架,而将一些操作延迟到子类, 模板方法模式使得子类可以不改变一个算法的结构既可以重定义该算法的某些特定步骤. 当不变和可变的行为在方法的子类实现中混在一起的 ...
- Mysql远程链接访问权限设置
Host 'XXX' is not allowed to connect to this MySQL server 解决方案/如何开启MySQL的远程帐号 如何开启MySQL的远程帐号-1)首先以 r ...
- Oracle学习笔记_01_SQL初步
1.分类 SQL语句分为以下三种类型: DML: Data Manipulation Language 数据操纵语言 DDL: Data Definition Languag ...
- 关于Windows与Linux下32位与64位开发中的数据类型长度的一点汇总
32位与64位的数据类型长度是不一样的,而且windows和linux也有些许区别,下面把64位下的数据长度列表如下(无符号unsigned和有符号的长度一样): linux64 ...
- TypeError: 'str' object is not callable
Python报错TypeError: 'str' object is not callable
- Angular Chart 使用说明(基于angular工程)
Angular Chart是基于Chart.js的angular组件,引入项目后直接操作数据即可. 引用方法: 分别将Chart.js.angular-chart.js.angular-char ...
- bzoj 4103: 异或运算 可持久化Trie
题目大意: 给定长度为n的数列X={x1,x2,...,xn}和长度为m的数列Y={y1,y2,...,ym},令矩阵A中第i行第j列的值\(A_{ij} = x_i \text{ xor } y_j ...
- nodejs调试:node-inspector
基于Chrome浏览器的调试器 既然我们可以通过V8的调试插件来调试,那是否也可以借用Chrome浏览器的JavaScript调试器来调试呢?node-inspector模块提供了这样一种可能.我们需 ...