Effacer les filtres
Effacer les filtres

Can I borrow licenses for a number of hours, rather than days?

5 vues (au cours des 30 derniers jours)
I have my options file for my License Server set using MAX_BORROW_HOURS to set a number of hours for my users to check out licenses. However, when checking out licenses in MATLAB, I notice that the timeframe is only ever set for a number of days, and I am unable to set a specific number of hours to borrow. How can I borrow licenses for a timeframe more granular than a day?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 8 Nov 2023
Licenses can only be borrowed for a specified number of days. When borrowing licenses in MATLAB, the license will be borrowed until 11:59 PM of the day the license is borrowed until. For example, If I were to borrow a license for 3 days, the license will be borrowed until midnight of the day listed in the borrowing UI. It is not possible to specify a timeframe more specific than the number of days. 
If using MAX_BORROW_HOURS to limit the timeframe licenses can be borrowed, please add an additional 24 hours to the timeframe so licenses can be borrowed until the end of the day for the desired limit. For example, if you want to limit your users to borrow for 24 hours, set MAX_BORROW_HOURS to 48. This will allow users to borrow licenses for 2 days in the borrowing UI, which would be until midnight the next day. 
  1 commentaire
Walter Roberson
Walter Roberson le 8 Nov 2023
In license files with borrowing, the INCREMENT lines for products include the keyword BORROW=720, where 720 is the maximum number of hours in the borrow period (you cannot change this value).
To set the maximum borrow period to less than 30 days, you can use the MAX_BORROW_HOURS key word in your options file.
So according to your documentation, you can can change the maximum borrow period to less than 30 days provided that you leave the maximum to be exactly 30 days.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Manage Products dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by