DX Application Performance Management

  • 1.  Re: How to Query Introscope v9.7 via WSDL

    Posted Feb 07, 2017 04:43 PM

    Hi,

    Is there any documentation that has examples calling all the web services API layer?  I'm trying to use Python and the above example is good but I would like examples of calling all of the services.  The CA site shows the methods but they have no examples.

     

    https://support.ca.com/cadocs/0/CA%20Application%20Performance%20Management%209%206-ENU/Bookshelf_Files/HTML/APM--API%20Reference%20Guide/index.htm

     

    Specifically, I'm trying use python to retrieve metrics from metric groupings I've configured in the management module so I can send these to Splunk.



  • 2.  Re: How to Query Introscope v9.7 via WSDL

    Broadcom Employee
    Posted Feb 10, 2017 10:10 AM

    Hi Andrew:

         I am trying to get you a response. I have asked internally. But no takers so far.

         Sincerely,

           Hal German



  • 3.  Re: How to Query Introscope v9.7 via WSDL

    Broadcom Employee
    Posted Feb 17, 2017 04:02 PM

    Hi,

     

    unfortunately I don't have a python example, only for the Java SDK: GitHub - CA-APM/ca-apm-example-webservice: Shows how to create a web service client for CA APM.

     

    I don't know if you can generate python code from a WSDL. The WSDL for the MetricDataService is http://<host>:<port>/introscope-web-services/services/MetricsDataService?wsdl.

    Or you could pull the metrics via the APM Command-Line Workstation - CA Application Performance Management - 10.5 - CA Technologies Documentation and the import the data from the resulting csv.

     

    Either way, you can't directly pull a metric group but you can re-use the regex you used to define the metric group in the WS or CLW query.

     

    Ciao,

    Guenter

     



  • 4.  Re: How to Query Introscope v9.7 via WSDL

    Posted Mar 02, 2017 09:25 AM

    Hi,

    I don't use python, but a simple ksh shell scripts with "curl" like this.

     

    A snippet only:

    # Agent list query.
    cat <<AGENT | \
    curl -u $USER:$PASS -X POST -H "Content-Type: text/xml" \
    -H "SOAPAction: urn:com.wily.introscope.server.webservicesapi.metricslist/IMetricsListService/listAgentsRequest" \
    -d @- http://$HOST:8081/introscope-web-services/services/MetricsListService | \
    awk 'BEGIN { RS="<"; FS=">" } /listAgentsReturn xsi:.*">/ { print $2 }'
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:met="http://metricslist.webservicesimpl.server.introscope.wily.com">
    <soapenv:Header/>
    <soapenv:Body>
    <met:listAgents soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <agentRegex xsi:type="xsd:string">.*\|.*\|.*</agentRegex>
    </met:listAgents>
    </soapenv:Body>
    </soapenv:Envelope>
    AGENT

    I start migration from CLW to SOAP some times ago.

     

    A simple sample only, sorry

    Lutz