AppWorx, Dollar Universe and Sysload Community

  • 1.  Running Python directly from the agent

    Posted Jun 02, 2018 04:44 PM

    Has anyone run Python scripts directly from the agent? I am completely new to scripting in Application Manger. We are running 9.2.



  • 2.  Re: Running Python directly from the agent

    Posted Jun 04, 2018 08:19 AM

    I don’t use Applications Manager, but as I understand it, it is build on top of the Automation Engine, and uses the same scripting language.

     

    With Automation Engine v11 or later, you can simply create an external interpreter for Python. See the example here:

    :REGISTER_VARIABLE — practical examples with Bash, Perl, Python, Ruby, and PowerShell 

     

    With earlier versions, it is possible to define a single external interpreter (e.g., Python) for each Windows agent. This means that all Interpreter-type Windows jobs that run on that agent will use that interpreter.



  • 3.  Re: Running Python directly from the agent

    Broadcom Employee
    Posted Jun 08, 2018 04:25 PM

    We have a few ways to accomplish that task. The first would be to use a shell like script that points to the location of python, the other would be to create a program type to handle the python script. 

    I have included a link below which details how to create program types in Applications Manager...

    https://docs.automic.com/documentation/WEBHELP/English/all/components/AM/latest/All%20Guides/help_en.htm#AM_Development_Guide/Defining_Program_Types.htm?Highlight=program type

    Hope this helps!