Re: [Pacemaker] Extracting resource state information from the XML

2011-08-11 Thread pskrap
Thank you Tim for your detailed response. This information was exactly what I was looking for. Even though parsing "crm_mon -o -1" would be faster initially, the XML is probably less prone to sudden changes and the parsing of it is easier to fix when changes are made. I think I will take the XML

Re: [Pacemaker] Extracting resource state information from the XML

2011-08-11 Thread Tim Serong
On 11/08/11 21:51, pskrap wrote: Hi, I have a setup with tens of resources over several nodes. The interface that is used to administer the system has a page showing all resources, their state and which node they are running on. I can get the information of one resource using 'crm_resource -W

[Pacemaker] Extracting resource state information from the XML

2011-08-11 Thread pskrap
Hi, I have a setup with tens of resources over several nodes. The interface that is used to administer the system has a page showing all resources, their state and which node they are running on. I can get the information of one resource using 'crm_resource -W -r ' but running this command ov