08-03-2015 10:33 AM
Hi Everyone,
Is there a way that we can get DB replication status using this serviceability API's or any other scripting to be used to get this info
Please suggest
Thanks,
JP
08-11-2015 11:36 AM
It looks like you can get something related via the Serviceability 'PerfMon' API:
The below request/response is from my single-node lab, so you may get something more interesting in a cluster with replication underway...
<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>10.194.104.60</soap:Host>
<soap:Object>Number of Replicates Created and State of Replication</soap:Object>
</soap:perfmonCollectCounterData>
</soapenv:Body>
</soapenv:Envelope>
-------------------------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:perfmonCollectCounterDataResponse xmlns:ns1="http://schemas.cisco.com/ast/soap">
<ns1:perfmonCollectCounterDataReturn>
<ns1:Name>\\10.194.104.60\Number of Replicates Created and State of Replication(ReplicateCount)\Number of Replicates Created</ns1:Name>
<ns1:Value>0</ns1:Value>
<ns1:CStatus>1</ns1:CStatus>
</ns1:perfmonCollectCounterDataReturn>
<ns1:perfmonCollectCounterDataReturn>
<ns1:Name>\\10.194.104.60\Number of Replicates Created and State of Replication(ReplicateCount)\Replicate_State</ns1:Name>
<ns1:Value>0</ns1:Value>
<ns1:CStatus>1</ns1:CStatus>
</ns1:perfmonCollectCounterDataReturn>
</ns1:perfmonCollectCounterDataResponse>
</soapenv:Body>
</soapenv:Envelope>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide