HP Micro Focus Object COBOL/UX Release Notes for Version B.13.35
40 Chapter 3
License Management with FLEXlm and COBOL
Installing and Setting Up the FLEXlm License Manager
if [ -f /usr/local/flexlm/bin/lmgrd ]
then
LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat
export LM_LICENSE_FILE
LIC_DATA=‘dirname $LM_LICENSE_FILE‘
echo Starting FLEXlm license daemon
su nonrootuser -c “/usr/local/flexlm/bin/lmgrd -c $LM_LICENSE_FILE \
>$LIC_DATA/license.log”
echo Starting FLEXlm license daemon
sleep 5
fi
Starting lmgrd (License Manager Daemon)
If you added HP Micro Focus Object COBOL Developer Suite license
lines to an existing license.dat file that already serves licenses, use
$ /usr/local/flexlm/bin/lmreread
or restart lmgrd as you normally do.
If you created a new license.dat file, start lmgrd before you use
COBOL.
If FLEXlm was already installed on the system, or you requested that
the components be installed somewhere else, change your working
directory to that location.
The following example assumes the default installation directories.
Start lmgrd as a ordinary user, not as a superuser.
Starting lmgrd:
$ cd /usr/local/flexlm/bin
$ ./lmgrd -c /usr/local/flexlm/licenses/license.dat | sh -c ‘while read \
line; do echo “$line” >> /flexlm_logfile_path/licenses.log ; done’
<Starts lmgrd>
$ ./lmstat -a -c /usr/local/flexlm/licenses/license.dat <Verifies that lmgrd
started correctly>
You will see a list of vendor daemons running as well as a list of licenses
by product name. If the information does not appear to be correct, check
the log file for any error messages with the following command:
$ cat /logfile_path/logfile