[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [Linux-cluster] ccs_test tool

Thanks again for the tip, 
I've made a simple python script (~10 lines) that solves my problem.
Marcos David
-----Original Message-----
From: linux-cluster-bounces redhat com
[mailto:linux-cluster-bounces redhat com] On Behalf Of James Parsons
Sent: quarta-feira, 15 de Novembro de 2006 17:42
To: linux clustering
Subject: Re: [Linux-cluster] ccs_test tool

Marcos Gil Ferreira David wrote:

> Hello,
> I have a two-node cluster with several services running on it. Each of

> these services needs an ip address that configured in the cluster (a 
> Cluster IP Address).
> My problem is that in order for some of our applications to function 
> properly I need to know the ip address that is assigned to a given 
> service.
> Example:
> Extracted from /etc/cluster/cluster.conf:
> ....
> <service autostart="1" domain="cluster0" name="MySQL">
> <fs ref="shared_mysql">
> <ip ref="">
> <script ref="mysql"/>
> </ip>
> </fs>
> </service>
> ...
> Is there any application (perhaps ccs_test) that can give me the ip 
> address assigned to the MySQL service (or any other service), without 
> dumping the entire cluster.conf on console?
No, but a python script could pull it out for you in prolly less than 20
lines. It would have to run as root, though, in order to read the conf
file. Do you need this to work in an automated fashion as stdin to
another app?


Linux-cluster mailing list
Linux-cluster redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]