Thanks but that's a search in cib.xml ... I'll already have a solution with xpath for that: xpath /var/lib/heartbeat/crm/cib.xml /cib/configuration/nodes/node/@uname 2>/dev/null etc. My question was slightly different ... but anyway, I'll parse cib.xml Thanks a lot. Regards Alain
RaSca a écrit : > Il giorno Gio 24 Mar 2011 14:32:09 CET, Alain.Moulle ha scritto: > >> Hi, >> Ok I think my question was not clear : in fact, the pb is not to >> do or not ssh<node> "crm ..." , the pb is just to know the >> hostname of the node to ssh it , in another way than parsing >> the cib.xml to know which other nodes are in the same HA cluster >> as the node where I am (knowing that corosync is stopped on this >> local node) . >> Thanks >> Regards. >> Alain >> >>> This might sound obvious but is an ssh call acceptable? >>> > > What about: > > cat /var/lib/heartbeat/crm/cib.xml|grep "node id"|sed -n > 's/.*uname=\"\(.*\)\".*/\1/p' > > ? > > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
