01-13-2016 11:18 AM
Hi Folks,
im not sure if it is possible but i ask anayway.
We have the situation that some of our notebooks have 1 or 2 licenses. Normally you allways have to switch them in the LM tools . But i would like to do this with a script so i just need to klick the one for license a and after i closed the session of nx and i need the other on i want to use the license B.
Any ideas
Solved! Go to Solution.
01-13-2016 12:42 PM
I've done this with seperate .bat files to launch which ever "type" of NX session I wanted. From memory, you have to set "UGS_LICENSE_BUNDLE=<name_of_bundle> to be set by the batch file, and then it launches NX. I edited files from the NXcustom setup that Rob Cohon created when I was doing it, but it's been a while ago.
01-13-2016 12:45 PM - edited 01-13-2016 01:01 PM
First off, why the TWO licenses? Are we talking about licenses for TWO different versions of NX or licenses that actually have different sets of modules? Keep in mind that the License file that you got with NX 10.0 will still be good for running any version of NX back to NX 5.0.
01-13-2016 12:49 PM
Hi,
thx for your respond. It is a little bit complicated to explain why two licenses. First im talking about the license itself, not the containing bundles, that i know.
The problem i have in our company is, that we are splited in three company. so evry company has it license file. (dont ask me why they do this).
Me and three other colleagus have to work for all three, and if we make designs for A we need License A, and so on. All Native no Teamcenter.
01-13-2016 01:16 PM
Be aware that with NX10, the ENV only works if you NEVER use the NX "Licensing Tool" to select bundles.
The NX Tool defines them in the registry, and the registry setting over-rides the ENV variable (yech! Why did Siemens change this $%^$@! ??)
Once the registry entry is created, you have to delete it (not just set the value to "blank") to use the ENV again...
Ken
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
01-13-2016 01:30 PM
Note, my earlier response was refering to different bundles, not different license files.
From memory again:
I have done it to point at two different license files(ie servers) though too, again using different .bat files. In this case, I set "SPLM_LICENSE_SERVER=" in the .bat file.
One would read SPLM_LICENSE_SERVER=28000@companyA
the other: SPLM_LICENSE_SERVER=28000@companyB
I would remove SPLM_LICENSE_SERVER from the system properties.
In the "hosts" file, I would map companyA and companyB to the proper IP addresses.
This worked, because the license servers were on differnt machines, at different physical locations.
01-13-2016 02:44 PM - edited 01-13-2016 02:45 PM
I checked with our licensing people and this is what they suggested:
It quite depends on what kind of license file you have and where your license server is.
Here you can simply direct SPLM_LICENSE_SERVER to the proper node-locked license file on your laptop. Easy to do from a batch script.
Assume that licensing is installed to c:\Program Files\Siemens\PLMLicenseServer, and you have 7.x of the tools running, so splm7.lic is the live license file. Say also that you have two license files in that directory, splm7_companya.lic and splm7_companyb.lic then in one script have:
…
copy “c:\Program Files\Siemens\PLMLicenseServer\splm7_companya.lic” “c:\Program Files\Siemens\PLMLicenseServer\splm7.lic”
“c:\Program Files\Siemens\PLMLicenseServer\lmutil.exe” lmreread
and similar commands in the other file as well.
Note that your batch script will have to be updated whenever you upgrade licensing as the splmnn.lic numbering will change.
01-13-2016 03:12 PM
RE: SPLM_LICENSE_SERVER
Check out the "solutions database" Document ID: 002-7007243
Another "Why are they using the registry" $@%$^%!!!
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
01-14-2016 09:38 AM
Hi @Cableguy,
There a another way to do this, and this is pointing to a folder that contains all licenses. There are however, some catches to this. More details on how, and why can be found here:
Do note, this is officially not a supported configuration. But if it works for you...!
Read the doc carefully.
Kind regards,
Dennis
01-14-2016 09:52 AM
Thanks again for all the responses.
The Main Problem ist One Machine and One License Server
Dennis,
i tried to open your document but word told me it is broken. Also if download it. Ist it as PDF available?