Skip to content

Improving license check #3485

Open
Open
@germa89

Description

@germa89

@saitade-bh @germa89 @RobPasMue
Hi All - hope I don't open Pandoras Box here but from the standard Ansys installation we can use lmutil to do this. Assuming a MS Win OS the command would be:
"C:\Program Files\ANSYS Inc\v242\licensingclient\winx64\lmutil.exe" lmstat -f meba -c [email protected]

You would replace 127.0.0.1 with the hostname or IP address of the license server. This could be found in the C:\Program Files\ANSYS Inc\Shared Files\Licensing\ansyslmd.ini file.

You would have to parse out the output to get the number available (the command gives more than a simple number). And I've no idea how to issue from Python (was playing around with the subprocess library but did not quite get it to work). But maybe this is enough of a starting point.

A word of caution - if you do create something please, please build in a wait/pause feature. We don't want to be pinging the license server with thousands of requests per minute/second/whatever. That way lies a denial-of-service attack. If you are laughing this advice off it comes from real world direct technical support experience.

lmstat is getting the license information from the license server without regard to the license options file, if one exists. The option file rules only kick in on check-out...at least that is my understanding.

lmutil is a FlexNet application (licensing), not Ansys Inc.

Mike

Originally posted by @mikerife in #3448 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove any current implemented feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions