cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

FlexNet/lmadmin

STEVEG
21-Topaz I

FlexNet/lmadmin

I haven't seen anything fairly recent about the new version.

We have users in different buildings.  We constantly have problems where a duplicate license is taken.  The users are not actually using two licenses.  I believe what is happening is our network causes Creo to not be able to communicate fully.  The FlexLM software we use can't figure out what's going on so it issues a second license to a user even though they are running only one session.  This causes our available licenses to be used up at times.

I am hoping the new version of FlexNet will fix this.


1. Has anyone had any problems with FlexNet Admin License Server?

2. I haven't yet changed the default time-out in the ptc.opt file.  I will be soon but I wonder what would happen in this situation.  A user has a license and has a modified file.  Doesn't save it but leaves for a meeting.  The license server takes the license back because of the time-out.  But when the user gets back there are no licenses available.  Will the user still be able to save the file?

I also like the idea of web access in the new version since I don't have access to the server.

20 REPLIES 20

Hi Steve,

we are using Web license since last year without any kind of issue.

Following David Haigh‌'s presentation I've also modified the default time-out from 7200 to 1200.

This way we have reduced the use of concurrent licenses without causing problems for users, because we have modified also two entries in config.pro to avoid the issue related to the license no longer used for a certain period of time.

Monitoring the use of Creo with Performance Advisor I have not encountered unexpected exits due to the use of licenses.

Marco

Thank you Marco.

I had looked at that presentation from David.  That is part of the reason I asked my questions.

I still would like to know what happens in the situation I describe in #2.  Would the user lose their work if there are no licenses available?  I will probably change the time-out value, but that depends on that answer.  I guess it should be ok since there are many, many companies that change it and I haven't heard of anyone saying it's a problem.  However, I am still cautious and want to know for sure what would happen.

StephenW
23-Emerald II
(To:STEVEG)

It gives you options, SAVE, EXIT, or RETRY (license acquisition).

STEVEG
21-Topaz I
(To:StephenW)

So even though the license is not available it allows them to save what they have?  Even if they have several files currently open?  That is fantastic if so.

TomU
23-Emerald IV
(To:STEVEG)

You might want to test it.  I think the save may only be for the currently active window...

StephenW
23-Emerald II
(To:TomU)

I would agree with Tom, you should test it. We used to be right on the hairy edge of licenses but that has changed since oil prices have dumped. Now we are swimming in unused licenses and I can't verify. Like Ben said, I've never knowingly been kicked out of pro due to license lost. Sometimes I had to wait till a license became available (or I would boot someone and steal their license, haha, the perks of knowing how to do it).

BenLoosli
23-Emerald II
(To:STEVEG)

Losing a license does not cause the session to end. All unsaved data is still in session and can be saved even without a license. If the user tries to do any work, then he will be prevented from performing that operation until a license becomes available. I know when I get back after being off for a while, I can do 1 or 2 commands before I get the license restored pop-up. I don't have enough users to test using all licenses, but I believe what I described is the proper operation. PTC nor Flexera can afford to have customers lose work because the licenses are all used up. Worse case is the system will force the user to wait for a license.

STEVEG
21-Topaz I
(To:BenLoosli)

I would like to test it but it's difficult.  We don't always have all licenses used up or nearly all.  Then you have to wait for a time before all the licenses ARE taken.

Lastly, you have to let Creo wait for the time-out period.  Besides the fact the license might not get stuck, getting that all timed up is not that easy to reproduce it upon command.

I have a batch file that records every 15 minutes the ptcstatus output.  I just updated it to include looking for duplicate licenses then notifies me if there are.  Maybe I can find something out of that data and also by asking the user if they have had any problems with Creo.  I suspect it's our network but I don't know how that would play into the license being stuck on the server.

STEVEG
21-Topaz I
(To:STEVEG)

I have done some more testing.

