Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

AXL Serviceability - PerfmonAddCounter ClassCastException

Hi,

My CCM version is 5.1.1.

Can anyone confirm that PerfmonAddCounter works on CCM 5.1.1?

I've not been able to add any counters successfully.

I've created an application which builds all the soap messages "manually", and also created a java application (using axis) from the wsdl file which comes with the CCM (but always with the same result... the counters won't be added).

First we create a session with PerfmonOpenSession. Then we use the SessionHandle and try to add counters to it.

Here is my manually created SOAP request for Adding two counters...

<?xml version="1.0" encoding="utf-8" ?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:types="http://tempuri.org/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<q1:PerfmonAddCounter xmlns:q1="http://schemas.cisco.com/ast/soap/">

<SessionHandle xsi:type="ns1:SessionHandleType">

{5c3ca9e8-0000-1000-8000-000000000000}

</SessionHandle>

<ArrayOfCounter soapenc:arrayType="q1:CounterType[2]">

<Counter><Name xsi:type="xsd:string">\\Binc-vmcmpub01\Memory\Total KBytes</Name></Counter>

<Counter><Name xsi:type="xsd:string">\\Binc-vmcmpub01\Memory\Used KBytes</Name></Counter>

</ArrayOfCounter>

</q1:PerfmonAddCounter>

</soap:Body>

</soap:Envelope>

And I get the following response:

<?xml version="1.0" encoding="utf-8" ?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<soapenv:Fault>

<faultcode>soapenv:Server.userException</faultcode>

<faultstring>java.lang.IllegalArgumentException: java.lang.ClassCastException@10ab399</faultstring>

<detail>

<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">Binc-vmcmpub01</ns1:hostname>

</detail>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>

When using the java applicaion created with AXIS, we get the following exceptions when calling PerfmonAddCounter: ( See attachement axisfault.txt )

The rest of the PerfmonPort function works fine (like the PerfomListCounters and PerfmonCollectCounterData). But we want to use the session based get of counters, so that we just add the counters we find useful to monitor. And then collect the data using PerfmonCollectSessionData.

315
Views
0
Helpful
0
Replies
CreatePlease to create content