Skip to main content
8-Gravel
December 17, 2015
Solved

Release a licence withou closing Creo

  • December 17, 2015
  • 2 replies
  • 11752 views

In a flexlm with a number of floating licences, I'd like to know if there is a way in which a user can release the Creo licence without closing Creo. This would allow to stop working, lend your licence to another user, and after that, regain the licence and resume your sesion.

Is it posible? Does anybody have a tool to do that?

Thank you!

Carlos

Best answer by MartinHanak

Hi,

when you launch Creo and leave it inactive for some period, it will return the license.

  1. when you start Creo session, Creo license cannot be returned in first 15 or 20 minutes from the session start
  2. the length of period is set on license server in ptc.opt file, by default it is 7200 second
  3. you can return license manually using ptcflush.bat launched from command prompt window
  4. ptcflush.bat needs information displayed by ptcstatus.bat

The above mentioned tools can be used to simulate functionality. Users must be carefull when they are using it.

MH

2 replies

24-Ruby III
December 17, 2015

Hi,

when you launch Creo and leave it inactive for some period, it will return the license.

  1. when you start Creo session, Creo license cannot be returned in first 15 or 20 minutes from the session start
  2. the length of period is set on license server in ptc.opt file, by default it is 7200 second
  3. you can return license manually using ptcflush.bat launched from command prompt window
  4. ptcflush.bat needs information displayed by ptcstatus.bat

The above mentioned tools can be used to simulate functionality. Users must be carefull when they are using it.

MH

8-Gravel
December 17, 2015

Thank you Martin,  that answer is great!

I have found the ptc.opt file and It is set to 7200 as you said. I can simply modify that. I'm not sure if that is already working, but I will try it. Thank you!

For the manual flush, it is good to know that the option exists but it is not very user-friendly. Indeed I couldnt find all the parameters in the ptcstatus.bat to make it work. The command is written as ptcflush [feature][license server][port][handle]. where:

[feature]:  PROE_FLEX3C  ???

[license_server]: xxxx@mylicenseserver (this is the only one I think I know)

[port]: no idea

[handle]:  what?

Do you think it is posible to modify the default ptcflush.bat to add these options?  and launch it from Windows instead of from the system window inside Creo?

Kind regards

Carlos

24-Ruby III
December 17, 2015

Hi,

to get port and handle values, you have to run ptcstatus.bat  - see the following picture.

ptcstatus.png

[feature]:  PROE_

[license_server]: HOMER

[port]: 7788

[handle]:  107

MH

1-Visitor
December 18, 2015

Hi,

please be VERY carefull with an idea to get users such functionality. If some of your users is curious you can have troubles soon. Any user can use not only this functionality from FlexNet commands set. Any user is also able to shutdown the whole server!!! Even though he has no rights. He can simply send a command to the server via network... and you have no chance to block him.

     Kind regards

         Jan

24-Ruby III
December 18, 2015

Hi,

I think that regular user does not have administrator access rights on the server and therefore he cannot turn on/off services on the server ...

MH

1-Visitor
December 18, 2015

Hello,

you are not right. Anobody can does that from his computer without any extra rights, unfortunatelly.

      Kind regards

            Jan