[Pacemaker] examine ping result
James Harper
james.harper at bendigoit.com.au
Thu Oct 4 00:25:26 CEST 2012
> ----- Original Message -----
> > From: "James Harper" <james.harper at bendigoit.com.au>
> > To: pacemaker at oss.clusterlabs.org
> > Sent: Wednesday, October 3, 2012 5:04:53 PM
> > Subject: [Pacemaker] examine ping result
> >
> > I have a ping resource defined like:
> >
> > primitive p_ping_test ocf:pacemaker:ping \
> > params name="ping_test" host_list="192.168.200.253" \
> > op monitor interval="10s" timeout="60s" \
> > op start interval="0" timeout="60s"
> >
> > How can I examine the result of "ping_test"?
>
> Try something like this:
>
> cibadmin --query --scope=status | grep "ping_test"
>
Yes that worked, although it's a little noisy. grepping additionally for "nv_pair" trimmed out the rest of the data.
Is there nothing that I can use to just get the value that I could use in a shell script or something? eg:
magic_get_value_prog --node=node1 --nvpair=ping_test
thanks
James
More information about the Pacemaker
mailing list