Stats from WAAS CM via API - How to?

Answered Question
Jun 29th, 2010
User Badges:
  • Bronze, 100 points or more

We are trying to get the details from WAAS CM device using API's as defined by Cisco. The document can be referred to from the below link:

http://www.cisco.com/en/US/docs/app_ntwk_services/waas/waas/v411/api/reference/guide/intr_api.pdf


Cisco API doc asks to call the required service (here DeviceConf) as https://<hostname/ip>:8443/ws/DeviceConf and we are calling it through through Java (using 'HttpConnection') and then embedding a SOAP request with WS-Security Header and using the action named 'getWANInfo'.


The result is that we are unable to read any information and always end getting an HTTP status error 500 from the WAAS CM.


Any idea on what we could be doing wrong or on how to get the WAAS stats via API?


Regards,

Don Thomas

Correct Answer by Zach Seils about 6 years 11 months ago

Don,


In the body of the request, try enclosing https://10.88.80.142:8443/ws/DeviceConf in quotations.  I used the following version of your request and it worked:


<?xml version='1.0' encoding='UTF-8'?>
http://schemas.xmlsoap.org/soap/encoding/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
    http://docs.oasis-open.org/wss/2004/01/oasis-200401  wss-wssecurity-secext-1.0.xsd'>
       
           
                username
                password
           
       
   
   
    https://10.88.80.142:8443/ws/DeviceConf"  SOAP-ENC:root='1'/>
   


Regards,

Zach

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Zach Seils Thu, 07/01/2010 - 07:17
User Badges:
  • Cisco Employee,

Hi Don,


Can you please post the SOAP request you are sending to the Central Manager?


Thanks,

Zach

Don Jacob Fri, 07/02/2010 - 00:36
User Badges:
  • Bronze, 100 points or more

Hi Zach,


Please find the details below. Below is the soap request sent to the server with soap action https://:8443/ws/DeviceConf


<?xml version='1.0' encoding='UTF-8'?>http://schemas.xmlsoap.org/soap/encoding/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/1999/XMLSchema'>http://docs.oasis-open.org/wss/2004/01/oasis-200401 wss-wssecurity-secext-1.0.xsd'>usernamepasswordhttps://host-ip:8443/ws/DeviceConf SOAP-ENC:root='1'/>


Any suggestions?


Thanks in advance.


Regards,

Don Thomas

Correct Answer
Zach Seils Tue, 07/06/2010 - 06:17
User Badges:
  • Cisco Employee,

Don,


In the body of the request, try enclosing https://10.88.80.142:8443/ws/DeviceConf in quotations.  I used the following version of your request and it worked:


<?xml version='1.0' encoding='UTF-8'?>
http://schemas.xmlsoap.org/soap/encoding/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
    http://docs.oasis-open.org/wss/2004/01/oasis-200401  wss-wssecurity-secext-1.0.xsd'>
       
           
                username
                password
           
       
   
   
    https://10.88.80.142:8443/ws/DeviceConf"  SOAP-ENC:root='1'/>
   


Regards,

Zach

Don Jacob Thu, 07/15/2010 - 07:36
User Badges:
  • Bronze, 100 points or more

Hi Zach,


Thanks for that. We were able to get it  working. In addition to what you pointed out, we were also trying to  send the SOAP using 'HttpURLConnection' in Java which did not work. We  then had to send the SOAP request via 'SoapConnection' and were ablr to  get it working.


Thank you very much for the help.


Regards,

Don Thomas Jacob

ManageEngine   NetFlow Analyzer

johng231 Mon, 07/19/2010 - 11:13
User Badges:

Hi Don,


I'm just wondering what 3rd party software are you using to pull the API stats off of the WAAS CM?


John

Don Jacob Tue, 07/20/2010 - 05:46
User Badges:
  • Bronze, 100 points or more

Hi John,


We are a part of ManageEngine division of Zoho Corp. One of our products is NetFlow Analyzer (http://www.manageengine.com/products/netflow/) which uses Cisco NetFlow and similar flow format packets to generate bandwidth and traffic reports.


As a part of NetFlow Analyzer,  we are developing our own software to read traffic stats (compressed and decompressed values) off Cisco WAAS CM and allow users to compare them with NetFlow stats.


We are still working on this feature and will be have an EA version available in 1 month or so.


Regards,
Don Thomas
ManageEngine  NetFlow Analyzer
________________________________________

Actions

This Discussion