Altair license utility automation

Rachit Semalty
Rachit Semalty Altair Community Member
edited June 2022 in Community Q&A

Hi all. Is there a way to export list of available licenses from Altair license utility using TCL or python? I just want to know licenses used and available. Any other way method, other than license utility, is also OK for me. But it be using code so that I may automate it.

 

Regards,

Rachit

Best Answer

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited June 2022 Answer ✓

    Not 100% what you need but you can execute the almutil.exe with a few arguments such as -licstat -inuse to retrieve a list of currently used licenses.

    This will give you back the used licenses, then you can parse this data using python or something.

    image

    by the way, the altair licensing help documentation should point you to the valid arguments for that.

    Or like I did, I've just executed the almutil.exe in batch and it already gave me the basic options.

    image

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited June 2022

    Not 100% what you need but you can execute the almutil.exe with a few arguments such as -licstat -inuse to retrieve a list of currently used licenses.

    This will give you back the used licenses, then you can parse this data using python or something.

    image

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited June 2022 Answer ✓

    Not 100% what you need but you can execute the almutil.exe with a few arguments such as -licstat -inuse to retrieve a list of currently used licenses.

    This will give you back the used licenses, then you can parse this data using python or something.

    image

    by the way, the altair licensing help documentation should point you to the valid arguments for that.

    Or like I did, I've just executed the almutil.exe in batch and it already gave me the basic options.

    image

  • Rachit Semalty
    Rachit Semalty Altair Community Member
    edited June 2022

    by the way, the altair licensing help documentation should point you to the valid arguments for that.

    Or like I did, I've just executed the almutil.exe in batch and it already gave me the basic options.

    image

    Thanks Adriano for help. I am new to python coding. May you please tell me or hint me that how may I parse the cmd output or export the licstat xml file to a desired location?

     

    Regards,

    Rachit

  • Rachit Semalty
    Rachit Semalty Altair Community Member
    edited June 2022

    by the way, the altair licensing help documentation should point you to the valid arguments for that.

    Or like I did, I've just executed the almutil.exe in batch and it already gave me the basic options.

    image

    Hi Adriano. Is it possible to parse cmd screen output or print it to a text file? How it may be done?

     

    Regards,

    Rachit

  • Rachit Semalty
    Rachit Semalty Altair Community Member
    edited June 2022

    by the way, the altair licensing help documentation should point you to the valid arguments for that.

    Or like I did, I've just executed the almutil.exe in batch and it already gave me the basic options.

    image

    Hi. Thanks for your support. I have found the command to export he output to a txt file. Here is the link I used:

    https://www.windowscentral.com/how-save-command-output-file-using-command-prompt-or-powershell

     

    Regards,

    Rachit