AutoSys Workload Automation

  • 1.  GET ENVIRONMENT VARIABLE

    Posted Mar 18, 2019 09:04 AM

    Folks.
    How can I get an environment variable from a Linux server and go to the command line, to be recognized, in WorkLoad DE, as shown in the appendix.
    Thank you!



  • 2.  Re: GET ENVIRONMENT VARIABLE
    Best Answer

    Broadcom Employee
    Posted Mar 19, 2019 04:42 PM

    Hi,

    You can set OS envvar value and name back to DE is by setting SETVAR in CLI. Here is an example: 

     

    OS_VAR=/tmp/`date +%y_%m_%d_%a` 

    cli de_server.example.com 7500 USER1 my_password 'SETVAR name('VAR09') value("'$OS_VAR'")' 

    First set the OS variable, then you use the the CLI and connect to DE server with a valid user. Pass the variable name and the value to the DE global variable (VAR09).

    Note: CLI is installed with the DE, it is in <install_dir>/bin.  You can install stand-alone CLI in other servers as well.  It is the same as the CLI in Desktop client.

     

    HTH,

    Nitin Pande

    Broadcom