Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products

ansysli_util -printavail does not show all licenses in use

TAGGED: ,

    • steven.vandenbrande
      Subscriber
      Hello,nI am working at an HPC facility and one of our users runs FLUENT simulations. The license server is setup on one of their machines, and they perform calculations both on our machines and on their local machines.nOn the HPC side, there is a job scheduler which we have configured to only let jobs start if the necessary licenses are available. This requires of course that our scheduler can regularly query the license server to see how many licenses are available at a given moment. Currently this is done by using the ansysli_util program, shipped with ANSYS in shared_files/licensing/linx64. When using the -printavail option, the partial output is:nFEATURENAME: anshpcnPRODUCTNAME: ANSYS HPCnVERSION: 9999.9999nEXPIRATION_DATE: 2021/12/31 23:59:59nCOUNT: 256nUSED: 108nCUSTOMER: 423361nAt first sight, it seems like the number of available licenses can be determined as COUNT-USED. However, it turns out that the USED field does not take into account licenses that are in use on the machines outside of our HPC (so at the user's own cluster). For instance, immediately after the above -printavail command, the following output is obtained when trying to check out licenses:n./ansysli_util -checkcount 108 -checkout anshpcnANSYS LICENSE MANAGER ERROR : Not enough ANSYS HPC licenses 108/52.nnanshpc CHECKOUT FAILEDnApparently, only 52 more licenses are available instead of the expected 256-108=148 (the others being in use at the user's cluster). The question is therefore the following: is there an easy way to get the correct number of available licenses for all features at once?nThe machines on the HPC run on CentOS, the version of ansysli_util isnansysli_util -versionnANSYS Licensing Interconnect version 2.1.1 (20200514) for linx64. Updated at ANSYS Release 2020 R2.n
    • ANSYS_MMadore
      Ansys Employee
      Can you use ./lmutil lmstat -f anshpc -c port@hostname ?.Thanks,nMattn
    • steven.vandenbrande
      Subscriber

      @StevenVandenbrande Can you use ./lmutil lmstat -f anshpc -c port@hostname ?Thanks,Matthttps://forum.ansys.com/discussion/comment/104568#Comment_104568

      Unfortunately this does not seem to work, I get the error:nError getting status: Cannot connect to license server system. (-15,570:115 'Operation now in progress')nIs it possible that there is a difference between the ports for the flexlm and ansysli servers? I tried both ports that I got from the user, neither works with lmutil.n
    • ANSYS_MMadore
      Ansys Employee
      You may need to ensure that the ansyslmd port is open on the license server machine firewalls to allow the command to work. The command would use the lmgrd port but must be able to communicate on the lmgrd and ansyslmd ports.n
Viewing 3 reply threads
  • You must be logged in to reply to this topic.