Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Get connected license server

Get connected license server

Anonymous
Not applicable
5,210 Views
13 Replies
Message 1 of 14

Get connected license server

Anonymous
Not applicable

Hi all,

 

I would like to know if there is any way to know where AutoCAD get his license..

I know that I can get registry and/or LICPATH file info...but this info do not tell me where the license come from when redundant server.

so doing the cascade license search...I need to get this information to add to my lisp tool.

 

actually the only way to get this is by doing ABOUT and get the info from the dialogbox.

I've search the entire registry and files..but It seem that i'm not able to find it.

 

help will be very appreciated.

Thank you.

 

0 Likes
5,211 Views
13 Replies
Replies (13)
Message 2 of 14

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

Here is a link that describes how you can use the License Manger. I believe this might help you with your question. If not, please add an additional post with more details about your issue.

 

I have not done this myself before so i wish I could give you first hand knowledge. I always approached the license usage from the server side.

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 3 of 14

Anonymous
Not applicable

Thank you John,..

 

I know all this....

in fact the question is..how do I know AutoCAD license come from ?

 

I use registry value to get redundant server names....but I do not know with server AutoCAD is connected to.

 

Thank you.

0 Likes
Message 4 of 14

Anonymous
Not applicable

there is what i'm trying to get as info...

 

serverlic.jpg

0 Likes
Message 5 of 14

Darin.Green
Mentor
Mentor

@Anonymous

 

When using Redundant License model, your machine is setup to get licenses from the server closes to you. The ADSKFLEX_LICENSE_FILE should specify the order of license servers. The order should be in relation to shortest distance to farther distance.

 

So, to answer your question, it's most likely the closes server to you. That said, Help > About should reflect the right server location. However, if your local server goes down it will follow the order of the license file ADSKFLEX_LICENSE_FILE environment variable to go to the next server.

 

The reason you don't see another server when using the Help > About is because it's not pulling from another server unless it becomes unavailable. <-- Does that make sense?



If this information was helpful, please consider using the Accept Solution


0 Likes
Message 6 of 14

Anonymous
Not applicable

well, not exactly.

 

The ADSKFLEX_LICENSE_FILE from

 

by priority:

 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

or

HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager

or

HKEY_CURRENT_USER\Software\FLEXlm License Manager

 

have redundant servers names...

ex:

"2020@Server1;2020@Server2;2020@Server3;c:\Program files\AutoCAD\2017\LICPATH.LIC"

 

but AutoCAD get the license from the first to the last no matter the distance of server is.

so if the first server is down or No licenses is available, then it will try to the second server...etc..

 

The result of these steps is show to the About dialog only.

but I need to know how can I get this info to put it on a variable...

 

 

0 Likes
Message 7 of 14

Darin.Green
Mentor
Mentor
@Anonymous
@Anonymous wrote:

well, not exactly.

 

... 

The result of these steps is show to the About dialog only.

but I need to know how can I get this info to put it on a variable...

 


 

I don't think you can get this information from within CAD... However, you may be able to query the server then search for your name in the list to determine which server you're pulling a license from.

 

To query each server from the command line, do this:

lmutil.exe lmstat -S adskflex -c @servername > c:\autodesk\status.txt

 Which will product a file similar to the following and you'll need to search line-by-line:

 

stat.png



If this information was helpful, please consider using the Accept Solution


Message 8 of 14

Anonymous
Not applicable

Thank you !  this is a good start ! 🙂

However, my result is diffrent and do not show me users connection..

 

server1.jpg

0 Likes
Message 9 of 14

Anonymous
Not applicable

OK,..I've made few search...and it seem that the -S switch do not switch server..

0 Likes
Message 10 of 14

TravisNave
Mentor
Mentor

Are you sure you are using the Redundant model and not the Distributed model?  The redundant model would effectively be pulling from all 3 servers since they all talk together and share the same license pool and information.  It also would be using port 27005 by default in the license file.  I would also advise against using this model.

 

Distributed would be any number of separate stand-alone license servers with the amount of seats split up amongst different servers, ideally, in different locations. 

 



Travis Nave Send TravisNave a Private Message                                             Need help in your post? Mention me with @TravisNave



My Expert Contributions to the
Autodesk Forums:
FLEXnet License Admin | MSI Cleanup Utility | .NET Framework Cleanup Tool | IPv6 NLM Fix | adskflex.opt Options File | Combine .LIC Files
0 Likes
Message 11 of 14

Anonymous
Not applicable
0 Likes
Message 12 of 14

TravisNave
Mentor
Mentor

Your LICPATH.LIC file or your ADSKFLEX_LICENSE_FILE should tell you which servers you are connecting to.  Then you should be able to do the LMSTAT on all of your servers to determine where the license is coming from. 



Travis Nave Send TravisNave a Private Message                                             Need help in your post? Mention me with @TravisNave



My Expert Contributions to the
Autodesk Forums:
FLEXnet License Admin | MSI Cleanup Utility | .NET Framework Cleanup Tool | IPv6 NLM Fix | adskflex.opt Options File | Combine .LIC Files
Message 13 of 14

Anonymous
Not applicable

LMSTAT return me no user list connection...

 

I use the same LMGRD.exe for diffrent server location...so maybe this is why I do not get information no matter if I specify servername ?

 

0 Likes
Message 14 of 14

somnangkeo128
Community Visitor
Community Visitor

i need server name

 

0 Likes