Code Red > AutoLISP (Vanilla / Visual)
License server
Andrea:
Hi all,
I'm trying to find a way in Lisp to know wich server the license is keep.
any idea where I can found this info ?
Thanks.
Bobby C. Jones:
It can be stored in more than one location. I don't have any code, but I keep a link to this article that explains where acad looks.
https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Use-of-licpath-lic-file-and-ADSKFLEXLICENSEFILE-environment-variable-on-same-computer.html
Andrea:
Thank you...
But the question is if there is any way to know where the license come from...
because we have redundant servers,..
in fact, the information is stored in license Manager under about command..
so maybe is there any way to get this ?
Bobby C. Jones:
Like the article states, it's a cascading search:
* ADSKFLEX_LICENSE_FILE
* registry
* LM_LICENSE_FILE
* licpath.lic
If it's not in the environment variable, or in the registry, or in the other environment variable, then it's stored in the .lic file.
A quick search for where to find the .lic file yielded this article.
https://knowledge.autodesk.com/search-result/caas/sfdcarticles/sfdcarticles/Where-is-the-LICPATH-LIC-file-for-2017-products.html
Andrea:
This article miss many info...
specifying that the License location server can also be in Windows environnement variable who the location That AutoCAD looking first.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"ADSKFLEX_LICENSE_FILE"="server"
then,...it look after on :
HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager
Then...it look after on:
HKEY_CURRENT_USER\SOFTWARE\FLEXlm License Manager
Also,...the servers location can be multiples allowing AutoCAD to get the license being redundant.
ex:
[HKEY_CURRENT_USER\Software\FLEXlm License Manager]
"ADSKFLEX_LICENSE_FILE"="@server1;@server2;@server3"
moreover, it will be better if you specify the PORT number.
ex:
[HKEY_CURRENT_USER\Software\FLEXlm License Manager]
"ADSKFLEX_LICENSE_FILE"="2020@server1;2020@server2;2020@server3"
you can use IP adress or servername or the LICPATH.LIC location files...
ex:
[HKEY_CURRENT_USER\Software\FLEXlm License Manager]
"ADSKFLEX_LICENSE_FILE"="c:\users\me\blablabla\LICPATH.LIC"
see:
https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Installing-distributed-server-model-s.html
but the question still
"how do I know wich server AutoCAD is connected to ?"
Navigation
[0] Message Index
[#] Next page
Go to full version