SCL License服务采用的是“服务器——客户端”的网络模型,客户端和服务器可以是同一台机器。
使用 SSH 工具登录 SCL license server主机和将要运行QuantumATK的主机上执行命令:
lmstat -a -c 27020@[my_scl_server] # 注释:[my_scl_server]应替换为实际的服务器主机名或IP地址
license服务状态和使用情况结果如下:
-------- Status -------- Flexible License Manager status on Sat 4/14/2018 09:53 [Detecting lmgrd processes...] License server status: 27020@mu01 License file(s) on mu01: /opt/synopsys/SCL/2017.12/admin/license/Synopsys.txt: mu01: license server UP (MASTER) v11.14.0 Vendor daemon status (on mu01): snpslmd: UP v11.14.0 Feature usage info: Users of SSS: (Total of 1 license issued; Total of 0 licenses in use) Users of atk_dp: (Total of 32 licenses issued; Total of 0 licenses in use) Users of atk_master_forcefield: (Total of 2 licenses issued; Total of 0 licenses in use) Users of atk_master_negf: (Total of 2 licenses issued; Total of 0 licenses in use) Users of atk_nanolab: (Total of 2 licenses issued; Total of 0 licenses in use) Users of atk_nanolab_links: (Total of 2 licenses issued; Total of 0 licenses in use) Users of atk_python: (Total of 30 licenses issued; Total of 0 licenses in use) Users of smw: (Total of 5 licenses issued; Total of 0 licenses in use)
以下是使用lmstat检查license使用情况的典型输出(中文部分为添加的说明)
# 检查license使用状态命令 $ /opt/synopsys/scl/lmstat -a -c 27020@localhost lmstat - Copyright (c) 1989-2019 Flexera. All Rights Reserved. Flexible License Manager status on Mon 12/13/2021 14:49 # SCL服务器运行的主机和使用的license文件 License server status: 27020@fermihost License file(s) on fermihost: /opt/synopsys/license.txt: fermihost: license server UP (MASTER) v11.16.4 Vendor daemon status (on fermihost): snpslmd: UP v11.16.4 #以下是license各功能的数量和正在使用的情况 Feature usage info: Users of SSS: (Total of 1 license issued; Total of 0 licenses in use) # 总并行度数量256个,正在使用5个 Users of atk_dp: (Total of 256 licenses issued; Total of 5 licenses in use) "atk_dp" v2021.06, vendor: snpslmd, expiry: 18-may-2022 vendor_string: ^1+S floating license #下面一行分别对应了获取这5个license的: # 用户名 主机名 显示器名 (SCL主机/端口 句柄), 获取时间, 个数 dell DESKTOP-EPA790I DESKTOP-EPA790I (v2018.09) (fermihost/27020 783), start Mon 12/13 14:46, 5 licenses Users of atk_master_forcefield: (Total of 5 licenses issued; Total of 0 licenses in use) Users of atk_master_negf: (Total of 5 licenses issued; Total of 1 license in use) "atk_master_negf" v2021.06, vendor: snpslmd, expiry: 18-may-2022 vendor_string: ^1+S floating license dell DESKTOP-EPA790I DESKTOP-EPA790I (v2018.09) (fermihost/27020 683), start Mon 12/13 14:46 Users of atk_nanolab: (Total of 2 licenses issued; Total of 2 licenses in use) "atk_nanolab" v2021.06, vendor: snpslmd, expiry: 18-may-2022 vendor_string: ^1+S floating license dell DESKTOP-EPA790I DESKTOP-EPA790I (v2018.09) (fermihost/27020 211), start Mon 12/13 10:22 Dong MateBookDD MateBookDD (v2019.06) (fermihost/27020 418), start Mon 12/13 14:42 Users of atk_nanolab_links: (Total of 2 licenses issued; Total of 0 licenses in use) Users of atk_python: (Total of 25 licenses issued; Total of 1 license in use) "atk_python" v2021.06, vendor: snpslmd, expiry: 18-may-2022 vendor_string: ^1+S floating license dell DESKTOP-EPA790I DESKTOP-EPA790I (v2018.09) (fermihost/27020 124), start Mon 12/13 10:57 Users of smw_all: (Total of 5 license issued; Total of 0 licenses in use)