Troubleshooting
Problem
Rational License server stopped functioning as it is not responsive to any new license request. Trying shut down the Flexlm server on the box always failed with error: Shutting down lmgrd/rational license servers...
Symptom
1. License server will stop functioning as it is not responsive to any new license request.
2. If you shut down the Flexlm service on the machine,it throws an error as follows:
Shutting down lmgrd/rational license servers...
lmdown - Copyright (c) 1989-2005 Macrovision Europe Ltd. and/or
Macrovision Corporation. All Rights Reserved.
Shutdown failed: Cannot read data from license server system. (-16,287)
3. License log file will also throw the error below:
2:38:21 (lmgrd) lmgrd will now shut down all the vendor daemons
2:38:21 (lmgrd) Shutting down rational
2:38:21 (lmgrd) Can't connect to the license server system. Shutdown rational failed.
2:38:21 (lmgrd) Message checksum failure. (-59,610:104 "Connection reset by peer")
4. Can't connect to the license server system. Shutdown rational failed.
12:00:40 (lmgrd) No socket connection to license server manager. (-7,10015)
Cause
The intermittent shutdown might be due to hitting of the license linger list.
Resolving The Problem
Follow these steps to resolve the problem:
- Log in as root on the UNIX license server
- Determine the lmgrd startup script
- cd to /etc/rc.d/init.d
- Run grep -l lmgrd * to locate any scripts that start lmgrd processes (there should be only one, but the name can vary)
- Review the list of files presented to verify that the script starts the correct license manager daemon
- Verify lmgrd startup parameters. Some command line parameters will change how the license manager can be shut down.
- Configure cron job to stop and restart the license manager
- Ensure EDITOR environment is set to the desired editor. ("root" user environment may not have this environment variable set on some systems)
- Run crontab -e to edit the root user's cron table
- Add a line to stop the lmgrd. For example:
If the lmgrd is started with –x
0 * * * kill `pgrep lmgrd`
If the lmgrd is not started with this option. Note that the full path to the lmutil command needs to be specified, and that the license server port and host may need to be specified.
1 0 * * * /opt/IBM/RationalSDLC/RLS/extras/flexlm.i386_linux2/lmutil [-c port@host] lmdown - Add the line to restart the lmgrd. That line should run at least 1 min after the stop. (On Solaris, you may need to wait up to 5 minutes to be sure that ports are sees as closed by the OS) Use the script determined in step 2 above. The line would read something like this.
2 0 * * * /etc/rc.d/init.d/S98FlexNetSvr start - Save the file and exit the editor. You may see "crontab: installing new crontab".
- The license server should restart at the scheduled time.
Note 1: The stop & restart commands should be verified interactively before inserted into the crontab
Note 2: cron implementations differ, and the appropriate man pages should be consulted to verify that the above crontab lines are correctly formatted for the operating system they will execute on.
References:
crontab command man page: http://linux.die.net/man/1/crontab
crontab file man page: http://linux.die.net/man/5/crontab
Was this topic helpful?
Document Information
Modified date:
23 June 2018
UID
swg21414564