⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_license_data.bat

📁 realview22.rar
💻 BAT
字号:
@echo off

rem Copyright ARM Ltd 2004
rem $Revision: 1.2 $

echo ARM Development Tools host log file
echo.

date /T
echo.
echo.

echo Collect client PC information
echo _______________________________________________________
echo.

ver
echo.

set ARM
set LM_LICENSE_FILE
echo.

ipconfig /all
echo.


:: append FLEXlm directory to PATH in case RVDK, RVCT, or RVD only (not for ADS or RVDS)
:: (note that we'll need to add the FLEXlm path for each different version)

::append path for RVDK for OKI
path %PATH%;%ARMROOT%\Utilities\FLEXlm\8.2a\release_2\win_32-pentium\

::append path for RVD (stand-alone)
path %PATH%;%ARMROOT%\Utilities\FLEXlm\8.2a\release\win_32-pentium\

::append path for RVCT 2.0.1
path %PATH%;%ARMROOT%\Utilities\FLEXlm\8.1b\release_2\win_32-pentium\

::append path for RVCT 2.1 and 2.2
path %PATH%;%ARMROOT%\Utilities\FLEXlm\9.2\release\win_32-pentium\


echo.
echo.

echo Collect client FLEXlm information
echo _______________________________________________________
echo.

echo lmutil lmhostid
lmutil lmhostid
echo.

echo lmutil lmhostid -vsn
lmutil lmhostid -vsn
echo.
echo.


:: run ARM tool finder utility to check which tools are installed.
:: (note - currently can't pick up RVCT and RVD stand-alone)
echo Check which ARM tools are installed
echo _______________________________________________________
echo.

ARMToolFinder
echo.
echo.

echo Check (non-RVCT) compiler error status
echo _______________________________________________________
echo.

echo armcc --errors
armcc --errors
echo.
echo.

:: for some reason, RVCT compilers do strange things, and they output to standard
:: error instead of to standard I/O, hence the "2" that redirects standard error

echo Check (RVCT) compiler error status
echo _______________________________________________________
echo.

echo armcc dummy.c
armcc dummy.c
echo.
echo.


:: for some reason, this doesn't work for RVDK for OKI
echo Get component information
echo _______________________________________________________
echo.

echo lmutil lmdiag -n
lmutil lmdiag -n
echo.
echo.
echo.


:: need to do this for LM_LICENSE_FILE - can we do conditional?
:: probably need to do both, since both might be installed.

echo Get node locked license information
echo _______________________________________________________
echo.
echo.

echo Print license file at ARMLMD_LICENSE_FILE
echo _______________________________________________________
echo.
echo type ARMLMD_LICENSE_FILE
type "%ARMLMD_LICENSE_FILE%"
echo.
echo.

echo Get checksum of license file at ARMLMD_LICENSE_FILE
echo _______________________________________________________
echo.
echo lmutil lmcksum -c ARMLMD_LICENSE_FILE
lmutil lmcksum -c "%ARMLMD_LICENSE_FILE%"
echo.
echo.

echo Print license file at LM_LICENSE_FILE
echo _______________________________________________________
echo.
echo type LM_LICENSE_FILE
type "%LM_LICENSE_FILE%"
echo.
echo.

echo Get checksum of license file at LM_LICENSE_FILE
echo _______________________________________________________
echo.
echo lmutil lmcksum -c LM_LICENSE_FILE
lmutil lmcksum -c "%LM_LICENSE_FILE%"
echo.
echo.
echo.
echo Print .dat file(s) at ARMHOME\licenses
echo _______________________________________________________
echo.
dir "%ARMHOME%"\licenses\*.dat
echo.
type "%ARMHOME%"\licenses\*.dat
echo.
echo.
echo Print .lic file(s) at ARMHOME\licenses
echo _______________________________________________________
echo.
dir "%ARMHOME%"\licenses\*.lic
echo.
type "%ARMHOME%"\licenses\*.lic
echo.
echo.
echo Print .dat file(s) at ARMROOT\licenses
echo _______________________________________________________
echo.
dir "%ARMROOT%"\licenses\*.dat
echo.
type "%ARMROOT%"\licenses\*.dat
echo.
echo.
echo Print .lic file(s) at ARMROOT\licenses
echo _______________________________________________________
echo.
dir "%ARMROOT%"\licenses\*.lic
echo.
type "%ARMROOT%"\licenses\*.lic

echo.
echo.

echo Get server information
echo _______________________________________________________
echo.
echo lmutil lmstat -a
lmutil lmstat -a
echo.
echo.

:: for now - pinging is broken (need to strip away 8224@ text)
::
:: echo Try and ping license server (using both environment variables)
:: echo _______________________________________________________
:: echo.
:: ping "%ARMLMD_LICENSE_FILE%"
:: ping "%LM_LICENSE_FILE%"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -