[Pacemaker] Access CIB/CRM via IPC/Library?

Andrew Beekhof andrew at beekhof.net
Sun Oct 11 15:10:58 EDT 2009


On Fri, Oct 9, 2009 at 3:26 PM, Colin <colin.hch at gmail.com> wrote:
> Hi All,
>
> after having understood the concepts (if not all details) of
> configuring Pacemaker ("Configuration Explained" does a good job) I
> started checking out how to actually create/activate a configuration.
>
> Seems that there's some GUI (wherever it is, it's not included in my
> packages, but we don't need it anyhow) and the command-line utilities
> crm and cibadmin. However what we really need is a more direct access
> in order to programmatically change the cluster configuration [without
> calling out to the command-line utilities from Python or C].
>
> It also seems that crm and cibadmin use libcrmcommon to communicate
> via the Unix sockets in /var/run/crm. Is this library documented
> anywhere? Are there Python-bindings? Is there any other officially
> supported API?

For reading/writing the configuration there is also libcib.
There is no written documentation but the cib.h header should be
pretty easy to follow.
The best place to see it in use is cibadmin.c

The API itself is stable and doesn't change at all within stable series.




More information about the Pacemaker mailing list