[Linux-HA] get attribute value from commandline
MAHESH, SIDDACHETTY M (SIDDACHETTY M)
smahesh at alcatel-lucent.com
Mon Jul 27 22:53:30 MDT 2009
Hi,
I need to find out what the attribute value and calculated score is for a resource. Is it possible to get this info from the command line using some utility?
For example, my cib.xml has this entry
<rsc_location id="ipaddress_connected" rsc="ip_group">
<rule id="ipaddress_connected_rule" score="-INFINITY" boolean_op="or">
<expression id="ipaddress_connected_rule_expr_undefined" attribute="pingd" operation="not_defined"/>
<expression id="ipaddress_connected_rule_expr_zero" attribute="pingd" operation="lte" value="0"/>
</rule>
</rsc_location>
Is it possible to get the value of the 'pingd' attribute? Also, is it possible to determine what the calculated score is for the 'ip_group' resource? I tried to determine the failure count using the 'crm_failcount' utility but it always reports a value of '1' even on multiple failures of the 'ip_group' resource ('crm_failcount -V -G -r ip_group'). Is there a means to detecting how many times a resource has failed?
Thanks,
Mahesh
More information about the Linux-HA
mailing list