PDA

View Full Version : How do I force TotalView to use my Enterprise license key instead of my Team license key.



Josh-TotalView-Tech
12-18-2006, 10:23 AM
TotalView will generally prefer a Team token if one is available rather than an Enterprise license. This is done to prevent a scalar or small job from using a large Enterprise license unless there is no other choice. There is no way to have TotalView prefer to use an Enterprise license. If you want the ability to select which license TotalView uses there are three options.
You can run two different license servers (on different machines) and have one serve your Enterprise license and the other serve your Team license.

Users can setup their LM_LICENSE_FILE variable to point to a license file containing only the enterprise portion of the license. For example, say you have a license server that is serving these two keys (an Enterprise and a Team):

INCREMENT TotalView_Enterprise toolworks 2007.0101 permanent 1 \
VENDOR_STRING="processors=1 platform=linux-x86" \
ISSUED=8-nov-2006 SN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
START=7-nov-2006 SIGN=XXXXXXXXXXXXX
INCREMENT TotalView_Team toolworks 2007.0101 permanent 2 \
VENDOR_STRING=platform=linux-x86,linux-x86_64 \
ISSUED=18-dec-2006 SN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
START=17-dec-2006 SIGN=XXXXXXXXXXXXX
If there exists another file, say license.enterprise that just contained the entprise key(s):

INCREMENT TotalView_Enterprise toolworks 2007.0101 permanent 1 \
VENDOR_STRING="processors=1 platform=linux-x86" \
ISSUED=8-nov-2006 SN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
START=7-nov-2006 SIGN=XXXXXXXXXXXXX
and you set the environment variable LM_LICENSE_FILE to the full path name of license.enterprise:

setenv LM_LICENSE_FILE /full/path/to/license.enterprise

Then TotalView will use this key (and only this key). If you use this mechanism, you should be aware that if your original license.dat file is in a directory that matches the regular expression $TVROOT../flexlm*/ where TVROOT is the root of the TotalView installation then TotalView will automatically append the license.dat file to LM_LICENSE_FILE. If this occurs TotalView will still find the Team license so you will probably want to put your license file in a different directory (or rename it).

Use FlexLM's EXCLUDE (Deny a user(s) or host(s) access to a license), INCLUDE (Allow a user(s) or host(s) to access to a license) or RESERVE (Reserve licenses for a user(s) or host(s).) features. Please see Chapter 5 of the FlexLM End User Guide on how to use these feature.