AutoSys Workload Automation

 View Only
  • 1.  exportauditlog command issued through cli.bat

    Posted Aug 01, 2019 01:08 PM
    Edited by Andy Reimer Aug 01, 2019 01:09 PM
    When I issue the following CLI command through the workstation it works fine:
    exportauditlog path("d:\\auditlog") name("Yesterday") startdate("20190730") enddate("20190731")

    When I try to submit the same command through the CLI.bat, passing it as an argument I get the following error:
    Parse error: Illegal identifier character "\"

    Any thoughts?

    #caworkloadautomationde

    ------------------------------
    Andy Reimer
    ------------------------------
    ​​


  • 2.  RE: exportauditlog command issued through cli.bat

    Posted Aug 01, 2019 02:53 PM
    Fixed it.  When passing the argument through CLI.bat I needed to put the escape character before each of the double quotes.

    exportauditlog path(\"d:\\Audit_Logs\") name(\"Yesterday\") startdate(\"20190731\") enddate(\"20190801\")



    ------------------------------
    Andy Reimer
    ------------------------------



  • 3.  RE: exportauditlog command issued through cli.bat

    Broadcom Employee
    Posted Aug 13, 2019 04:47 AM
    Hi,

    Yes. When running the cli from command prompt , you need to escape the characters. This is documented here for your reference -https://docops.ca.com/ca-workload-automation-de/12-2/en/utilities-and-soap-web-services-functions/using-the-cli/command-line-interface-cli/use-of-quotes-in-cli-commands , section - 'Use of Quotes in CLI Commands from Standalone CLI Utility'

    Thanks and regards,
    Ravi Kiran