Two weeks ago, my colleague posted a tip of the week about how to combine licenses from two software vendors into one license file. This week I will look at how to use two licenses from the same vendor - but created for different server IDs.
Background Information:
- If you have two sets of licenses for one server, they can only be combined into one license file if the SERVER IDs are the same.
- Only one instance of a vendor daemon (the Mentor daemon is "mgcld") can run on one machine.
This means that if you have two sets of licenses for the same daemon, but created for different IDs (for example a MacAddress and a Hardware Key) then:
- They cannot be combined into one license file (because the server IDs are different).
- You cannot run two servers (because only one "mgcld" can run at any time).
How to use both sets of licenses:
If your license server machine is running Windows, then by following the instructions below, you can use both sets of licenses. Note - this will not work for other operating systems. (The instructions below assume you already know how to set up a license server using lmtools.)
1) Create a folder to contain all the licenses, and save each license as a separate file with a .lic extension. For example:
C:\Licenses\modelsim.lic - this file contains:
SERVER put_server_name_here 001234567890 1717
DAEMON mgcld path_to_mgcld
INCREMENT msimhdlsim mgcld 2013.120 31-dec-2013 ...
C:\Licenses\pads.lic - this file contains:
SERVER put_server_name_here FLEXID=9-87654321 1717
DAEMON mgcld path_to_mgcld
INCREMENT padses_c mgcld 2013.090 30-sep-2013 ...
2) Edit the licenses so that they contain the name of your server, and the location of the vendor daemon. (The SERVER and DAEMON lines will be the same for each license, apart from the server ID which must not be changed.) So in the example above:
C:\Licenses\modelsim.lic - after changes:
SERVER my_pc 001234567890 1717
DAEMON mgcld C:\MentorGraphics\Licensing\mgcld.exe
INCREMENT msimhdlsim mgcld 2013.120 31-dec-2013 ...
C:\Licenses\pads.lic - after changes:
SERVER my_pc FLEXID=9-87654321 1717
DAEMON mgcld C:\MentorGraphics\Licensing\mgcld.exe
INCREMENT padses_c mgcld 2013.090 30-sep-2013 ...
3) In the "Config Services" tab within "lmtools", in the box entitled "Path to the license file" - enter the folder name containing the licenses, instead of the path to a license file. So in the example above:
Path to the license file = C:\Licenses
4) Check "Use Services", and "Save Service" as usual, then start the server in the "Start/Stop/Reread" tab.
Your license server should now show that both sets of licenses are available.