edit · print · PDF

Please note that all the SIEpedia's articles address specific issues or questions raised by IAC users, so they do not attempt to be rigorous or exhaustive, and may or may not be useful or applicable in different or more general contexts.

How to borrow an IDL license

The most recent versions of IDL and of the Licence Manager allow a user to "borrow" an IDL licence and use it locally on her laptop without being connected to the network where the server running the floating licences is located. In practice, by borrowing the licence your laptop will acquire a node-locked license for the specified time period.

Thus you can use IDL in a plane, on a beach, on the peak of Mont Blanc, while hang gliding, or anywhere else no Internet access can be obtained (or it's too expensive).

For a detailed and exhaustive description of this functionality, visit the License Borrow Functionality for Floating Licenses webpage.

Here are the basic steps to borrow the IDL license, for Linux and for Mac, taken from the above website.

Note that an IDL version >= 8.0 is required for the borrow facility to work.

If you check out the "IDL license usage" webpage located at http://carlota/cgi-bin/licencias_IDL.pl?sw=detallado, your borrowed license should appear with a (linger: NNNNN) string under the Date/Time column, where NNNNN is a number indicating the length (in seconds) of the borrowing time period.

Note If you wish to install IDL in your laptop (Mac or Linux), please follow the instructions in /net/nas4/inves2/sieinves/invsoft1/IDL_installation_instructions.txt.

Policy

Since a borrowed license is taken off the pool whether you run IDL or not, please borrow it only for those cases in which you absolutely need IDL and you cannot connect to the IAC via VPN. If you use IDL at home, or in some place where an internet access is provided (research center, hotel, conference site, etc.), please set up a VPN connection to the IAC so as to use the IAC floating licenses.

The time limit is supposed to be 30 days (though other users report that the maximum permitted time is two weeks). Please borrow the license only for the time you do need it.

Linux

The instructions below apply to an sh or bash shell. For csh/tcsh, change the command export variable=value to setenv variable value

  1. Make sure the laptop is connected to the internal IAC network (by cable, iacint wifi, of from outside the IAC by VPN). Just launch IDL and check that the correct license is checked out. The string "Licensed for use by" should include some variant of the IAC name. Then exit IDL and close any other IDL session.
  2. Define the variable IDL_DIR pointing to the directory of your IDL installation, for instance
    export IDL_DIR=/usr/local/exelis/idl85/
  3. Change directory to the bin directory of the IDL installation
    cd ${IDL_DIR}/bin
  4. Issue the "borrowing" command, specifying the end of the time period (maximum 30 days) in a dd-mmm-yyyy [hh:mm] format, example:
    ./lmutil lmborrow idl_lmgrd 15-apr-2016 13:00
    (if no time is specified, it will default to 23:59 of the designated date)
  5. Now, launch an IDL session (at this point we are still connected to the network). Exit again.
  6. Clear the borrow environment to avoid accidental check-outs of further borrowed licenses
    ./lmutil lmborrow -clear
  7. Confirm that the license borrowing has worked out with:
    ./lmutil lmborrow -status
    (you should see the vendor, feature and expiration date)

Now disconnect the laptop from internet and launch IDL, to be sure 100% that the borrowing process has been successfull.

A new file has been created in your home, called .flexlmborrow, which contains, in encrypted form, the new node-locked, time-limited license file generated for your laptop.

Enjoy it!

You can also return the borrowed licence before the expiration date (TBD)

Mac OS X

  1. Make sure the laptop is connected to the internal IAC network (by cable, iacint wifi, of from outside the IAC by VPN). Just launch IDL and check that the correct license is checked out. The string "Licensed for use by" should include some variant of the IAC name. Then exit IDL and close any other IDL session.
    Important: all the commands below must be executed in an X11 terminal, not on the Apple terminal.
  2. Define the variable IDL_DIR pointing to the directory of your IDL installation. In a Mac it should be:
    export IDL_DIR=/Applications/exelis/idl85/
  3. Change directory to the bin directory of the IDL installation
    cd ${IDL_DIR}/bin
  • At this stage, proceed exactly as described for Linux above, from point 4.

Return a licence (before expiration date)

Note: Currently this feature does not seem to work.

You can return a borrowed license before the expiration date following these steps

  1. Connect the laptop to the IAC network
  2. Define the IDL_DIR variable as explained before, and cd to the bin directory of the IDL installation.
  3. Type the command:
    ./lmutil lmborrow -return idl
  4. Check that you no longer have a local IDL license
    ./lmutil lmborrow -status
edit · print · PDF
Page last modified on May 29, 2017, at 01:40 PM