Hi, community!
I have tried to collect perfmonCollectCounterData info from my Cisco Unified Communication Manager via Perfmon API.
But I have got next error:
'<?xml version=\'1.0\' encoding=\'UTF-8\'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>Query counter data failed. Error=9 ErrorMsg=null</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>'
But other operation, for example, perfmonOpenSession works.
This is Python script:
import requests
from requests.auth import HTTPBasicAuth
def run():
url="https://CUCM_IP:8443/perfmonservice2/services/PerfmonService?wsdl"
headers = {'content-type': 'text/xml', 'SOAPAction': "http://schemas.cisco.com/ast/soap/action/#PerfmonPort#perfmonCollectCounterData"}
body ="""
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.cisco.com/ast/soap">
<soapenv:Header/>
<soapenv:Body>
<soap:perfmonCollectCounterData>
<soap:Host>CUCM_IP</soap:Host>
<soap:Object>Cisco CallManager</soap:Object>
</soap:perfmonCollectCounterData>
</soapenv:Body>
</soapenv:Envelope> """
response = requests.post(url,data=body,headers=headers,verify=False,auth=HTTPBasicAuth("USER", "PASSWORD" ))
print response
import pdb;pdb.set_trace()
if __name__ == "__main__":
run()
Could you please help me with this issue.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Andrii,
Moving your question under UC Manager Serviceability community for getting more visibility of the support engineers.
Thanks and Regards,
Geevarghese
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is a Python and Requests issue. I suggest you find out who supports Requests and ask them. You'll need to show them the Perfmon WSDL so they can try to figure out why it's not interpreting your request correctly.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your Python code seems to work unchanged against my CUCM 10.5 lab system.
If there is an internal issue with the RIS component (or something else in CUCM), it's possible that restarting the CUCM may correct it (not ideal, of course.) I would recommend opening a ticket with DevNet developer support for detailed troubleshooting: Cisco DevNet: DevNet Developer Support
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.