On one machine, the NX log file shows:
"Server Setting Came From Persistent Store."
"Bundle Setting Came From Persistent Store."
On another machine, the NX log file shows:
"Server Setting Came From The 'SPLM_LICENSE_SERVER' Environment Variable."
"Bundle Setting Came From The 'UGS_LICENSE_BUNDLE' Environment Variable."
How does NX decide where to go for license server and bundle information?
Which takes precedence, Licensing Tool, or Environment Variable settings?
Solution
The Registry settings (aka Persistent Store) for the default bundle selection
and the license server will always override any environment variable settings.
Prior to NX 9.0, the "License Options" utility outside of NX was used to set /
change a default value for the bundle selection that was stored in the USER
environment variable "UGS_LICENSE_BUNDLE". For example,
Start --> Programs --> Siemens NX 8.5 --> NX Licensing Tools --> License
Options --> Bundle Selection
UGS_LICENSE_BUNDLE = ADVDES;MFG
As of NX 9.0, the "License Options" utility outside of NX was replaced by the
"Licensing Tool". However, if the Licensing Tool is used to set / change a default
value for the bundle selection, the value for 'NX_BUNDLES' key will be stored
in the User Registry and will take precedence over the value in (User)
environment variable "UGS_LICENSE_BUNDLE" if set, rendering the variable
ineffective. For example,
Start --> Programs --> Siemens NX 9.0 --> NX Licensing Tools --> Licensing
Tool --> Bundle Settings
[ HKEY_CURRENT_USER\Software\Siemens_PLM_Software\Common_Licensing]
NX_BUNDLES = "ADVDES;MFG"
NOTE: The variable UGS_LICENSE_BUNDLE is honored by NX9 and later versions as
long as Licensing Tool has not been used to set or change the bundle setting.
As of NX 10.0, if the external Licensing Tool is used to edit the 'License
Server' setting, the value for 'NX_SERVER' will be stored in the User Registry
and will take precedence over the value in System variable
"SPLM_LICENSE_SERVER", which is normally created during the installation of
NX. For example,
Start --> Programs --> Siemens NX 10.0 --> NX Licensing Tools --> Licensing
Tool --> Environment Settings
[HKEY_CURRENT_USER\Software\Siemens_PLM_Software\Common_Licensing]
NX_SERVER = "28000@barney"
NOTE: If the Registry keys for NX_BUNDLES or NX_SERVER exist, and even if the
values are 'blank' or empty, they can cause confusion if the values do
not match the values of the corresponding variables UGS_LICENSE_BUNDLE
and SPLM_LICENSE_SERVER.
For example in NX11, if the value for NX_BUNDLES is BLANK in the registry but
the value for UGS_LICENSE_BUNDLE is set to ADVDES;MFG -
- Licensing Tool will report "No Bundles"
- "Licensing Information Section" in the NX syslog will report
- "0 bundles in use"
- "Bundle Setting Came From Persistent Store."
- Windows environment variable UGS_LICENSE_BUNDLE exists (set to ADVDES;MFG).
- NX syslog reports UGS_LICENSE_BUNDLE variable in the "System Environment Variables" section with the value "ADVDES;MFG".
NOTE: The only way to make the variables effective again is to DELETE the
Registry keys 'NX_BUNDLES' and 'NX_SERVER' from the User registry if they exist.
Notes and References
(1) Exception
Note that since the registry setting for NX_SERVER pre-dates NX9, the registry license server setting is actually not effective for NX9. NX9 only uses the SPLM_LICENSE_SERVER environment variable to find the license server.
Hardware/Software Configuration
Platform: INTL64
OS: window
OS Version: 764SP1
Product: NX
Application: SYSTEM
Version: V11.0.2
Function: SYSTEM_TOOLS
Ref: 001-8978302