Automic Workload Automation

  • 1.  Easy way to pass win/unix shell variables to Automic Script

    Posted Feb 17, 2016 09:36 AM
    Easy way to pass win/unix shell variables to Automic Script


  • 2.  Easy way to pass win/unix shell variables to Automic Script

    Posted Feb 17, 2016 09:39 AM

    With v11.1 a new script command :REGISTER_VARIABLE was introduced which got not very much attention.

     

    BUT

     

    ·         It’s an awesome script command to pass unix or WIN variables to Automic Script with only one command.

    ·         It`s a replacement for a performance consuming structure with prep_process_report and get process_line etc. where the whole report has to be parsed.

     

     

    Example:

    Win JOB Script:

    set test=Schubiduba

    echo %test%

    :REGISTER_VARIABLE "scriptvar#", %test%

     

    Win JOB Postscript:

    :print &scriptvar#

     

    Win JOB Report:

    c:\>set test=Schubiduba

    c:\>echo Schubiduba

    Schubiduba

     

    Win JOB Post Process Report

    2016-01-15 11:05:30 - U00020206 Variable '&SCRIPTVAR#' was stored with value 'Schubiduba'.

    2016-01-15 11:05:30 - U00020408 Schubiduba

     

    Same for Linux:

     

    test="Schubiduba"

    echo $test

    :REGISTER_VARIABLE "scriptvar#", $test

     

    Linux Job Report:

    Schubiduba

    Registered variable: 'T' scriptvar#=Schubiduba

     

    Linux Job Post Process Report:

    2016-01-15 11:03:22 - U00020206 Variable '&SCRIPTVAR#' was stored with value 'Schubiduba'.

    2016-01-15 11:03:22 - U00020408 Schubiduba

     

     

     

     

    http://docs.automic.com/documentation/AE/11.1/english/AE_WEBHELP/help.htm?product=awa#ucsaba.htm?Highlight=register_variable







  • 3.  Easy way to pass win/unix shell variables to Automic Script

    Posted May 31, 2016 03:20 AM
    Just curious: why does :REGISTER_VARIABLE work only inside a :BEGIN_EXT_INTERPRETER# ... :END_EXT_INTERPRETER block?


  • 4.  Easy way to pass win/unix shell variables to Automic Script

    Posted Jun 06, 2016 04:33 AM
    I put together a short guide with examples of how to use :REGISTER_VARIABLE with Bash, Perl, Python, and PowerShell:
    :REGISTER_VARIABLE — practical examples with Bash, Perl, Python, and PowerShell


  • 5.  Easy way to pass win/unix shell variables to Automic Script

    Posted Jun 14, 2016 10:23 AM
    Just curious: why does :REGISTER_VARIABLE work only inside a :BEGIN_EXT_INTERPRETER# ... :END_EXT_INTERPRETER block?
    Hi Michael, I believe this is because the :BEGIN_EXT... and :END_EXT... block will tell the Automation Engine which variable from Client 0 to use - UC_EXT_INTERPRETERS_* which has specific instructions for the AE on what environment to use, etc...


  • 6.  Easy way to pass win/unix shell variables to Automic Script

    Posted Nov 22, 2016 04:29 AM
    According to Philipp Elmer, :REGISTER_VARIABLE works just fine even when it is not inside a
    :BEGIN_EXT_INTERPRETER … END_EXT_INTERPRETER block.