[Pacemaker] examine ping result
Andrew Beekhof
andrew at beekhof.net
Wed Oct 3 23:22:37 UTC 2012
crm_attribute should be able to do it
On Thu, Oct 4, 2012 at 8:25 AM, James Harper
<james.harper at bendigoit.com.au> wrote:
>> ----- 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
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Pacemaker
mailing list