Can anyone point me toward where can I download the ArcGIS for desktop installation file?
Thanks.
Thanks.
:: lmverify.bat
:: Verify license server is up
:: Usage: lmsverify {license server} {port}
::
:: These two executables must be in the same folder as this script
:: lmutil.exe - Esri FlexLM license utility - should be current version
:: blat.exe - mailer utility http://www.blat.net/
::
:: If running using Scheduled Tasks, make sure the script
:: is run in its directory (folder).
::
:: Curtis Price, cprice@usgs.gov, 17 Mar 2014
::
:: Although this software program has been used by the
:: U.S. Geological Survey (USGS), no warranty, expressed
:: or implied, is made by the USGS or the U.S. Government
:: as to the accuracy and functioning of the program and
:: related program material nor shall the fact of distribution
:: constitute any such warranty, and no responsibility is
:: assumed by the USGS in connection therewith.
@echo off
set LMHOST=%~1
set LMPORT=%2
:: START CONFIGURATION
:: Edit these configuration lines for your setup
set DEFAULT_HOST=arclicm.my.org
set DEFAULT_PORT=27000
set MAIL_TO=gisadmin@my.org
:: The following email address must be valid on SMTP_SERVER_NAME
set MAIL_FROM=lmadmin@my.org
set SMTP_SERVER_NAME=smtp.my.org
:: END CONFIGURATION
:: specify defaults
if "%1" == "" (
set LMHOST=%DEFAULT_HOST%
set LMPORT=%DEFAULT_PORT%
)
:: was it down last time we checked?
set LMDOWN=NO
if exist lmdown.dat set LMDOWN=YES
:: check license server, send an email if down
echo %DATE% %TIME%: %~f0 on %COMPUTERNAME% > lmverify.dat
set SCRIPTNAME=%~nx0
echo .\lmutil.exe lmstat -c %LMPORT%@%LMHOST% >> lmverify.dat
.\lmutil.exe lmstat -c %LMPORT%@%LMHOST% >> lmverify.dat || ( ^
.\blat.exe lmverify.dat -q -to %MAIL_TO% -f %MAIL_FROM% ^
-server %SMTP_SERVER_NAME% ^
-subject "License server %LMHOST% is down (%SCRIPTNAME% / %USERNAME%)" ^
& echo %DATE% %TIME% License server %LMPORT%@%LMHOST% is down ^
& echo %DATE% %TIME% License server %LMPORT%@%LMHOST% is down >> lmverify.log ^
& copy /y lmverify.dat lmdown.dat >NUL ^
& del lmverify.dat ^
& goto :eof ^
)
:: If we are down to this line, the license server is up
:: If license server *was* down last time we checked, and now is up, notify
if %LMDOWN%==YES ( ^
.\blat.exe lmverify.dat -q -to %MAIL_TO% -f %MAIL_FROM% ^
-server %SMTP_SERVER_NAME% ^
-subject "License server %LMHOST% is back up (%SCRIPTNAME% / %USERNAME%)" ^
)
del lmverify.dat
echo %DATE% %TIME% License server %LMPORT%@%LMHOST% is up
echo %DATE% %TIME% License server %LMPORT%@%LMHOST% is up >> lmverify.log
:: delete this file to note that the server is up for the next check
if exist lmdown.dat del lmdown.dat