Thanks for the feedback.

I had already used the walking node functions:

Here is the kind of information I am able to get:

MyNode1 type=normal 
MyNode1 status=active
MyNode2 type=normal 
MyNode2 status=active
192.168.0.1 type=ping 
MyNode1 status=ping

However, I would like to know which one is the Master (Hot) node (Re. The node 
that currently the DC).

Thanks!
JM


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Andrew Beekhof
Envoyé : Monday, November 26, 2007 10:17 AM
À : General Linux-HA mailing list
Objet : Re: [Linux-HA] Heartbeat vs CIB


On Nov 23, 2007, at 3:25 PM, Audet, Jean-Michel wrote:

> I am currently using Heartbeat v2 with a cib.xml file.
>
> I need an Active/Standby (Master/Slave) configuration
>
> I am a newbie and I need to connect my software to the heartbeat  
> daemons
> using the client library and then do check pointing between my 2
> applications to get the standby node in sync.
>
> I found some docs and examples on the hb-api interface.  I connect
> successfully using ll_cluster_new, signon, etc...  However, I don't  
> know
> how to know the current state of a node.

look for do_node_walk() in tools/pingd.c

> I found from the crm_mon application source that there is also another
> API to manage and work with nodes (cib.h).  It looks like the kind
> interface is similar but not exactly the same.

the cib is probably not what you need

>
>
>
> What are you suggesting for a "new" development?  Which API?  Like I
> said, I need an Active/Standby implementation and I need to send data
> from my application to do check pointing.  I need to be able to  
> retrieve
> the current state of my node.  I need to be able to do cooperative
> switch-over.
>
> Thanks!
> Jean-Michel Audet
>
>
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to