crm_resource --list  should do it if I understand the question correctly

On Mon, Aug 30, 2010 at 10:16 AM, Ivan Gromov <[email protected]> wrote:
> Dear all,
>
> Is it possible to get name of stonith (clone id) resource from some
> command? For instance, I have cluster with stonith like presented below.
> I want to get clone id (Fencing)
> <clone id="Fencing">
> <meta_attributes id="fencing">
> <nvpair id="Fencing-unique" name="globally-unique" value="false"/>
> </meta_attributes>
> <primitive id="rsa" class="stonith" type="external/ibmrsa">
> <operations>
> <op id="rsa-mon-1" name="monitor" interval="120s"/>
> </operations>
> <instance_attributes id="rsa-parameters">
> <nvpair id="rsa-attr-1" name="hostname" value="node1 node2 node3
> node4"/>
> </instance_attributes>
> </primitive>
> </clone>
>
> Or more general question: how can I get list of resources which have
> appropriate class (heartbeat, lsb, ocf, stonith).
> For ocf class I can simple type: 'crm ra list ocf'. But for stonith
> class it doesn't return what I want.
>
> --
> Thank in advance,
> Ivan Gromov.
>
> _______________________________________________
> 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

Reply via email to