Skip to main content
19-Tanzanite
March 18, 2020
Solved

Instructions on Borrowing a Creo License

  • March 18, 2020
  • 3 replies
  • 14329 views

I'm wondering if anyone has instructions on how to borrow a license with being able to return them early.  I'm looking at the PTC help site and there seems to be a couple of things that are needed but I was hoping someone had the setup in a step by step format.

Thank you,

Brian

Best answer by mtroudt-2

You will need to change 2 settings on the server.xml file.
licenseServer adminOnly="false"
licenseReclaimAllowed="true"

 

On the computer that will borrow add the following user environment variables:
lm_borrow_duration 14
pro_allow_early_return true

To add environment variables go to the system properties in control panel.  On the left side pick advanced system properties.  From there toward the bottom click Environment Variables.  Click new and add the two variables. 

 

You can now borrow a license.

To return you will need run ptcstatus to see what license has been checked out.

 

In command prompt change to your creo install directory \\Common Files\x86e_win64\obj directory. 

You will then run lmutil to return. 

lmutil lmborrow -return -c "server" "license"

example:

lmutil lmborrow -return -c 7788@license_server PROE_DesignEss

 

I made a batch script for each one of my license types as each user borrows different types depending on availability.  The batch scripts are on the desktop and the user needs only to verify what license they have borrowed.

 

Below are examples of two types. 

cd C:\Program Files\PTC\Creo 6.0.1.0\Common Files\x86e_win64\obj

lmutil lmborrow -return -c 7788@license_server PROE_DesignEss

 

cd C:\Program Files\PTC\Creo 6.0.1.0\Common Files\x86e_win64\obj
lmutil lmborrow -return -c 7788@license_server PROE_EssentialsM

 

Change the install directory to your version and the license_server to your server name.

 

 

 

3 replies

mtroudt-27-BedrockAnswer
7-Bedrock
March 18, 2020

You will need to change 2 settings on the server.xml file.
licenseServer adminOnly="false"
licenseReclaimAllowed="true"

 

On the computer that will borrow add the following user environment variables:
lm_borrow_duration 14
pro_allow_early_return true

To add environment variables go to the system properties in control panel.  On the left side pick advanced system properties.  From there toward the bottom click Environment Variables.  Click new and add the two variables. 

 

You can now borrow a license.

To return you will need run ptcstatus to see what license has been checked out.

 

In command prompt change to your creo install directory \\Common Files\x86e_win64\obj directory. 

You will then run lmutil to return. 

lmutil lmborrow -return -c "server" "license"

example:

lmutil lmborrow -return -c 7788@license_server PROE_DesignEss

 

I made a batch script for each one of my license types as each user borrows different types depending on availability.  The batch scripts are on the desktop and the user needs only to verify what license they have borrowed.

 

Below are examples of two types. 

cd C:\Program Files\PTC\Creo 6.0.1.0\Common Files\x86e_win64\obj

lmutil lmborrow -return -c 7788@license_server PROE_DesignEss

 

cd C:\Program Files\PTC\Creo 6.0.1.0\Common Files\x86e_win64\obj
lmutil lmborrow -return -c 7788@license_server PROE_EssentialsM

 

Change the install directory to your version and the license_server to your server name.

 

 

 

19-Tanzanite
March 19, 2020

@mtroudt-2  For the variable lm_borrow_duration 14 I am assuming that 14 is days so I can set it to what I need?  Like 30 would be 30 days.  I haven't tried it yet because I have to stop and restart my license server service to make the changes to the xml file that you mentioned, but this just borrows automatically without the popup coming up, correct?

Thank you,

Brian

7-Bedrock
March 19, 2020

You can borrow more.  I set the default at 14.  I think as long as you set the variable you can adjust it higher.   If i recall without setting the variable you are limited to 5 days.

Mahesh_Sharma
22-Sapphire I
March 18, 2020

@BrianToussaint

 

Details about borrowing license are in article CS29618 and about returning license refer article CS31332

24-Ruby III
March 19, 2020

Hi,

I uploaded a couple of Word documents. They are written in Czech language ... you can use https://translate.google.com/ to translate texts into English.