A FlexLM Rant

I hate FlexLM. I hate it a lot.

If you work for Globetrotter - don't bother sending me flame email, because I will hunt you down and beat you.

If you work for Macrovision - well, I'd say that's punishment enough.

The following is an email I had to sent out to the IT support people at a recnet gig, after someone foolishly tried to examin a FlexLM license file and destroyed it.

Yes, <crappy_vendor> shipped an older and more bug ridden version of FlexLM. I DON'T CARE! FlexLM is shit, it always has been shit, and it always will be shit.


This has already been explained to the people who would be looking after FlexLM, but by an amusing twist of fate it appears other people, less experienced in the evil of FlexLM, want a piece of the action. Quick rundown: FlexLM is an evil evil licensing solution - it runs as a daemon, has various classes of licenses, and serves those licenses out from a central license file. It does this very badly. We currently have: - main licenses served out from the FlexLM daemon running on <temp_server>. These licenses serve all environments except testing - <inappropriate_server> is running another FlexLM daemon which only serves the testing machines Before go live we will migrate the licenses from <temp_server> onto <big_production_server>, which will be FlexLM's final resting place. These problems are solely down to the fact that FlexLM is installed temporarily on Windows, and FlexLM comes with some laughable tools that only serve to help you trash the installation. The UNIX command line tools do not, fortunately, suck quite as badly. You need to bear the following in mind when dealing with FlexLM: - it is evil - it is bug ridden - it is evil - it crashes often - did I mention it was evil? FlexLM under Windows has a nicey nicey GUI called the License Administration Utility (LAU). Do not ever run this hateful application! Each UNIX and Citrix server has exactly the same features licensed to it - the difference is that each of those licenses is locked to a different hostid (because they're all different machines). LAU is stupid. If you start it, it will claim there are duplicate licenses - it does not understand that while the licensed feature is the same, it's licensed to different machines. It will ask if you wish to view the duplicates. If you say yes, it will crash. Optionally, it will destroy the license file. If you say no, it will delete all the 'duplicate' licenses. End result, only one instance will have a functioning <crappy_application> installation. Optionally, it will destroy the license file. To fix this: Never run LAU. Ever. Don't even be tempted to 'try it out'. If you ignore this advice - congratulations! You will have destroyed the license file! Before you clear your desk, you will need to: - shut down the FlexLM service on <temp_server> - delete c:\<crappy_vendor>\<crappy_software>\license.lic - copy c:\<crappy_vendor>\backup_licenses.dat to c:\<crappy_vendor>\<crappy_software>\license.lic - restart the FlexLM service - shutdown and restart the <crappy_software_component> service on every UNIX box that gets it's license from <temp_server> The final licenses have been requested from <crappy_vendor> - once they arrive, we can migrate FlexLM to <big_production_server> and put an end to this. In the meantime, avoid FlexLM like the plague. Bear in mind that doing anything on <temp_server> will have lots of nasty consequences for all the installations of <crappy_application> we are running. Many many years of dealing with FlexLM have led to my bitterness - both <permie_UNIX_admin> and myself would be more than happy to pass the joy of looking after FlexLM to someone else. Applications on a postcard please! Cheers, TOM