NX How can I determine what licenses are borrowed for NX from an NX client?

2019-08-12T13:25:22Z
NX System Administration

Summary


Details

If you are at an NX client workstation, how can I determine who has borrowed licenses for NX from the license server?



Solution

From your NX FlexLM *license server*, you can easily determine what licenses have been borrowed by running the LMTools utility, selecting the 'BORROWING'  <tab> and clicking on the button; 


 List Currently Borrowed Features


but you cannot perform this on a *license client*.

You can run the LMUTIL utilty, to determine what licenses have been borrowed *from the license server*, but this is cumbersome.


To make this process easy on an NX license client, the following short BATCH file can be executed on the license client to determine what licenses have been borrowed.


Copy the text of the batch file below (between the "Start copying here" and the "End copying here" lines into the Windows Notepad editor. Save the file to your Desktop as "LICENSEBORROWCHECK.BAT", making sure the file has a '.BAT' file extension and not a '.TXT' extension.


Double-click on the file to execute it.


>>-----------------Start copying below here-----------------<< 
@echo off 
rem ======================================================================== 
rem 
rem Copyright (c) 2011-2019 Siemens PLM Software. 
rem Unpublished - All rights reserved 
rem Steven Riches / GTAC 
rem ======================================================================== 
rem 
rem File Name: LICENSEBORROWCHECKV9.BAT 
rem 
rem ======================================================================== 
rem 
rem This script will check what NX licenses are borrowed. 
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 
REM Check 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 BORROWED 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" lmborrow -status -c %SPLM_LICENSE_SERVER%


pause 
goto end 
:ERROR_EXIT 
echo. 
echo ERROR: Unable to check borrowed licenses. 
echo. 
pause 
:end 
>>-----------------Stop copying above here-----------------<<



Notes and References

 



Hardware/Software Configuration

Platform: INTL64
OS: windows
OS Version: 1064
Product: NX
Application: SYSTEM
Version: V1872
Function: WNT_OS_ISSUES

Ref: 001-7346846

KB Article ID# PL8010480

Contents

SummaryDetails

Associated Components

Installation