Installation of the license daemon lmgrd is described in the manual:
http://quantumwise.com/documents/manuals/ATK-2008.10/chap.license.html#sect2.license.floating
Simply put, you give the command
lmgrd -c license.lic -l log &
but there are some things to keep in mind, like
- path to license (and license manager)
- lmgrd should not be run by root
- you probably want the daemon to start automatically each time you reboot
- etc
These things are discussed in the manual.
Most modern Linux setups are for security reasons configured with all ports closed, for instance using the pfilter packet filtering system (kind of like a local firewall), unless you explicitly open them.
So, you need to open port 27000 before FLEXlm can use it. If you use pfilter, then you open the port by opening the file /etc/pfilter.conf and adding the lines:
# For Atomistix ToolKit
OPEN tcp 27000:27009
OPEN udp 27000:27009
Finally you must restart the service:
Your system setup might be different, and you may have to use different commands / edit different files.
Also note that the vendor daemon opens a random port each time. If your system is setup with a very tight security, these ports are probably also blocked. If the port is random it's hard to add it to the pfilter configuration, but you can lock the port to a particular value by editing the license file. Let's say we want to use port 27003 for the vendor daemon:
VENDOR atomist port=27003
In this case the port is already open, by the additions to "pfilter.conf" above. If you choose a different port, you need to add it to "pfilter.conf" as well.
In CentOS 5 (and most other modern Linux distros), the firewall is handled by iptables, not pfilter as I suggested before. To open ports with iptables, open the file /etc/sysconfig/iptables in an editor and add rules for FLEXlm as follows:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 27000:27009 -j ACCEPT
After saving and closing the file, restart the iptables service
/etc/init.d/iptables restart
You need to be root for all these operations.
There are many options for iptables, for instance you may want to consider limiting access to the license server to computers within a particular IP range, etc. Please refer to the manual for this and further options.
Don't forget to also set the port for the vendor daemon as suggested above, and open the corresponding port (if you chose a different port than somewhere in the range 27000-27009).
I must admit, I don't have a CentOS machine to test on, so I'm putting things together from Googling etc :-\
On my Ubuntu, I had some success using the COMMAND (not editing any file)
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 27000:27009 -j ACCEPT
Here, the name INPUT comes from inspecting the iptables via
which showed 3 "chains": INPUT, FORWARD, and OUTPUT. If you have other listings, choose accordingly.
According to the CentOS 5 administration guide (http://www.linuxtopia.org/online_books/centos5/centos5_administration_guide/centos5_ch-sysconfig.html#s2-sysconfig-iptables), the above approach should work for CentOS too.
Once the rule is added, the CentOS guide tells us that we need to save the rule by
/sbin/service iptables save
This command is not available on Ubuntu, but there are similar instructions in the Ubuntu Help (https://help.ubuntu.com/community/IptablesHowTo).
I hope this brings you further. It's a bit hard when I cannot test myself... The iptables command is extremely feature-rich, and I'm not about what all the options above mean (perhaps some are not needed), but if it works it works... :)