Solution or Workaround
Use the steps below to determine if the license manager is running. These steps are for use on a UNIX server and most should be executed in the $ARCHOME/sysgen directory.
Be sure to log in as either root, the application owner, or as a member of the group that owns the lmutil executable before performing these steps.
- Verify that the License Manager is running:
% lmutil lmstat -a -c license.dat
- If it is up, shut it down with the command below.
% lmutil lmdown -c license.dat
- Verify there are no left-over lmgrd and ESRI daemon processes still running.
% ps -ef | grep lmgrd
% ps -ef | grep ESRI
- There should be no lmgrd and ESRI processes; the grep process may be returned. If there is an lmgrd or ESRI process, kill it.
% kill -9 <pid#>
- Change directory to /var/tmp.
% cd /var/tmp
- Look for a lockESRI file in the directory.
% ls -l lockESRI
-rw-r--r-- 1 lmuser other 0 Nov 14 2006 lockESRI
- If a lockESRI file exists, remove it.
% rm lockESRI
- Go back to $ARCHOME/sysgen and start the license manager.
% cd $ARCHOME/sysgen
% lmgrd -c license.dat &
- Verify the lmutil is running on the server it was licensed for.
- Display the server's hostid and hostname. The hostid is a unique code used to identify UNIX servers and is not affected by server name changes.
- To display the hostid, type:
% $ARCHOME/sysgen/lmutil lmhostid
lmutil - Copyright (C) 1989-1999 Globetrotter Software, Inc.
The FLEXlm host ID of this machine is "840df765"
To display the hostname, type:
- Verify the hostname and hostid in the license.dat file match those of the server it is running on.
Display the first line of the license.dat file.
% head -1 license.dat
SERVER samplesvr 840df765 27004
The SERVER line above means the license file was generated for a server named samplesvr with hostid 840df765 and listens for requests on port 27004.
If all match, continue. If the hostid is different, call Customer Service and request a new license file be generated for the hostid.
If the hostname is different but the hostid is the same, add the old hostname to the /etc/hosts file and recycle lmutil as displayed in step 1 above.
- Verify the following optional license file environment variables are set correctly.
Use each command below to display the environment variable if either exists.
% echo LM_LICENSE_FILE
% echo ESRI_LICENSE_FILE
If set, the first value, 2005, is the port the license manager is listening on and <hostname> is the name of the server where the license manager is running.
- Check the permissions on the license.dat file.
% ls -l license.dat
-rwxr-xr-x 1 lmuser other 0 Nov 14 2006 lockESRI
The correct permissions are:
If the permissions are not correct, change them with the chmod command:
% chmod 755 license.dat
It is necessary to be logged in as either root, the file owner, or as a member of the group that owns the license file to change the file's permissions.
- If the license manager server is running on a server other than the system being used, start ArcInfo on that server.
If ArcInfo starts on the server, check the date and time on both servers. The maximum time difference between the two systems cannot be greater than four hours. If all is correct, the problem is likely the network itself.
Use the '/usr/sbin/ping <hostname>' command to see if the server is online. If 'hostname is alive' is not returned, there is a problem with the network and it is necessary to contact the network administrator.
% /usr/sbin/ping samplesvr
samplesvr is alive