Newer versions allow xpath queries. In your case, you'd run: cibadmin --query --xpath "//nvpa...@name='pingd']"
On Tue, Jul 28, 2009 at 6:53 AM, MAHESH, SIDDACHETTY M (SIDDACHETTY M)<[email protected]> wrote: > 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 > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
