Support Knowledge Base

Solution Number: 1016
Title: License borrowing in COMSOL 3.4
Platform: All Platforms
Applies to: All Products
Versions: 3.4
Created: November 22, 2007
Last Modified: May 14, 2008
Categories: Installation
Keywords:

Problem Description

How to borrow license keys on a floating network license

Solution

License borrowing means that you can use COMSOL (for a limited time) without a network connection to the license server. This can be convenient if you want to remove a computer from the network for a limited time period, and still want to be able to run on a floating network license option.

This solution covers the basics of license borrowing. For more information, please refer to the FLEXnet Licensing End Users Guide (Chapter 8, the section “License Borrowing with BORROW”). The FLEXnet Licensing End Users Guide is available from the COMSOL Help Desk, which you open by pressing F1 or from the Help menu in the COMSOL Multiphysics user interface.

To be able to borrow license keys, you need:

  • A COMSOL 3.4 Floating Network License (FNL), or a Class Kit License (CKL) option.
  • A license.dat file with the BORROW keyword included. The license file below shows what a borrow-enabled file looks like:

SERVER myserver 000102030405 1718
USE_SERVER
VENDOR LMCOMSOL
FEATURE SERIAL LMCOMSOL 3.4 permanent uncounted \
VENDOR_STRING=C,3F3F0 HOSTID=ANY BORROW SN=1921634 \
SIGN=123456789ABC
FEATURE COMSOL LMCOMSOL 3.4 permanent 1 BORROW DUP_GROUP=UH \
SIGN=123456789ABC
FEATURE COMSOLGUI LMCOMSOL 3.4 permanent 1 BORROW DUP_GROUP=UH \
SIGN=123456789ABC
FEATURE SCRIPT LMCOMSOL 3.4 permanent 1 BORROW DUP_GROUP=UH \
SIGN=123456789ABC
FEATURE SCRIPTPROMPT LMCOMSOL 3.4 permanent 1 BORROW DUP_GROUP=UH \
SIGN=123456789ABC

If you have a Floating Network License and want to borrow license keys but do not have a license.dat file with the BORROW keyword, please contact your local COMSOL office.

Instructions

In the description that follows you will use the license utilities lmtools.exe or lmborrow. These utilities are installed by default on COMSOL installations that run under the Floating Network license option. (If you cannot find these utilities, insert the COMSOL DVD or CD 1, and select "Add/Remove Features" in the installer. Check "License Manager" and click install.)

License Borrowing on Windows

  1. Go to the computer, on which you want to run COMSOL (for a limited time) without a network connection to the license server. Start the LMTOOLS license tool from the Start menu > Programs > COMSOL 3.4 > License Tools > LMTOOLS.
  2. Click the Borrowing tab.
  3. Now decide how long you need to borrow the license keys. Please note that the maximum borrow period is usually one week. When the borrow period expires, LMTOOLS automatically returns all borrowed license keys to the license manager. Specify values in the Return Date and Return Time edit fields, then click the Set Borrow Expiration button.




  4. Start COMSOL Multiphysics and use all the modules/features that you need. For example, if you are borrowing COMSOL Script, make sure to start a COMSOL Script window. COMSOL Script checks out the SCRIPT and SCRIPTPROMPT license features from the license server. If you need the Chemical Engineering Module, select a Chemical Engineering Module application mode from the Model Navigator, or open a model file that uses a Chemical Engineering Module application mode. In these cases COMSOL Multiphysics checks out a CHEM license feature from the license manager. If you want to use COMSOL Reaction Engineering Lab, start the application and load one of the models available in its Model Library. If you want to import CAD files, import CAD files on the formats you need. Each COMSOL product has corresponding license features (see the following table)


    Product Features
    COMSOL Multiphysics COMSOL, COMSOLGUI
    COMSOL Script SCRIPT, SCRIPTPROMPT
    Optimization Lab OPTLAB
    Signals & Systems Lab SIGNAL
    AC/DC Module ACDC
    Acoustics Module ACO
    Chemical Engineering Module CHEM
    Earth Science Module ES
    Heat Transfer Module HT
    MEMS Module MEM
    RF Module RF
    Structural Mechanics Module SME
    CAD Import Module CADIMPORT
    Pro/ENGINEER PROE
    CATIA V4 CATIA4
    CATIA V5 CATIA5
    Inventor INVENTOR
    VDA VDA

  5. To view your currently borrowed license features, click the List Currently Borrowed Features button. The output looks something like this:

    List All Currently Borrowed Features
    ========
    Vendor Feature Expiration
    ______ ________ __________
    LMCOMSOL SERIAL 30-Nov-07 23:59
    LMCOMSOL COMSOL 30-Nov-07 23:59
    LMCOMSOL COMSOLGUI 30-Nov-07 23:59
    LMCOMSOL SCRIPT 30-Nov-07 23:59
    LMCOMSOL SCRIPTPROMPT 30-Nov-07 23:59
    LMCOMSOL REACTION 30-Nov-
    07 23:59
    LMCOMSOL OPTLAB 30-Nov-
    07 23:59
    LMCOMSOL SIGNAL 30-Nov-
    07 23:59
    LMCOMSOL ACDC 30-Nov-
    07 23:59
    LMCOMSOL ACO 30-Nov-
    07 23:59
    LMCOMSOL CHEM 30-Nov-
    07 23:59
    LMCOMSOL SME 30-Nov-
    07 23:59
    LMCOMSOL ES 30-Nov-
    07 23:59
    LMCOMSOL HT 30-Nov-
    07 23:59
    LMCOMSOL MEMS 30-Nov-
    07 23:59
    LMCOMSOL RF 30-Nov-
    07 23:59
    LMCOMSOL CADIMPORT 30-Nov-
    07 23:59
    LMCOMSOL PROE 30-Nov-
    07 23:59
    LMCOMSOL CATIA4 30-Nov-
    07 23:59
    LMCOMSOL CATIA5 30-Nov-
    07 23:59
    LMCOMSOL INVENTOR 30-Nov-
    07 23:59
    LMCOMSOL VDA 30-Nov-
    07 23:59

  6. When you have borrowed licenses for all the products that you need, disconnect from the network. If you want to stay connected for a while longer but do not want to borrow more licenses, click the Don't Borrow Anymore Today button.

