|
|||||
License manager installation procedure (UNIX) | |||||
------ |
What you need before installing
Before installing the license manager, you will need the following:
Uncompressing your FLEXlm software
FLEXlm usually comes compressed, either on the OmniMark installation CD-ROM or downloaded from the OmniMark Technologies software download page . For UNIX platforms, the file "omflex40.tar.Z" contains the compressed form of FLEXlm.
To uncompress the license manager package, copy the "omflex40.tar.Z" file into a temporary working directory. Use the following commands to uncompress the software:
zcat omflex40.tar.Z | tar xvf -
zcat omflex40.tar.Z | tar xvpf -
Determining the hostname and hostid of your computer
To determine the hostname and hostid of the computer you are installing FLEXlm on, you need to do the following:
You can obtain authorization codes from your OmniMark Technologies sales representative. To get your authorization codes, you will need the hostid of the computer you will be installing FLEXlm on.
Configuring your UNIX workstation
To prepare your computer to install FLEXlm, follow these steps:
mkdir /opt/local/flexlm-5.12a/bin
cp lmutil lmgrd omnilm_setup omnimarkd /opt/local/flexlm-5.12a/bin/
cd /opt/local/flexlm-5.12a/bin/ ln lmutil lmcksum ln lmutil lmdown ln lmutil lmhostid ln lmutil lmremove ln lmutil lmreread ln lmutil lmstat ln lmutil lmver ln lmutil lmdiag
Installing the license manager for UNIX workstations
To install FLEXlm on your computer, follow these steps:
/opt/local/flexlm-5.12a/bin/omnilm_setup
mkdir /opt/local/flexlm-5.12a/licenses
cp license.dat /opt/local/flexlm-5.12a/licenses/omnimark.dat
The license manager should not be run as a "root" process, as this introduces a security hole into your system. You should direct the output into a log file for debugging; it can be valuable later if you have trouble with the license manager. For instance, if your log file is /tmp/flexlm.log, the following code will start the license manager and run it in the background:
su non-root-username nohup /opt/local/flexlm-5.12a/bin/lmgrd \ -c /opt/local/flexlm-5.12a/licenses/omnimark.dat \ -l /tmp/flexlm.log & exit
The backslash character ( "\" ) indicates that the command is continued on the next line. You may enter the whole command on one line without the backslash, or you may enter it as two lines with the backslash character at the end of the first line.
The "&" is necessary to make the license file run in the background. The "nohup" command is necessary to make sure that the license manager server does not shut down when you log out.
The "su" command starts a new process using the specified user account "non-root-username". The final exit terminates the non-root process.
Note that only port addresses within the range 1024 - 64000 allow a non-superuser to start the license manager software.
Examine the log file to ensure that the license manager started correctly. If the log is empty, you should wait a few minutes and check again. Resource contention problems may only show up after a timeout has expired.
Change your startup file to start lmgrd. If you are not sure where lmgrd should be started from, check with your system administrator.
The form of the command to use in your startup file should be:
su non-root-username -c "umask 022; \ nohup /opt/local/flexlm-5.12a/bin/lmgrd \ -c /opt/local/flexlm-5.12a/licenses/omnimark.dat \ -l /tmp/flexlm.log &"
To test that your FLEXlm installation is working properly once you have installed OmniMark, you may test it by typing the following from your OmniMark directory: omnimark -s test.om
. You should receive "success" as an output.
Uninstalling FLEXlm is a straightforward procedure.
lm down
.
------ |
---- |