<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Thanks Markos for your quick reply.<br>But I am wondering why RHEL is not complying to backward compatibility. Murphy's law does work well ! I feel RHEL3.0 to RHEL4.0 cli and output format all are changed/missing ( Ofcourse there are new cli features)<br>thanks<br>- Krishna<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Marcos David <marcos.david@efacec.pt><br>To: linux clustering <linux-cluster@redhat.com><br>Sent: Thursday, December 14, 2006 5:19:36 PM<br>Subject: Re: [Linux-cluster] Need simple RHEL4.0 clarification<br><br><div>Hello<br><br>1 - ccs_tool lsnode gives you the Cluster name and node names<br><br>2 - this as already been posted here
 a few weeks ago (title: ccs_test <br>tool on 2006-11-15)<br>Basically you need to create a script to parse the contents of the <br>cluster.conf file.<br><br>Anyway here a simple script we came up with to do this:<br><br><br>filename:get_service_ip.py<br>--- CUT HERE ---<br><br>#!/usr/bin/python<br><br># GET IP FROM SERVICE CONFIG<br>import xml.dom.minidom, sys<br>doc = xml.dom.minidom.parse('/etc/cluster/cluster.conf')<br>services=doc.getElementsByTagName('service')<br>for service in services:<br>        name=service.getAttribute('name')<br>        try:<br>                if
 (name==sys.argv[1]):<br>                        ips=service.getElementsByTagName('ip')<br>                        for ip in ips:<br>                                ref=ip.getAttribute('ref')<br>                                print ref<br>        except:<br>                pass<br><br>-- CUT HERE
 ---<br><br>You can get the ip like this:<br><br>get_service_ip.py <service name><br><br>Example:<br>#  get_service_ip.py mysql<br>192.168.0.2<br><br>Hope this helps<br><br>Greetings<br>Marcos David<br><br><br><br>krishnamurthi G wrote:<br>> Dear friends,<br>><br>> I am working on a project on RHEL 4.0 cluster platform.<br>> I appreciate if you could help/give me pointer me for below queries as <br>> I couldn't find it.<br>><br>> 1. What is the command to find cluster name/how to extract cluser name?<br>>    ( RHEL 3.0 we can extrsact cluster name either by clustat or <br>> redhat-config-cluster-cmd --cluster)<br>><br>> 2. What is the command to see service(virtual) IP address for given <br>> service/group.<br>> ( RHEL 3.0 redhat-config-cluster-cmd --service=<service name> <br>> --service_ipaddresses would work )<br>><br>> Thanks in advance<br>> - Krishna<br>><br>>
 ------------------------------------------------------------------------<br>> Everyone is raving about the all-new Yahoo! Mail beta. <br>> <<a target="_blank" href="http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta">http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta</a>> <br>><br>> ------------------------------------------------------------------------<br>><br>> --<br>> Linux-cluster mailing list<br>> Linux-cluster@redhat.com<br>> <a target="_blank" href="https://www.redhat.com/mailman/listinfo/linux-cluster">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br><br><br>--<br>Linux-cluster mailing list<br>Linux-cluster@redhat.com<br><a target="_blank" href="https://www.redhat.com/mailman/listinfo/linux-cluster">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></div></div><br></div></div><br>

<hr size=1>Check out <a href="http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta</a> - Fire up a more powerful email and get things done faster.</body></html>