License Borrowing on Linux/Sun/Macintosh

  1. Go to the computer, on which you want to run COMSOL (for a limited time) without a network connection to the license server. Then cd to the folder containing the License Manager files. In a shell window, type

    cd COMSOL34/license/$arch

    where $arch is either glnx86 (32-bit Linux), glnxa64 (64-bit Linux), glnxi64 (Itanium), sol2 (Sun), or macosx (Macintosh).
  2. Use the lmborrow command to borrow licenses. Enter the line

    ./lmborrow -help

    to view the options.
  3. Decide how long you need to borrow the license key. Please note that the maximum borrow period is usually one week. The lmborrow command automatically returns all borrowed license keys to the license manager when the borrow period expires. For example, if you want to borrow the licenses until November 29, 2007, at midnight, type:

    ./lmborrow LMCOMSOL 29-nov-2007

  4. Start COMSOL Multiphysics and use all the modules/features that you need. For example, if you are borrowing COMSOL Script, make sure to start a COMSOL Script window. COMSOL Script then checks out the SCRIPT and SCRIPTPROMPT license features from the license server. If you need the Chemical Engineering Module, select a Chemical Engineering Module application mode from the Model Navigator, or open a model file that uses a Chemical Engineering Module application mode. In these cases, COMSOL Multiphysics checks out a CHEM license feature from the license manager. If you want to use COMSOL Reaction Engineering Lab, start the application and load one of the models available in its Model Library. If you want to import CAD files, import a CAD file of the format(s) you need. Each COMSOL product has corresponding license features (see table).
  5. To view your currently borrowed license features, issue the command

    ./lmborrow -status

  6. The output looks something like this:

    List All Currently Borrowed Features
    ========
    Vendor Feature Expiration
    ______ ________ __________
    LMCOMSOL SERIAL 30-Nov-07 23:59
    LMCOMSOL COMSOL 30-Nov-07 23:59
    LMCOMSOL COMSOLGUI 30-Nov-07 23:59
    LMCOMSOL SCRIPT 30-Nov-07 23:59
    LMCOMSOL SCRIPTPROMPT 30-Nov-07 23:59
    LMCOMSOL REACTION 30-Nov-07 23:59
    LMCOMSOL OPTLAB 30-Nov-07 23:59
    LMCOMSOL SIGNAL 30-Nov-07 23:59
    LMCOMSOL ACDC 30-Nov-07 23:59
    LMCOMSOL ACO 30-Nov-07 23:59
    LMCOMSOL CHEM 30-Nov-07 23:59
    LMCOMSOL SME 30-Nov-07 23:59
    LMCOMSOL ES 30-Nov-07 23:59
    LMCOMSOL HT 30-Nov-07 23:59
    LMCOMSOL MEMS 30-Nov-07 23:59
    LMCOMSOL RF 30-Nov-07 23:59
    LMCOMSOL CADIMPORT 30-Nov-07 23:59
    LMCOMSOL PROE 30-Nov-07 23:59
    LMCOMSOL CATIA4 30-Nov-07 23:59
    LMCOMSOL CATIA5 30-Nov-07 23:59
    LMCOMSOL INVENTOR 30-Nov-07 23:59
    LMCOMSOL VDA 30-Nov-07 23:59


    Make sure you have borrowed all the license features you need. The borrowed license keys always include the SERIAL license feature.
  7. When you have borrowed all the license keys you want, disconnect from the network. If you want to stay connected for a while longer but do not want to borrow more licenses, type the command

    ./lmborrow -clear

    This does not mean that the borrowed license keys are returned. The license keys remain on your computer until the borrow period expires.

Feedback

Poor | Excellent
Document quality?




« Back to Support Knowledge Base

Disclaimer

COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.

© 1997-2008 COMSOL AB.
COMSOL, COMSOL Multiphysics, COMSOL Reaction Engineering Lab, COMSOL Script and
FEMLAB are registered trademarks of COMSOL AB. Other product or brand names are
trademarks or registered trademarks of their respective holders. All Rights Reserved.