117. 如何查看我的 NX 许可证服务器上的许可证使用情况?
117. 如何查看我的 NX 许可证服务器上的许可证使用情况?问题/症状
如何查看 NX 许可证服务器上的许可证使用情况?我目前的 NX 版本是 NX9 及以上版本.
解决方法
您把下面的文字做成一个批处理文件, 然后双击运行就能看到您的 NX 许可证服务器上的
NX 许可证的使用情况.
这个程序也可以在客户端运行,运行的时候, 我们假设您的下面 2 个环境变量已经在您的
系统环境变量中设定好:
UGII_BASE_DIR
SPLM_LICENSE_SERVER
@echo off
rem =========================================================================
rem
rem Copyright (c) 1996-2015 Siemens PLM Software.
rem Unpublished - All rights reserved
rem /sar GTAC
rem =========================================================================
rem
rem File Name:LICENSECHECKV9.BAT
rem
rem =========================================================================
rem
rem This script will check what NX licenses are in use.
rem
rem NOTE:
rem
rem This script assumes that UGII_BASE_DIR and SPLM_LICENSE_SERVER
rem are properly defined
rem
REM To avoid double double quotes later, remove any quotes that
REM are part of the environment variable now
set UGII_BASE_DIR=%UGII_BASE_DIR:"=%
set SPLM_LICENSE_SERVER=%SPLM_LICENSE_SERVER:"=%
REM
REMCheck if UGII_BASE_DIR is defined.
REM
if not defined UGII_BASE_DIR (
echo NX path could not be established.UGII_BASE_DIR not set.
goto ERROR_EXIT
) ELSE (
echo NX path established. UGII_BASE_DIR=%UGII_BASE_DIR%
echo Checking for IN-USE NX Licenses...
echo.
echo.
REM
REM Check if UGII_BASE_DIR really points to a valid directory.
REM
if EXIST "%UGII_BASE_DIR%\ugii" (
set UGII_ROOT_DIR=%UGII_BASE_DIR%\ugii
) ELSE (
echo UGII_BASE_DIR set to invalid NX install.
goto ERROR_EXIT
)
)
REM
REM Check for NX license server
REM
if not defined SPLM_LICENSE_SERVER (
echo ERROR: SPLM_LICENSE_SERVER is not defined.
echo Current Setting: %SPLM_LICENSE_SERVER%
echo Check:SPLM_LICENSE_SERVER=28000@<server>.
goto ERROR_EXIT
)
"%UGII_BASE_DIR%\ugflexlm\lmutil" lmstat -c %SPLM_LICENSE_SERVER% -A
pause
goto end
:ERROR_EXIT
echo.
echo ERROR: Unable to check licenses.
echo.
pause
:end
页:
[1]