A couple suggestions was to change the sleep option on the computer to None.  Change the "Turn off the display" to Never.  Changed the screen saver to None and also uncheck the "On resume, display login screen".

Some users had to make either 1, 2 or all three of these setting.  However, there were a few that had these already set that way.  We were still getting flexlm serving an extra license to users.

This is what I did as a test and it is fully repeatable.  I have done this six times since yesterday.  Four yesterday and twice today and it has happened every single time.

Started Creo.

Unplugged the network connection.

Started a CAD part model and created one feature.

Selected to save the file and got the License is lost dialog box.

Selected the Save button.  It finished saving.

Dialog box only has Save, Exit and Retry.  Left it alone.

Waited 15 minutes.

Plugged the network connection back in.

Selected Retry.

Got the message Regained network license.

Finished saving the model.

Checked the PTC status.  I was issued a second license.

We had opened a call with PTC.  I added a comment to the call on the web about this test and they responded within 5 or 10 minutes.  He was transferring the call to a specialist.

Our FlexLM software is 10.8.10

STEVEG
21-Topaz I
(To:STEVEG)

Update:

One other thing we ended up changing was the default time-out of 2 hours down to 1 hour.  I didn't want to cut it all the way down to 20 minutes.  At least not yet.

However, whether it was changing the time-out or the setting changes mentioned in the above post for power and screen saver, etc., or a combination of them I don't know.

The program I have running that notifies me of duplicate does not notify me nearly as much anymore.  There are still occasions but I actually believe a couple of them is because the user really has two licenses.

I have not heard back yet from PTC about the procedure I outlined above that is repeatable.  I tried it again today to make sure and it still takes the extra license.

Might you be inclined to share your "duplicate license notification" batch file??  This would certainly make my life easier as I sporadically run out of licenses sometimes due to crashes and/or hogs and need to know when I need to flush...

Much appreciated..

STEVEG
21-Topaz I
(To:tpetersen)

There might be better code but I'm not a pro in DOS.  I know enough to get what I need.

First I made a copy of the ptcstatus.bat and removed a portion of the code.  The reason for this is because if the output from ptcstat.bat is long then that command prompt windows will pause.  I took that pause out.
I changed this line:    %status_cmd% %forcea% %1 %2 %3 %4 %5 | more %more_flag%
To this:                      %status_cmd% %forcea% %1 %2 %3 %4 %5

Then I send the output of that new ptcstatus file to a text file.  temp_ptc_stat.txt

I always have my computer logged in overnight (but locked) so it can run some programs late at night.  Because of this I put in code to notify me only during certain hours but I still want the program to run.  There are other things this program does.  We have a plant in England so I want to be notified of their duplicates even though I am not here until it's noon their time.

for /f %%a in ('date/t') do set DAY=%%a
if /I %DAY%==Sat goto CLR_VARS
if /I %DAY%==Sun goto CLR_VARS

ver>nul
:: There is a reason for putting the "if %errorlevel%" line below.  DOS says the numbers 8 & 9 is an invalid number used in this way.
:: Numeric constants are either decimal (17), hexadecimal (0x11), or octal (021).
for /f "delims=" %%a in ('wmic OS Get localdatetime  ^| find "."') do set "dt=%%a"
set /A "HH=%dt:~8,2%"
if %errorlevel% NEQ 0 (
  set /A "HH=%dt:~9,1%"
  ver>nul
)

set /A "Min=%dt:~10,2%"

if %HH% LEQ 2 goto CLR_VARS
if %HH% GEQ 16 goto CLR_VARS

if %HH% EQU 15 (
  if %Min% GEQ 30 (
    goto CLR_VARS
))

findstr /C:"                                  (" temp_ptc_stat.txt >> ls-a.txt
for /f "tokens=1 delims=() " %%x in (ls-a.txt) do echo %%x>>ls-b.txt
type ls-b.txt | sort > ls-c.txt

set COMP=<your computername>

