You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 1055@127.0.0.1
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.
@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 1055@127.0.0.1
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)
The text was updated successfully, but these errors were encountered: