When trying to run a report from Control-M Automation API, the following error occurs:  failed to get report REPORTNAME

Version 8
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Enterprise Manager


    COMPONENT:

    Control-M Automation API


    APPLIES TO:

    Control-M Automation API PADEV 9.0.00.500 combined with Enterprise Manager 9.0.18



    PROBLEM:

    When trying to run a report in the Reporting Facility of Control-M/Enterprise Manager 9.0.18 from Automation API 9.0.00.500 the following error occurs with the example report named Alerts1

    bash-4.2$ ctm reporting report::get Alerts1
    {
    "errors": [
    {
    "message": "failed to get report Alerts1"
    }
    ]
    }

    When running the report from the Reporting Tool, it runs successfully.


    CAUSE:

    Potentially incorrect configuration or the user to run the report does not own it.


    SOLUTION:

    From Control-M/Enterprise Manager 9.0.18 onwards there is a new Reporting Tool that resides on the Control-M/Enterprise Manager server host. It can be used in Automation API.

       
    • Make sure that the report really exists and that it is owned by the user who requests it from Automation API. Other users do not have access.
    •  
    • Check, if the web server is configured for SSL. If not, in the file $EMHOME/Client_Updates/conf/web_server_params.xml the tag "IS_HTTPS" should be set to false and the port set to 18080.
    •  
    • Make sure that the user needs to have permission for Client Access - automation API as well as Monitoring & Administration Tools - CLI
       User-added image

     


    Article Number:

    000148073


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles