Wednesday, December 3, 2008

Synergy 6.5 License server installation

Here is the step by step instructions on setting up the Synergy license server (11.5).
Based on Telelogic Lifecycle Solutions Licensing Guide.
As root:
- Create user flexnet.
[root@licserv ~]# adduser flexnet
[root@licserv ~]# passwd flexnet
As flexnet:
- Copy licence archive to Linux machine.
- [root@licserv ~]# mkdir -p /opt/flexnet/linux
- [root@licserv ~]# chown -R flexnet:flexnet /opt/flexnet/linux
- Unpack the flex.tar file from …/license_server/linux to the newly created installation directory /opt/flexnet/linux:
[flexnet@licserv linux]$ tar -xvf /home/flexnet/linux/flex.tar
You should get :
[flexnet@licserv linux]$ pwd
/opt/flexnet/linux
[flexnet@
licserv linux]$ ll
total 3240
-rwxr-xr-x 1 flexnet flexnet 1021668 Apr 12 2008 lmgrd
-rwxr-xr-x 1 flexnet flexnet 1011900 Nov 27 2007 lmutil
-rwxr-xr-x 1 flexnet flexnet 1263712 Sep 5 10:44 telelogic

- Save or copy the FLEXnet license file you received from Telelogic into a text file called license.dat:

[flexnet@licserv flexnet]$ cp -pr license.dat.txt_validtilldec08end /opt/flexnet/license.dat

- Find out your FlexLM hostid:
[flexnet@licserv flexnet]$ /opt/flexnet/linux/lmutil lmhostid
lmutil - Copyright (c) 1989-2007 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
The FLEXnet host ID of this machine is "001b786ed876"

- Add the following line at the very begining of the licence.dat file:

SERVER licserv 001b786ed876 19353

where licserv is the machine where license server will be running, 001b786ed876 is the hostid you discovered in the previous step, 19353 is the port to be used by the license server.

- Set up the license file location to the LM_LICENSE_FILE variable:

[flexnet@licserv flexnet]$ export LM_LICENSE_FILE=/opt/flexnet/license.dat

- Add the LM_LICENSE_FILE set to the flexnet ini file (.bashrc):

export LM_LICENSE_FILE=/opt/flexnet/license.dat

- You may also want to create a link
/usr/local/flexlm/licenses/license.dat -> /opt/flexnet/license.dat
'cause flexlm is looking for the license.dat by default in the /usr/loca/flexlm/license.
- Change directory to the installation path:
[flexnet@licserv flexnet]$ cd /opt/flexnet/linux
- Start the license server:
[flexnet@licserv flexnet]$ /opt/flexnet/linux/lmgrd -local -c license.dat -l license.log
- Make sure it is running:
[flexnet@licserv flexnet]$ /opt/flexnet/linux/lmutil lmstat -c license.dat
You should get the following:
[flexnet@licserv ~]$ /opt/flexnet/linux/lmutil lmstat -c license.dat
lmutil - Copyright (c) 1989-2007 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
Flexible License Manager status on Sun 11/30/2008 09:25
License server status: 19353@licserv
License file(s) on
licserv: /opt/flexnet/license.dat:
licserv: license server UP (MASTER) v11.5
Vendor daemon status (on licserv):
telelogic: UP v11.5
This completes the Synergy license server installation.
Make sure you refer to this license server by inspecting the following file on you: Synergy engine installations:
/usr/local/ccm/etc/license_data.txt
It should have the following content:
$ cat /usr/local/ccm/etc/license_data.txt
19353@
licserv

Make sure to add the server start command to the machine boot procedure.
Remember, the license daemon has to run with the flexnet user, not as ccm_root or root.