<p dir="ltr">Andrew, many thanks!</p>
<div class="gmail_quote">On Jun 18, 2014 2:11 AM, "Andrew Beekhof" <<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 17 Jun 2014, at 8:01 pm, Kostiantyn Ponomarenko <<a href="mailto:konstantin.ponomarenko@gmail.com">konstantin.ponomarenko@gmail.com</a>> wrote:<br>
<br>
> I took a look at the include folders of pacemaker and corosync and I didn't find there any explanation to functions. Did I look at a wrong place?<br>
><br>
> My goal is to manage cluster from my app, so I don't need to use crmsh or pcs.<br>
><br>
> Any ideas are appreciated.<br>
<br>
For reading cluster state, try: crm_mon --as-xml<br>
Or for the raw config, cibadmin -Q and the relax-ng (.rng) schema files.<br>
It calling a binary isn't something you want to do, try looking at the source for those two tools to see how they do it.<br>
<br>
For making changes, including stop/start/move a resource, you also want cibadmin (or its C-API) and the relax-ng schema files.<br>
<br>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div>