You can install Parasoft software on different machines and use a USB HASP Key to provide a machine ID when connecting to License Server. The USB dongle provides a stable machine ID for License Server so that the rest of the hardware can be changed without needing to request new licenses from Parasoft. Contact your Parasoft representative for additional information.
Enabling HASP Key on Windows
- Run the stopLS.bat script located in the
<LS_INSTALL>/appdirectory to stop Tomcat Server. Open startLS.bat file in an editor and add the
-DuseExternalLock=trueargument to theJAVA_OPTSconfiguration:set JAVA_OPTS=%JAVA_OPTS% -DuseExternalLock=true
- Run the startLS.bat script located in the
<LS_INSTALL>/appdirectory to start Tomcat Server.
When the USB HASP key is removed, the machine ID will revert to the original ID. As a result, License Server will no longer provide licenses.
Enabling HASP Key on Linux
- Run the stopLS.sh script located in the
<LS_INSTALL>/appdirectory to stop Tomcat Server. Open startLS.sh file in an editor and add the
-DuseExternalLock=trueargument to theJAVA_OPTSconfiguration:export JAVA_OPTS="$JAVA_OPTS -DuseExternalLock=true"
- By default, USB devices are configured with 66* permissions, but USB HASP keys require 666. Locate the udev.rules file responsible for USB devices on your Linux distribution and modify the
usb_deviceentry to useMODE="0666". On Ubuntu 18.04, for example, the configuration would be set in the 50-udev-default.rules file located in the/lib/udev/rules.d/directory. Execute the following command:
udevadm control --reload-rules
Plug the USB HASP key into your machine. If the USB HASP key is already plugged in, run the following command as the root user to programmatically insert key:
udevadm trigger
- Run the startLS.sh script located in the
<LS_INSTALL>/appdirectory to start Tomcat Server.
When the USB HASP key is removed, the machine ID will revert to the original ID. As a result, License Server will no longer provide licenses.