Using single PURIFY License to run on different machines (FLEXlm).

Posted on March 7, 2007 by ZDima.
Categories: Product.

Having a single license for PURIFY is not an issue if you need to run PURIFY on different platforms (not at the same time).
Following is an example of FLEXlm configuration where you can borrow a license to run product on another machine.
To do so, just add a fourth field on the DAEMON line for the rational vendor daemon. For example, DAEMON rational /etc/rational /usr/local/flexlm/options/rational.opt

Inside the /usr/local/flexlm/options/rational.opt add following lines:

  1. INCLUDE purify USER <user name>
  2.  
  3. INCLUDE_BORROW purify USER <user name>@<machine name>

Then restart FLEXlm.

In case if you need to switch between users (for example compile under name abc, and run as xyz), I create a small script to this:

  1. #!/ bin / sh
  2.  
  3. CFG=/usr/local/flexlm/options/rational.opt
  4. USER=$1
  5. MACHINE=blue
  6. FLEXPORT=27000
  7.  
  8. # Stop FLEXlm
  9. /etc/init.d/Rational stop
  10.  
  11. sed
  12.   -e "s/^INCLUDE purify USER.*$/INCLUDE purify USER $USER/g"
  13.   -e "s/^INCLUDE_BORROW purify USER.*$/INCLUDE_BORROW purify USER $USER@$MACHINE/g"
  14.   $CFG > $CFG.tmp
  15.  
  16. cp $CFG.tmp $CFG
  17.  
  18. # Wait when FLEXlm sockets are freed
  19. while netstat -a 2>&1 /dev/null | grep $FLEXPORT; do sleep 10; done
  20.  
  21. # Start FLEXlm
  22. /etc/init.d/Rational start

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>