« Back to Serviceability XML Questions

Serviceability AddPerfmonCounter operation failing

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
I am trying to use the PerfMonPort services for monitoring. I am trying th session based approach. I was able to open a session successfully. However when i try to add the counters using the AddPerfmonCounter Operation iT fails with the a error.
The following are the details
 
XML Request :

POST https://10.136.11.21:8443/perfmonservice/services/PerfmonPort
Accept: application/soap+xml, application/dime, multipart/related, text/
Authorization: Basic ************************************
Host: 10.136.11.21
User-Agent: libwww-perl/5.805
Content-Length: 910
Content-Type: text/xml
Charset: utf-8
SOAPAction: http://schemas.cisco.com/ast/soap/action/#PerfmonPort#PerfmonAddCounter

<?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>
<ns1emoticonerfmonAddCounter soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/">
<SessionHandle xsi:type="ns1:SessionHandleType">375b9584-0000-1000-8000-000000000000</SessionHandle>
<ArrayOfCounter soapenc:arrayType="ns1:CounterType[2]" xsi:type="soapenc:Array" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<item xsi:type="ns1:CounterType">
<Name xsi:type="ns1:CounterNameType">\10.136.11.21\Process\Nice</Name>
</item>
<item xsi:type="ns1:CounterType">
<Name xsi:type="ns1:CounterNameType">\10.136.11.21\Process\PID</Name>
</item>
</ArrayOfCounter>
</ns1emoticonerfmonAddCounter>
</soapenv:Body>
</soapenv:Envelope>
 
The response I get is
 
Connection: close
Date: Mon, 16 Aug 2010 12:19:04 GMT
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Client-Date: Mon, 16 Aug 2010 12:19:00 GMT
Client-Peer: 10.136.11.21:8443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/ST=PA/L=Pittsburgh/O=TriState Capital Bank/OU=Corporate/CN=TSCB-CM1
Client-SSL-Cert-Subject: /C=US/ST=PA/L=Pittsburgh/O=TriState Capital Bank/OU=Corporate/CN=TSCB-CM1
Client-SSL-Cipher: EDH-RSA-DES-CBC3-SHA
Client-SSL-Warning: Peer certificate not verified
Set-Cookie: JSESSIONIDSSO=CE9FE254A5D64E9C57F50396635C7EB6; Path=/
Set-Cookie: JSESSIONID=7C0C4C9C5573EADBBD62E5F9D426F4F0; Path=/perfmonservice; Secure
Set-Cookie: SoapSession.id=6909040033805986756

<?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.generalException</faultcode><faultstring>Error found in Adding counters: Error=101 ErrorMsg=null</faultstring><detail><ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">Error found in Adding counters: Error=101 ErrorMsg=null
        at com.cisco.ccm.serviceability.soap.perfport.PerfmonBindingImpl.perfmonAddCounter(Unknown Source)
        at com.cisco.ccm.serviceability.soap.perfport.PerfmonBindingSkeleton.perfmonAddCounter(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
        at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
        at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
        at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
</ns1:stackTrace><ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">TSCB-CM1</ns2:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
 
Any clues as to where I am going wrong?
 
Thanks in advance
 
Roycey
 
 

Hi,

Did you work out what was wrong ?

GTG