[Linux-HA] ID in OCF script

Andrew Beekhof beekhof at gmail.com
Mon Dec 4 02:55:52 MST 2006


try placing a call to env in the script... you should see it available
as OCF_RESOURCE_INSTANCE

On 11/28/06, Zachár Balázs <zachar at direkt-kfki.hu> wrote:
> Hello @list!
>
>
> Can I get the RA ID
>  in the RA script?
>
> e.g.
>
> I have a resource:
> <primitive class="ocf" id="smb_share_tester" provider="zachar"
> type="smb_share_tester">
>
>
> In the script, I would like to use the resource ID (smb_share_tester).
>
>
> I will use this script to manage many servers so I don't want to use
> constant...
> I know I can use parameter section but maybe there is a simpler way...
>
>
> Thx,
> Balázs
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>


More information about the Linux-HA mailing list