Flexman 4 - 1 Installation and Configuration Guide
Flexman 4 - 1 Installation and Configuration Guide
Flexman 4 - 1 Installation and Configuration Guide
1
Installation and Configuration Guide
Disclaimer
Information of a technical nature, and particulars of the product and its use, is given by AVEVA
Solutions Ltd and its subsidiaries without warranty. AVEVA Solutions Ltd and its subsidiaries disclaim
any and all warranties and conditions, expressed or implied, to the fullest extent permitted by law.
Neither the author nor AVEVA Solutions Ltd, or any of its subsidiaries, shall be liable to any person or
entity for any actions, claims, loss or damage arising from the use or possession of any information,
particulars, or errors in this publication, or any incorrect use of the product, whatsoever.
Copyright
Copyright and all other intellectual property rights in this manual and the associated software, and every
part of it (including source code, object code, any data contained in it, the manual and any other
documentation supplied with it) belongs to AVEVA Solutions Ltd or its subsidiaries.
All other rights are reserved to AVEVA Solutions Ltd and its subsidiaries. The information contained in
this document is commercially sensitive, and shall not be copied, reproduced, stored in a retrieval
system, or transmitted without the prior written permission of AVEVA Solutions Ltd. Where such
permission is granted, it expressly requires that this Disclaimer and Copyright notice is prominently
displayed at the beginning of every copy that is made.
The manual and associated documentation may not be adapted, reproduced, or copied, in any material
or electronic form, without the prior written permission of AVEVA Solutions Ltd. The user may also not
reverse engineer, decompile, copy, or adapt the associated software. Neither the whole, nor part of the
product described in this publication may be incorporated into any third-party software, product,
machine, or system without the prior written permission of AVEVA Solutions Ltd, save as permitted by
law. Any such unauthorised action is strictly prohibited, and may give rise to civil liabilities and criminal
prosecution.
The AVEVA products described in this guide are to be installed and operated strictly in accordance with
the terms and conditions of the respective licence agreements, and in accordance with the relevant
User Documentation. Unauthorised or unlicensed use of the product is strictly prohibited.
First published October 2008
AVEVA Solutions Ltd, and its subsidiaries
AVEVA Solutions Ltd, High Cross, Madingley Road, Cambridge, CB3 0HB, United Kingdom
Trademarks
AVEVA and Tribon are registered trademarks of AVEVA Solutions Ltd or its subsidiaries. Unauthorised
use of the AVEVA or Tribon trademarks is strictly forbidden.
AVEVA product names are trademarks or registered trademarks of AVEVA Solutions Ltd or its
subsidiaries, registered in the UK, Europe and other countries (worldwide).
The copyright, trade mark rights, or other intellectual property rights in any other product, its name or
logo belongs to its respective owner.
Page
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1:1
Flexman 4.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1:1
Upgrading from Flexman 3.1 or Flexman 3.1 SP1. . . . . . . . . . . . . . . . . . . . . . . . 1:1
Installing a Network License Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1:2
Special Circumstances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1:2
Further Information and Guidance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1:2
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:1
FLEXlm License Finder Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:1
Firewalls and Port Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:2
License Error -8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:3
C:\flexlm Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:3
License Server Filling-up with Licensing Daemons . . . . . . . . . . . . . . . . . . . . . . 7:4
Port Number Already in Use Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:4
License Server List Not Working . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7:4
ii
Introduction
1.1
Flexman 4.1
Flexman is the AVEVA wrapping around the FLEXnet licensing system, previously called
FLEXlm. AVEVA product releases from the end of 2008 require Flexman 4 so any existing
Flexman 3 License Service must be upgraded. After upgrading to Flexman 4.1, AVEVA
software that has been running with a Flexman 3.1 license service will still run:
1.2
C:\aveva\Flexman4.1
The steps are described in detail in License Service Installation & Administration, but in
brief:
1:1
1.3
Copy the current license file into the Flexman 4.1 folder
Remove the Flexman 3.1 License Service and then un-install Flexman 3.1
1.4
Special Circumstances
Installation can be more complex in certain situations and the following are covered in
Special Situations:
1.5
Windows VISTA.
Machines that are locked-down so that users have restricted access rights.
Another product such as AutoCAD that also uses FLEXnet is already in use.
1:2
1:3
1:4
2.1
Components Installed
Description
Server Install
lmgrd.exe 11.5
lmtools 11.5
cadcentre.exe 4.1
FlexmanConfig 4.1
Client Install
FlexmanConfig 4.1
Documentation
The user needs Server install to set up a license service - this will be a server machine on
the network, a laptop or a free-standing desktop computer.
The Client install provides the FlexmanConfig tool for configuring the connection to the
License Server and is needed wherever an AVEVA product is being installed.
2.2
2:1
Copy the highlighted text and send it in an e-mail with your request for a license.
2:2
Where there are two or more Ethernet adaptors on a PC, decide which Ethernet address
should be used for the license file and inform AVEVA. This must be for a network adaptor
that will never be disabled.
Note: The utility lmtools is used to obtain the required HostID information but does not
handle the situation of two or more Ethernet addresses, and is not recommended.
Another possibility is to use the DOS command IPCONFIG -ALL
Given the hostname and Ethernet address, the AVEVA License Administrator will send a
license file specific to this machine.
2.3
AVEVA products can not be used until a license service is started using this license file.
2.4
Edit the Port Numbers on the SERVER and VENDOR lines if required.
(Refer to Editing the License File Header and Firewalls and Port Numbers).
Rename the new licence file to license.lic. Using this name makes it easier to update
the license file in the future.
Note: NOTEPAD must be used, for the edit Using Word or Wordpad for the edit can
introduce additional but unseen changes in the license file.
2:3
2.5
Other changes to the license file are not normally required and the License Service will
reject any INCREMENT lines that have been changed.
Check when finished that there is only one license file present in the folder and that it is
called license.lic - especially if the file has been edited in-situ.
Move any license file not being used into a sub-folder called Old License Files.
On the Service/License File tab make sure that Configuration using Services option
is selected.
Always tick LMTOOLS ignores license file path environment variables when
LMTOOLS is being used to configure a License Service.
Note: These screenshots are based on LMTOOLS 11.5 running on Windows XP SP2.
Other versions may have a different appearance.
Important: Take Care When Upgrading From Flexman 3.1.
In the next step type in a new name so that a new License Service is created.
Failure to do this will cause the existing License Service to be redefined. This
will work but means that you will be unable to revert quickly back to the
Flexman 3.1 License Service if you need to resolve any issues with the new
Service.
Select the Config Services tab: There are 4 fields and 2 tick boxes to complete:
2:4
2:5
Tick the Use Services box [1] and then Start Server at Power Up box [2]. Click the Save
Service button [3] and confirm Yes when prompted
2.6
2:6
2:7
2.7
2:8
2.8
This shows what license features are now available from the License Server, by default for
all License Servers running on the network, the list can be narrowed by specifying an
individual server.
Note: Before re-running Perform Status Enquiry click on Edit>Clear Window to empty
the window of any previous enquiry results.
Using the Task Manager
Another way of confirming that the License Service is running is to use the Windows Task
Manager. Select the Processes tab and look to see that there is one cadcentre.exe
process and at least one lmgrd.exe process running. With some versions of FLEXnet, or if
running a product from another vendor that is also licensed with FLEXnet, it is possible to
see two or more lmgrd processes running, but this is normal.
Note: Tick Show Processes from all users in the Task Manager, to display correctly.
2:9
2.9
Make sure that the name of the Flexman 3.1 License Service is selected.
Un-install the Flexman 3.1 License Service using Control Panel > Add/Remove
Programs.
2:10
If it does not already exist, create a sub-folder named Old License Files, and move the
current license file down into it.
Rename the new licence file so that it has the same name as the old license file it is
replacing (e.g. license.lic).
Edit the license file header, if necessary, so that the Port Numbers match those in the
previous license file; there is no need to make any other changes to the license file.
Check that there is only one license file present in the folder - especially if a license file
has been edited and saved with a different name in-situ.
3:1
Select the name of the Windows Service corresponding to your License Service.
Check the state of the license service using the lmtools utility or by inspecting the
debug.log file.
Note: This is the preferred approach to using lmtools, as it is quicker and should avoid
interrupting programs running during the update process. In particular be advised
against using the lmtools ReREAD facility, which only partially updates the license
service.
3:2
4.1
FlexmanConfig Tool
AVEVA products need to know where to find an active License Service running a license file
from AVEVA. FLEXnet tries to be helpful by searching through all the locations it knows
about. Unfortunately, there are rather too many possibilities and as a result the behaviour of
FLEXnet can seem unpredictable.
AVEVA recommends the use of our configuration tool FlexmanConfig to get a full picture of
the various settings involved and for making any required changes.
The simplest and most reliable approach is to set the vendor-specific Registry Entry, such
as CADCENTRE_LICENSE_FILE, and remove all other settings, as shown here:
4:1
Note: Take care not to delete settings belonging to other vendors' software products also
licensed with FLEXnet that use the LM_LICENSE_FILE setting.
Click Set for each change made and the new settings will only take effect after Save
and Exit have been clicked.
AVEVA recommends using the Port@Host format to avoid problems with firewalls.
4.2
Environment Variable:
CADCENTRE_LICENSE_FILE
Registry Entry:
CADCENTRE_LICENSE_FILE
Environment Variable:
LM_LICENSE_FILE
Registry Entry:
LM_LICENSE_FILE
A blank USER Environment Variable setting has the effect of disabling a SYSTEM setting of
the same name.
Any one of these settings can be a list of three license servers separated by commas -This
is how a Three Redundant Server configuration is defined (see License Server List).
Usually, any one of these settings can be a list of license servers separated by semi-colons.
This is how a License Server List is defined. (See Running the License Service in a Virtual
Machine).
AVEVA Products built to run with Flexman 3.1 (effectively all product releases prior to the
end of 2008) have the following limitations that have since been resolved:
Three Redundant Server provides resilience for only one server failure (see License
Server List).
A License Server List will provide resilience if the first server in the list fails
completely. However, if the first server is active but all the licenses in use, any licenses
available on other servers in the list will be ignored.
Once an AVEVA product has successfully obtained a license it updates the Registry
Entry CADCENTRE_LICENSE_FILE.
If an AVEVA product can not find an active License Server it will display a pop-up dialog
box requesting the location of a License Service. If successful, this would result in
setting the Registry Entry CADCENTRE_LICENSE_FILE.
If you set the Environment Variable LM_LICENSE_FILE then run an AVEVA product it
will update Registry Entry CADCENTRE_LICENSE_FILE. Any subsequent changes to
that Environment Variable would then be ignored because of the search order
described above. This is why AVEVA recommends that you use the Registry Entry:
CADCENTRE_LICENSE_FILE.
4:2
5.1
Anchor the license file to a USB dongle that can be moved between servers
5.2
To achieve a meaningful level of resilience the three servers and the networking
hardware must all be on an uninterruptible power supply.
A special license file must be ordered that includes all three hardware IDs on three
SERVER lines in the license file. The customer must specify the hardware ID's in the
required sequence of Primary, Secondary, Tertiary.
5:1
A copy of the same license file must be installed on each of the three machines.
Do not use three virtual machines on the same physical machine for a three redundant
server configuration - the physical machine remains as a single point of failure.
Note: There is a bug in the version of FLEXlm used in AVEVA products released before the
end of 2008 and that used Flexman 3.1. This bug limited the resilience of a threeserver configuration to surviving the first hardware failure: resilience was not reestablished without restarting all three of the License Services.
The solution for this problem is to set the location of the license services to a list of
license files separated by semi-colons, using the full pathname of the license files.
This requires mapped network drive letters. This is the only situation in which we
recommend the use of a license file path rather than the Port@Host format.
5.3
5.4
5:2
Special Situations
6.1
6.2
Windows Vista
Note: Only authorised AVEVA product releases can be run on a Vista machine.
A machine running Vista Business or Vista Enterprise can be used for the Flexman 4.1
license service. Vista is much more protective of its Registry Settings so care is needed
when configuring a Vista PC to access the License Service.
Note: It is recommended that the user always uses the utility FlexmanConfig included as
the Client Install with Flexman 4.1 to be sure of correctly configuring access to a
License Service.
6.3
Locked-down PCs
Some companies operate a strict policy of 'locking-down' machines so that the user has
write access only to specified folders. It may not be possible in this situation for
FlexmanConfig to create Registry settings, in this case the User Environment Variable
setting must be used instead.
6.4
6:1
other supplier's software is made. Use FlexmanConfig and adjust the settings for the
cadcentre Vendor Daemon only. Take special care not to damage the Shared License
Settings needed by other products.
There is believed to be bug in the version of lmtools 10.5.0 distributed with AutoCAD. Before
reporting a problem to AVEVA, try using version 11.5 lmtools that is included in the Server
install of Flexman 4.1.
Note: When running products using FLEXnet licensing from different suppliers, it is
possible to see many lmgrd License Manager Daemons running, but this is normal.
6.5
6.6
6.7
6:2
Troubleshooting
7.1
This indicates that something has gone wrong either with the settings on the user's PC or
with the License Service itself.
Note: AVEVA recommends to Cancel this dialog box. The following error box will be
displayed and the exact wording will vary depending on the circumstances. Click OK
to dismiss the error box and follow the Troubleshooting hints below.
7:1
Recommended approach:
7.2
Run the Flexman Configuration tool FlexmanConfig and refer to the advice in Updating
a License File of this document.
The License Administrator should check the status of the License Service and look for
any error messages in the debug.log file.
If the fault cannot be identified locally, request help from AVEVA via e-mail. Include as
evidence: the current license file; the debug log-file; a screen shot showing any error
messages; and the analysis report from the Flexman Configuration tool.
7:2
With a SERVER line set as in the example license file shown, using FlexmanConfig set the
Vendor Specific Registry Entry to:
744@LGSERV01
Because FLEXnet is used by so many software suppliers, port 744 is widely recognised as
the standard port for FLEXnet and is often reserved for this application. However, firewalls
are becoming increasingly diligent at shutting down ports and it may be necessary for this
port to be opened manually by a System Administrator before the license manager can
function.
The VENDOR line in the License File does not, as supplied, specify a port number.
To overcome problems with firewalls AVEVA recommends also adding a port number to the
VENDOR line in the license file. For example:
7.3
License Error -8
There are two circumstances likely to give this error:
1. Attempt to Install or Run an AVEVA Product via Remote Desktop or Citrix
The license file received from AVEVA may not support working via Citrix or Remote
Desktop using Terminal Services. License error -8 referring to the CADCID license
feature is characteristic of this problem.
Contact the account manager if experiencing this problem, the user may require a
license to enable remote running of AVEVA products.
2. CLOCKING the Machine on which the License Service is Running
Setting the system clock back is a trick sometime used to attempt to extend the life of a
license file. The License Service recognises that this has happened and refuses to
serve licenses.
AVEVA advice is that it is necessary to completely re-install the operating system to
clear this fault. Other than moving between time-zones, changing the system clock on
your machine is not recommended.
7.4
C:\flexlm Folder
The version of FLEXlm used in Flexman 3.1 created lock files in the folder C:\FLEXlm on the
license server machine.
After upgrading to Flexman 4.1 the C:\FLEXlm folder is no longer required because a
different mechanism is used. However, if you are running the Tribon M3 product at SP5 or
7:3
earlier or any products based on FLEXlm licensing from other vendors, this folder may still
be used.
If the C:\flexlm folder is still needed, a problem can arise if access permissions to the C:
drive are too restrictive. The License Service can fail to start if files cannot be created in the
folder or this folder cannot be created in the first place.
7.5
7.6
Make sure that port numbers are specified in the license file on both the SERVER and
VENDOR lines.
In the FlexmanConfig tool, specify the Vendor Specific Registry Setting using the
Port@Host format.
7.7
Using LMTOOLS, select each License Service in turn and STOP the service.
7:4
The License Sequence Number changes each time the license file is renewed or updated.
Header:
8:1
Increment Lines:
A Package line does not define any entitlement on its own - it just gives a name to a
collection of component Features. The entitlement is defined in an Increment line which
follows.
The Increment line defines how many concurrent uses (seats) of a feature the customer is
entitled to use and when the entitlement will expire.
If the Increment refers to the name of a Package, the count applies to each of the
component features of the Package.
8:2