Ugslicensing User Guide
Ugslicensing User Guide
Caution:
You should be completely familiar with the information provided in the Siemens PLM Software
Licensing User Guide prior to reading the information in the Acresso License Administration
Guide.
Siemens PLM Software Licensing license server has its own installation. For details on installing and starting
Siemens PLM Software Licensing, please refer to the installation guide.
Note:
We recommend that the license file be placed on the license server node only.
Application Program
A software package that uses Siemens PLM Software Licensing for its license monitoring is usually run from
the client. The obvious example is NX but could include other applications. The application program must
connect to the ugslmd daemon to be issued licenses.
# Server line
SERVER serverA COMPOSITE=08002b42b116 28000
# Vendor daemon line
VENDOR ugslmd
# Bundle
PACKAGE NX11110 ugslmd 26.0 \
COMPONENTS="NX11110_3d_to_2d_flattener NX11110_assemblies \
NX11110_c_p_p_runtime NX11110_dotnet_runtime NX11110_drafting \
NX11110_dxf_to_ug NX11110_dxfdwg NX11110_features_modeling \
NX11110_gateway NX11110_grip_execute NX11110_iges \
NX11110_nx_freeform_1 NX11110_nx_sheet_metal \
NX11110_pcf_package_file NX11110_pv_ugdatagenerator \
NX11110_sla_3d_systems NX11110_solid_modeling \
NX11110_step_ap203 NX11110_step_ap214 NX11110_ufunc_execute \
NX11110_ug_collaborate NX11110_ug_kf_checker \
NX11110_ug_kf_execute NX11110_ug_smart_models \
NX11110_ug_to_dxf NX11110_ug_web_express \
NX11110_ugopen_menuscript" OPTIONS=SUITE ck=81 \
SIGN="1BEC 143A A5FB 9942 E51D EB73 C77B E6DF 5085 \
8628 2893 D824 8DA1 7F70 1D89 17AA 08D7 E953 F4AB \
B837 00F2 7BD5 D33F 8A12 AD62 BEAB 2C1B 4D3F 2C55 A291"
# Floating Feature(s)
INCREMENT cam_base ugslmd 26.0 permanent 56 \
SUPERSEDE DUP_GROUP=UHD user_info="cam_base module" \
ISSUER="Siemens PLM Software" ISSUED=30-Aug-2007 ck=19 \
SIGN="11ED 1ABE 0ED4 853C 4F41 602B D7A9 A6A7 8511 77CE \
66E1 16E4 DFEF C891 7E7A 0480 FE0B 8D54 A7E9 29A8 DDE1 \
68CF B4AA 1DD5 53E8 F2DF 009D 9F7C 67AD 7BC9"
INCREMENT gateway ugslmd 26.0 permanent 56 \
SUPERSEDE DUP_GROUP=UHD user_info="gateway module" \
ISSUER="Siemens PLM Software" ISSUED=30-Aug-2007 ck=179 \
SERVER Line
EXAMPLE:
SERVER serverA COMPOSITE=08002b42b116 28000
The SERVER line specifies the node name and hostid of the license server and the port number of the license
manager daemon (lmgrd). Normally, a license file has one SERVER line. Three SERVER lines indicate that
you are using a redundant server configuration.
Note:
Do not delete SERVER lines from a license file because the hostids from the SERVER lines are
encrypted into the passwords on every INCREMENT / FEATURE line.
VENDOR Line
EXAMPLE:
VENDOR ugslmd
The VENDOR line specifies the name of the vendor daemon (ugslmd).
PACKAGE Lines
EXAMPLE:
The INCREMENT / FEATURE line describes the license to use the product.
The vendor daemon (ugslmd) processes only the first FEATURE line for a given feature.
SYNTAX:
INCREMENT name vendor daemon version exp. date # of licenses \
HOSTID=hostid SUPERSEDE DUP_GROUP=UHD user_info="<Optional Text>" \
ISSUED=dd-mmm-yyyy ck=nnn SIGN=”nnnn … nnnn”
name The name given to the license module by Siemens PLM Software.
vendor daemon The name of the Siemens PLM Software vendor daemon, ugslmd,
that serves this feature.
version The highest version of this feature that is supported by this license.
exp. date The expiration date. (If this field is set to "permanent", then the
license never expires.)
HOSTID=hostid The string returned by the "lmutil lmhostid" command. Used only
SUPERSEDE All licenses issued before the date specified in ISSUED= are
superseded by this line and become ineffective.
user_info="<Optional Text>" You can change or delete this field. A user_info description for
INCREMENT / FEATUREs, will be used by the License Options
interface. Do not change this field for the "server_id" feature, as
this value is your WebKey access code.
Note:
Do not delete SERVER lines from a license file because the hostids from the SERVER lines are
encrypted into the passwords on every INCREMENT / FEATURE line.
Hostname
This is the hostname for the license server. The hostname is limited to 32 characters. The string returned by
the UNIX "hostname" or, on some systems, "uname -n" command. On Windows use the value returned from
the Command Prompt "hostname" command. If you don‟t supply the hostname to Siemens PLM Software
when requesting a license file, "YourHostnameX" or "this_host" is used in the license file as a place holder for
the actual hostname and should be replaced with the real hostname. The proper hostname value is used on the
client side for setting UGS_LICENSE_SERVER to port@hostname.
Port Number
This is the TCP port number used by the client application to communicate with the license server. A port
number is required if the license file is a 3-server redundant license file. The initial value is 28000 but can be
changed. The proper port number value is used on the client side for setting UGS_LICENSE_SERVER to
port@hostname.
User_info
The user_info field in the activating INCREMENT / FEATURE line is used to display a descriptive name for
the bundle. You can delete or edit this field to provide a different name. It is not recommended to exceed 20
characters for this field. Do not change this field for the "server_id" license module, as this value is your
WebKey access code.
Use of special characters such as quotes within the user_info field may corrupt the license file, so avoid them.
License file lines are limited to 4096 characters with a „\‟ as a continuation character. If a continuation
character appears in the middle of the user_info field, additional spaces will be displayed by the License
Options dialog. You can correct this by moving a line continuation character before the user_info field and
placing it on the next line.
See the Packages section later in this guide for a description of the Siemens PLM Software Bundle
implementations of Siemens PLM Software Licensing.
Floating / Concurrent Anyone on the network can use the licensed module, up to the
limit specified in the license file.
Node-locked The licensed module can be used only on one node.
Mixed Mixes node-locked and floating licenses in the same license
file.
Node-Locked Licenses
Node locking means the license module can be used only on one node. A node-locked license has a
"HOSTID=" set to the hostid it is locked to, on its INCREMENT / FEATURE line.
EXAMPLE:
SERVER serverA COMPOSITE=08002b42b116 28000
VENDOR ugslmd
INCREMENT gateway ugslmd 26.0 permanent 4 \
SUPERSEDE DUP_GROUP=UHD user_info="gateway module" \
ISSUED=30-Aug-2007 ck=179 SIGN="21ED 1ABE 009D F2DF \
C891 7E7A 0480 FE0B 8D54 A7E9 29A8 DDE1 68CF B4AA 1DD5 \
0ED4 853C 4F41 602B D7A9 A6A7 8511 77CE 66E1 16E4 DFEF \
53E8 9F7C 67AD 7BC9"
INCREMENT drafting ugslmd 26.0 permanent 1 \
HOSTID=12001234 SUPERSEDE DUP_GROUP=UHD \
user_info="drafting module" ISSUED=30-Aug-2007 ck=179 \
SIGN="31ED 1ABE 8511 77CE C891 7E7A 0480 FE0B 8D54 A7E9 \
29A8 DDE1 68CF B4AA 1DD5 0ED4 853C 4F41 602B D7A9 A6A7 \
67AD 7BC9 66E1 16E4 DFEF 53E8 F2DF 009D 9F7C"
INCREMENT drafting ugslmd 26.0 permanent 1 \
HOSTID=1700ab12 SUPERSEDE DUP_GROUP=UHD \
user_info="drafting module" ISSUED=30-Aug-2007 ck=179 \
This allows for one use of drafting on nodes 12001234 and 1700ab12, but two licenses of drafting and four
licenses of gateway to be used anywhere else on the network. Nodes 12001234 and 1700ab12 can also utilize
the two non-node locked drafting licenses.
Siemens PLM Software Licensing recognizes two types of packages, non-suite packages and suite packages.
Non-suite packages are designed to simplify and shorten the license file. Suite packages are designed to tie
component features together to be checked out as a group. The presence of the OPTIONS field on the
PACKAGE line distinguishes the package types.
Non-suite packages do not use OPTIONS=SUITE in the PACKAGE definition line and act according to the
standard behavior defined for this type of FLEXnet Licensing package.
EXAMPLE:
PACKAGE ACME_GATE ugslmd 26.0 COMPONENTS="gateway \
solid_modeling features_modeling usr_defined_features \
free_form_modeling assemblies drafting iges dxf_to_ug \
ug_to_dxf sla_3d_systems" ck=183 SIGN="61ED 1ABE 8511 77CE \
C891 7E7A 0480 FE0B 8D54 A7E9 29A8 DDE1 68CF B4AA 1DD5 \
0ED4 853C 4F41 602B D7A9 A6A7 67AD 7BC9 66E1 16E4 DFEF \
53E8 F2DF 009D 9F7C"
EXAMPLE:
PACKAGE NX11110 ugslmd 26.0 \
COMPONENTS="NX11110_3d_to_2d_flattener NX11110_assemblies \
NX11110_c_p_p_runtime NX11110_dotnet_runtime NX11110_drafting \
NX11110_dxf_to_ug NX11110_dxfdwg NX11110_features_modeling \
NX11110_gateway NX11110_grip_execute NX11110_iges \
NX11110_nx_freeform_1 NX11110_nx_sheet_metal \
NX11110_pcf_package_file NX11110_pv_ugdatagenerator \
NX11110_sla_3d_systems NX11110_solid_modeling \
NX11110_step_ap203 NX11110_step_ap214 NX11110_ufunc_execute \
NX11110_ug_collaborate NX11110_ug_kf_checker \
NX11110_ug_kf_execute NX11110_ug_smart_models \
NX11110_ug_to_dxf NX11110_ug_web_express \
NX11110_ugopen_menuscript" OPTIONS=SUITE ck=81 \
SIGN="81ED 1ABE 8511 77CE 0ED4 853C 4F41 602B D7A9 A6A7 \
C891 7E7A 0480 FE0B 8D54 A7E9 29A8 DDE1 68CF B4AA 1DD5 \
67AD 7BC9 66E1 16E4 DFEF 53E8 F2DF 009D 9F7C"
UNIX
For UNIX users click on "Options" on the toolbar of the NX Activity Menu or select option 95 on the "no
windows" interface of nxmenu.
License Options allows you to select up to two bundles at once. The order in which the bundle names are
placed into UGS_LICENSE_BUNDLE is the order that the application will attempt to check out any feature.
See also Automatic Bundle Consolidation section for more on this.
When multiple bundles are chosen crossover licensing could occur. Crossover licensing is when one feature
from each bundle is checked out. This causes two bundles to be checked out by one session of NX making the
bundles unavailable to other users. For this reason setting more than one bundle is not recommended unless
you can afford to have two bundles checked out by one session of NX.
The Automatic Bundle Consolidation mechanism reduces crossover licensing. See the Automatic Bundle
Consolidation section for more information on bundle checkout protocol.
Mac
The interface to the Bundle Selection in the CLT for Mac is essentially the same as in the License Options
application on Windows.
In order to select a bundle, you highlight the bundle in the Available Bundle list and click the “Add” button, or
double click the selected item. The item is moved to the Selected Bundle list.
To remove an item from the Selected Bundle list and return it to the Available Bundle list, you can highlight
the bundle you wish to return to the Available Bundle list and click the “Remove” button. Alternatively, you
can double click the bundle to remove it from the Selected Bundle list.
No bundles are actually applied until you click the OK button. When the OK button is pressed, the
modifications to the selected bundle list are written to a file in the user‟s home directory, called “splms_cl.reg”
in the user‟s home directory.
The CLT for Mac allows for product-specification in the bundle settings. Thus, the name of the key for the
bundle value is <PRODUCT>_BUNDLES, where <PRODUCT> is the product in question (such as NX, in
which case the key would be NX_BUNDLES).
UNIX
Edit the file $UGII_BASE_DIR/ugii/.ugii_env and change the line:
#UGS_LICENSE_BUNDLE=
For example
UGS_LICENSE_BUNDLE=ADVDES
To set multiple bundles (maximum of 2):
UGS_LICENSE_BUNDLE=ADVDES:NX11101
For example
UGS_LICENSE_BUNDLE=ADVDES
Note:
On Windows, the License Options interface will not work if you set UGS_LICENSE_BUNDLE under
"System Variables:" as opposed to "User Variables for ... :" in Control PanelSystemAdvanced
(tab)Environment Variables... (Button).
While this mechanism will reduce crossover licensing, it will not eliminate it because some applications don't
release their license until the new application's license has been checked out. In these situations, returning to
Gateway before entering a new application will further reduce crossover licensing.
The following scenarios demonstrate how the Automatic Bundle Consolidation mechanism would work in two
situations.
Borrowing Licenses
1. Install your new license file
2. Start up the license options dialog
3. Click the Borrowing Selection tab
4. Enter a return date
5. Double click the licenses you want to borrow
Note:
The "License" value listed in the license options tool is the user_info field value on each license
module's INCREMENT / FEATURE lines, in the license file. These values correspond to the
short descriptions in the price book for each product. If two different products with similar license
modules end up on the same license file each license module that is similar is combined into one
INCREMENT / FEATURE line. The user_info field is combined in the following format
"Common to Adv Designer Plus and NX M-1 DSgn (FL)". Therefore if you are borrowing "Adv
Designer Plus" you should also borrow all the "Common to…" that contain it in order to get its full
functionality.
6. Click OK
Borrowing with the CLT is similar to borrowing with License Options for Windows. To borrow a license
feature (or features), you select the feature(s) that you wish to select and then choose the return date and time.
Then, you click the “Borrow License(s)” button. Finally, to perform the actual communication with the
license server and borrow the selected items, click the OK button.
To return a borrowed license, you select the item you wish to return, select the “Return License(s)” button, and
click the OK button.
The Reset button will cause all Return Dates to go back to their original state they were in when you initially
launched the tool. Thus, items that were not borrowed will have their return dates cleared, and any items that
had the return date changed or cleared will be reset to their original value when the tool was launched.
Use the server configuration that best suits the needs of your site.
UNIX
Windows
This feature is controlled by the SERVER lines in the license file. To implement Server Redundancy, you
must identify and provide the hostids for three servers where copies of the license file will reside. Upon
receiving this data, Siemens PLM Software generates your license file with the corresponding three SERVER
lines.
You should verify that each license server has Siemens PLM Software Licensing installed on a local file
system. Proceed by starting each license server on each machine in the order they are listed in the license file,
starting with the server listed on the top line.
The redundant server configuration requires at least two of the three servers to be active for the licenses to be
available. No licenses are available until this quorum of two is met. A quorum of servers is defined as a strict
majority of servers listed in the license file, so the quorum in the three-server configuration is two. If only one
of the servers is available, the quorum is not satisfied and no licenses will be available.
One of the servers starts out as the master server and serves licenses. If the master goes down, another server
takes over as master. Once the issue that brought down the master server is resolved, you should reset the
UNIX
If using sh or ksh (Bourne shell or Korn shell), enter the following in /etc/profile:
export UGS_LICENSE_SERVER=28000@serverA,28000@serverB,28000@serverC
Windows
The order in which the servers are listed in the UGS_LICENSE_SERVER is the order in which they are
checked. If the first server is not the master, the client will continue to search through the license servers until
either a master server is found or all three servers have been checked. Once the master server is found, it then
determines if a license is available for the client.
# Server line
SERVER serverA COMPOSITE=08002b32b116 28000
SERVER serverB COMPOSITE=080031700455 28000
SERVER serverC COMPOSITE=0802b17007a8 28000
VENDOR ugslmd
Note:
The port number is required in the license file for redundant server configuration.
Note:
This configuration is also referred to as a license list because of the manner in which it is set up.
The order in which the servers are listed in the UGS_LICENSE_SERVER is the order in which they are
checked. The first server listed should be your primary and closest server.
In this example the client would normally get all of its licenses from ServerA. In the event that ServerA did
not have the license or went down, the license request would move to ServerB. You would receive a license
not available message only if the license was not available on any of the two license server configurations.
lmcksum Prints license checksums. To be used when a license file is manually entered.
lmdown Gracefully shuts down all license daemons (both lmgrd and ugslmd) on the license server
node(s).
lmreread Causes the license daemon to reread the license file and start any new vendor daemons.
lmstat Helps you monitor the status of all network licensing activities.
lmver Reports the Siemens PLM Software Licensing version of a library or binary file.
Location of Tools
The recommended location for these tools is:
UNIX
On the server
/usr/ugslicensing/
On the client
/usr/ugs*/ugflexlm/
Windows
On the server
c:\Program Files\UGS\UGSLicensing\
On the client
c:\Program Files\UGS\NX*\UGFLEXLM\
The LMTOOLS interface combines license administration tools and the utilities in the lmutil executable.
To configure your license service, click the Configuration using Services radio button to access the Configure
Services tab.
Refer to the Acresso License Administration Guide for additional information on LMTOOLS.
Once the license server is up and on-line you can remove the backup of the old license file at your leisure.
Note:
If the license file is for a new version of the application program you need to install the new license
server software, as the daemons may need to be upgraded.
Note:
On SUN UNIX you may run into a problem with the lmgrd and ugslmd daemons not releasing their
port when running ugs_reset (-h). This is caused by the system configuration variable
"tcp_time_wait_interval" having a default value of 240000 milliseconds which is too high. Acresso
recommends a value of 2000 milliseconds.
If you have two or more hardware keys from an Siemens PLM Software distributor only one can be used on a
machine at a time. If you need to use both licenses on the same machine you need request that one of the
features be locked to the other hardware key or unlocked. You should also return the unused hardware key.
Note:
NX supports your hardware key purchased from Acresso. Please refer to Acresso License
Administration Guide for additional information on FLEXID.
Once the license server is up and on-line you can remove the backup of the old license file at your leisure.
Note:
If the license file is for a new version of the application program you should install the new license
server software, as the daemons may need to be upgraded.
Note:
Even though it says "Stopping Server" in the bottom of the window it is actually done stopping the
server.
Note:
Even though it says "Starting Server" in the bottom of the window it is actually done starting the
server.
FLEXnet Licensing Error Explanation (optional)-short paragraph (3-5 lines) explaining problem and possible solutions or
workarounds.
FLEXnet Licensing Minor Error Number-a positive number starting at 1. These numbers are unique error identifiers and are
used by FLEXnet Licensing vendors for more advanced support assistance. Their meaning is not documented.
System Error Number (optional)-a UNIX or Windows OS error code last set by the operating system.
System Error Explanation (optional)-a short sentence (< 80 characters) explaining the system error.
Error messages were improved in v6. FLEXnet Licensing Error Explanation and supporting information are
only available in applications using v6.0+.
These error messages may occur in two formats available with FLEXnet Licensing or may appear in a format
customized by the application.
Format 1 (short):
FLEXlm error text (-lm_errno, minor_num[:sys_errno]) [sys_error_text]
F L E X n e t L i c e n s i n g E r r o r C o d e s
Error
Description
Code
-1 Cannot find license file.
-2 Invalid license file syntax.
-3 No license server system for this feature.
-4 Licensed number of users already reached.
-5 No such feature exists.
-6 No TCP/IP port number in license file and FLEXnet Licensing service does not exist. (pre-v6 only)
-7 No socket connection to license server manager service.
Invalid (inconsistent) license key or signature.
-8 The license key/signature and data for the feature do not match. This usually happens when a license file has
been altered.
Invalid host.
-9
The hostid of this system does not match the hostid specified in the license file.
-10 Feature has expired.
-11 Invalid date format in license file.
-12 Invalid returned data from license server system.
-13 No SERVER lines in license file.
Cannot find SERVER host name in network database.
-14 The lookup for the host name on the SERVER line in the license file failed. This often happens when NIS or
DNS or the hosts file is incorrect. Workaround: Use IP address (e.g., 123.456.789.123) instead of host name.
Cannot connect to license server system.
-15 The server (lmgrd) has not been started yet, or the wrong port@host or license file is being used, or the
TCP/IP port or host name in the license file has been changed.
-16 Cannot read data from license server system.
-17 Cannot write data to license server system.
To obtain the CID, you will have to run a Siemens PLM Software utility called “ugs_composite.exe”. This
utility is provided in the license server media kit or can be downloaded via the Customer Support (GTAC)
website http://support.ugs.com. The utility must be executed on the target license server or on all three
servers in a redundant configuration. The output is a list of 12 digit hexadecimal number that is the CID for
that system.
EXAMPLE :
$ ugs_composite.exe
The UGS Licensing composite hostid is:
"COMPOSITE=37B5ED1AC61D"
EXAMPLE :
c:\ugs_composite.exe
The UGS Licensing composite hostid is :
""COMPOSITE=8F4FFDB2C5EE COMPOSITE=B2C5EE8F4FFD""
Press the ENTER key to continue...
The concept multiple CIDs was introduced to allow the flexibility to use a CID associated with any physical
address. Previously, you were limited to just the CID associated with the device at the top of the network
binding. If you see multiple CIDs, select the first one in the list. If the selected CID changes or disappears
for any reason, use the next CID in the list.
Once the CID information is obtained for a license server, this information must be entered into your
customer record to generate a permanent license file. The CID can be entered using your WebKey account
or by calling your customer service representative (CSR). After the CID has been entered into your
customer record you will be sent a permanent license file for you to install on your license server.
Bundle Consolidation The act of taking checked out license modules consisting of bundled and floating
features and replacing their licensing check outs with licensing check outs from one
single bundle.
CID Acronym for Composite Hostid
Client Any node on the network that requests a license from the license server.
Composite Hostid A 12 digit hexadecimal unique machine identifier distinguished from a FLEXnet
hostid by the key word “COMPOSITE=”. It is used to lock a license file to a
machine.
Concurrent Licensing A software license that specifies a maximum number of users who can use the
software at the same time. Pricing is usually by seat or user. As software is used, a
license is verified and checked out through Siemens PLM Software Licensing.
When the user is finished with the software, the license is checked in for use by
another user.
Feature FEATURE represents any functionality that needs to be licensed.
Floating Feature Feature that is defined on a INCREMENT / FEATURE line or within a non-suite
package.
Hostid Used to uniquely identify a specific machine, if the license or license file is to be
bound to a particular host.
Increment An INCREMENT line can be used in place of a FEATURE line. It can also be used
to incrementally add licenses to a previous FEATURE or INCREMENT line in the
license file.
License The right to use a specific version of a software module. The license specifies what
version of the software can be used and how many users can use that software. A
license can also have a time period associated with it.
License File A text file that stores the licensing data. This file contains information about the
server nodes and vendor daemons, and at least one line of data for each licensed
product.
License Key A 12 character hexadecimal number that authenticates the readable license file text,
ensuring that the license text has not been modified.
License Server The node on a network where license requests are processed.
lmgrd The main license daemon that sends client application requests to the correct vendor
daemon.
Multiple Servers A way of listing more than one potential license server for the client application
program as defined by the UGS_LICENSE_SERVER environment variable on the
client side.