CA Workload Automation iDash

Expand all | Collapse all

Generating Reports vis CLI & Batch Jobs

  • 1.  Generating Reports vis CLI & Batch Jobs

    Posted 03-01-2021 01:28 PM

    My main goal is to schedule a Batch Job to generate a "morning report" that has been defined in iDash. But I'm getting "IDASH_HOME not set" regardless of what CLI Command I'm issuing. Be it via the CLI or a Batch Job.

     

    I THINK I've done everything I need to do to set things up to use the CLI, at least according to the manuals.

     

    From the CLI on a Windows 2016 server...

    E:\CA\IDASH\bin\idgencsv -t sla.trend.report -n DailyBatchTargetReport -f E:\CA\IDASH\DailyBatchTargetReport.csv

    "IDASH_HOME not set"

     

    Even idgencsv -h returns that error...

    E:\CA\IDASH\bin>idgencsv -h

    "IDASH_HOME not set"

     

    I've tried several iterations of the Batch job, including this...

    CMDNAME E:\CA\IDASH\DLYBATCHREPORT.bat

    Exitcode 0000 Success

    Exitcode 1-9999 Failure

    ENVAR IDASH_HOME="E:\CA\IDASH\bin"

     

    IDASH\DLYBATCHREPORT.bat contains the following...

    E:\CA\IDASH\bin\idgencsv -t sla.trend.report -n DailyBatchTargetReport -f E:\CA\IDASH\DailyBatchTargetReport.csv

     

    But receive the same error. What am I missing?

     

    Lowell Fultz

    Infrastructure Engineering Advisor

    CA7 & ESP Automation Service Support Team

    Mon - Fri | 08:00 – 16:00 ET

    Ohio (W@H) | m 314.322.4287 | t 513.858.4767 *714767

     

    FullSignatureTemplateFullSignatureTemplate - CopyFullSignatureTemplate - Copy (2)FullSignatureTemplate - Copy (3)

    Confidential, unpublished property of Cigna. Do not duplicate or distribute. Use and distribution limited solely to authorized personnel. © Copyright 2021 Cigna

     

    Veteran Cigna logo

          "Sua Sponte"

     



  • 2.  RE: Generating Reports vis CLI & Batch Jobs

    Posted 03-02-2021 02:50 AM
    Hi

    iDash cli is searching %IDASH_HOME\etc\idash.conf to find iDash server URL.
    Try to add in DLYBATCHREPORT.bat
    set IDASH_HOME=E:\CA\IDASH

    it should work. Otherwise you can create this variable in Windows System variables, thus it will known to all batches.

    ------------------------------
    Services Consultant
    HCL TECHNOLOGIES
    ------------------------------