type nul>ls-d.txt
for /f "tokens=* delims=" %%a in (ls-c.txt) do (
  (findstr /ic:"%%a" ls-d.txt || >>ls-d.txt echo.%%a)>nul
)

set /A C1=0
set /A C2=0
for /f %%a in (ls-c.txt) do set /A C1+=1
for /f %%b in (ls-d.txt) do set /A C2+=1
if %C1% NEQ %C2% set /A DIF=%C1%-%C2%
if %C1% NEQ %C2% msg /TIME:7200 <your username> /SERVER:%COMP% %DIF% Duplicate Creo License(s) Taken.
del ls-?.txt
del temp_ptc_stat.txt

:CLR_VARS
set C1=
set C2=
set HH=
etc.
etc.

Awesome Steve – I will certainly try this out…

Thank you for sharing!!

STEVEG
21-Topaz I
(To:tpetersen)

I just had one realization on this code.  If you have an optional module then this won't work.  For example, we have one license of the Manikin module.  Since it's tied to a regular module the <username>@<computername> will be listed twice.

myname@mycomputer     PROE_EssentialsI

myname@mycomputer     277

This code lists out only the <username>@<computername> into one file.

Then removes the duplicates and lists them in another file.

It compare the number of entries.

If there is a difference then it notifies you.

I'll take a look to see if it is a quick update.  Otherwise I may have to lave it for a later time.  If I do update it I will post it unless someone else beats.

STEVEG
21-Topaz I
(To:tpetersen)

Updated.

Instead of just this:

findstr /C:"                                  (" temp_ptc_stat.txt >> ls-a.txt

I added one line for each license type.  Although you could add all in one line.  I made separate lines just to keep them easily viewed.  If it's all in one line to me it's a little harder to keep track of.

findstr /C:"PROE_EssentialsI <servername>" temp_ptc_stat.txt >> ls-a.txt

findstr /C:"PROE_EssentialsII <servername>" temp_ptc_stat.txt >> ls-a.txt

findstr /C:"PROE_FlexEng <servername>" temp_ptc_stat.txt >> ls-a.txt

findstr /C:"PROE_FoundationAdv <servername>" temp_ptc_stat.txt >> ls-a.txt

If you wanted to put it in one line the it would look like this:

findstr /C:"PROE_EssentialsI <servername>" /C:"PROE_EssentialsII <servername>" /C:"PROE_FlexEng <servername>" /C:"PROE_FoundationAdv <servername>" temp_ptc_stat.txt >> ls-a.txt

STEVEG
21-Topaz I
(To:STEVEG)

PTC's said we should upgrade our version of FlexLM to FlexNet.  Last Wednesday we updated to 11.11 without the web tools.

That has not fixed the problem.  We still have users getting duplicate licenses even though they don't have a second session of Creo and I can still consistently replicate getting served a duplicate license.

Now they are asking to test adding a different port for the daemon in the license.dat file so we will try that tomorrow.

But what kind of disturbs me is they said PTC doesn't officially support FlexNet on VM.  Can anyone confirm or deny this?

Steve,

have you tried to look into your Performance Advisor for Creo dashboard to verify if sessions are really duplicated?

I had users with duplicated licenses but in my dashboard I saw that they had different start time.

Marco

I have used PA but not much lately.

Sometimes I contact the users to see if they have a duplicate license.

I also can tell it's not the user when all of a sudden there are 5 or 10 duplicate licenses being used.  This doesn't happen much but when it does it means there was an interruption on our network.

STEVEG
21-Topaz I
(To:STEVEG)

We have not had many duplicate licenses for a long time.  I don't know why.  It might be the upgrade of the FlexLM software.  Maybe the network is better.  Or a combination.  It could also be something else.  We still get the duplicate licenses if there are major network issues but we haven't had a bad issue like that in a while.

STEVEG
21-Topaz I
(To:STEVEG)

One other thing we did was that PTC suggested to assign a static port to vendor daemon.  This may have helped too.

Top Tags