Are the various serviceability XML APIs available in CUC 12.x? I'm having a hard time getting a response from at least the perfmon APIs. Asking for the WSDL works:
curl -k -u 'user:pass' 'https://IPAddress:8443//perfmonservice2/services/PerfmonService?wsdl'
but trying to get a list of counters gives me a Server.Unauthorized:
curl -k -u 'user:pass' -X POST 'https://IPAddress:8443//perfmonservice2/services/PerfmonService' -H 'Content-Type: text/xml; charset=UTF-8' -H 'Accept: */*' -H 'SOAPAction: perfmonListCounter' -H 'Cache-Control: no-cache' -H 'Pragma: no-cache' -d '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<perfmonListCounter xmlns="http://schemas.cisco.com/ast/soap">
<Host>IPAddress</Host>
</perfmonListCounter>
</soap:Body>
</soap:Envelope>'
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault xmlns:axis2ns57="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>axis2ns57:Server.Unauthorized</faultcode><faultstring>Administrator is not authorized to access </faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
I'm using the correct credentials, since changing them results in a 401 instead.